Table of Contents

Building ffdshow

Prerequisite

Optionally,

If you plan to build 64bit version,

Custom made for ffdshow,

Getting the source code

Create a blank directory whose full path does not contain any spaces. Assuming you have installed TortoiseSVN, right click the directory in Windows Explorer, choose “SVN Checkout” from the context menu.

Enter “https://ffdshow-tryout.svn.sourceforge.net/svnroot/ffdshow-tryout/” as the URL of the repository. This would check out all branches of the source code, so if you are only interested in one branch in particular (like “trunk”, which is where the completed changes are added and where releases are again branched from) click on the ”…” besides the URL entry box and select the branch you want.

Which compiler to use

MSVC can build most files of ffdshow, but this is not always the best.

Configuring the compilers

Latest SDK will automatically configure MS Visual C++.

Include path for MSVC

Library path for MSVC (32bit)

Environmental variables

Optional for Intel C++ Compiler 11.x.xxx

Make command line options

To build dlls using MinGW, launch MSYS or cmd.exe and go to the directory. Type 'make'. This should build x86 version of ffdshow.
If you are building x64 version,

make 64BIT=yes

MinGW workaround on Vista

It may be difficult to install MinGW on Vista. You could insert the code below in your bat file to launch MSYS or cmd.exe.
Tips to get MINGW working on MS VISTA

set MINGWROOT=C:\MinGW
set MINGWBIN=%MINGWROOT%\bin
set MINGWINCLUDE=%MINGWROOT%\include
set MINGWLIB=%MINGWROOT%\lib
set MINGWLIBEXEC=%MINGWROOT%\libexec\gcc\mingw32\4.4.1
set MINGWBIN2=%MINGWROOT%\mingw32\bin
set MINGWLIB2=%MINGWROOT%\mingw32\lib\ldscripts
set MINGW=%MINGWROOT%;%MINGWBIN%;%MINGWINCLUDE%;%MINGWLIB%;%MINGWLIBEXEC%;%MINGWLIB2%;%MINGWLIB2%
set GCC_EXEC_PREFIX=%MINGWLIB%\gcc\

rem to add more resource paths just use the set command like above and then add it to the set PATH like below

set PATH=%MINGW%;%PATH%

Installing the files you have just built

After building ffdshow.ax, MSVC automatically calls bin\register.bat and installs the new files. bin directory is the new installation directory, do not copy files to “Program Files\ffdshow”. ffdshow.ax requires libmplayer.dll (and some other dlls depending on your settings) in the same directory.
You have to double click bin\register64.bat manually if you are building x64 version (see the bat for the reason).

Creating an installer

Double click bin\distrib\InnoSetup\ffdshow_installer.iss. Read first five lines and enter appropriate values. Press F9 to build.