Note for VS 2010, 2013, and 2015 these are already made for you. Nothing more need be done.
- MSys / mingw-w32 (https://msys2.github.io/)
- libpng 1.2.56 (https://sourceforge.net/projects/libpng/files/libpng12/1.2.56/lpng1256.zip/download)
- ffmpeg 3.0.3 (https://www.ffmpeg.org/releases/ffmpeg-3.0.3.tar.gz)
- NSIS Installer 2.x (https://nsis.sourceforge.net)
- From the Visual Studio command prompt
- Unzip libpng at lpng1256/:
unzip lpng1256.zip set INCLUDE=%INCLUDE%;Z:\path\to\openitg\src\zlib- from the lpng1256 dir, run:
nmake /f .\scripts\makefile.vcwin32
- Unzip libpng at lpng1256/:
- From the repository root in a mingw-w32 shell (
.\msys2_shell.cmd -mingw32 -full-path)- Install build dependencies:
pacman -S unzip diffutils yasm make mingw32/mingw-w64-i686-gcc - Untar ffmpeg at ffmpeg-3.0.3/ and cd into it:
tar -zxvf ffmpeg-3.0.3.tar.gz; cd ffmpeg-3.0.3 - run
./configure --prefix=../ffmpeg-build --enable-shared --toolchain=msvc --cpu=opteron, wait forever (Note --cpu=opteron is used to work around incorrect detection of processors having FAST_CLZ) make && make installcp ../ffmpeg-build/bin/*.dll ../Program
- Install build dependencies:
- Move compiled libs to proper location in extern folder
- Follow Directions on building windows release from the normal readme
- To build the installer, from cmd or powershell
assets\win32-installer\setup-installer-dir.batcd inst-tmpmakensis /nocd ..\assets\win32-installer\OpenITG.nsi