Wiki

Clone wiki

wiesel / SetupBuildEnvironmentWindowsCygwin

First of all, you need to download and install either Cygwin or MinGW. The engine should build on both Cygwin and MinGW platforms, but MinGW would be recommended to build standalone windows executables without requirement for any cygwin libraries.

  • Cygwin:
    Visit http://cygwin.com and download the latest setup.exe to install the cygwin system, including the following packages
    • gcc4-core
    • gcc4-g++
    • gdb
    • cmake
    • libstdc++6
    • libstdc++6-devel
    • libxml2-devel
  • MinGW
    Take a look to http://www.mingw.org/wiki/Getting_Started to see how to install MinGW on your system.
    Make sure, you have added your MinGW bin/ path to your PATH variable. After this you can use mingw-get install to install some required packages:
    • mingw32-gcc
    • mingw32-gcc-g++
    • mingw32-gdb
    • mingw32-make
    • msys-libxml2
  • CMake
    Download and install cmake from http://www.cmake.org/

After installing the build system of your choice, you will need some additional libraries, which are not included in Cygwin or MinGW:

To make it a bit easier to get all the required files, you may just download https://bitbucket.org/baldur/wiesel/downloads/extra-libraries-windows.zip and extract it somewhere on your hard disk.

To tell the build-scripts, where to find the additional libraries, enter your project root directory, create a new file config/local/paths.mk with the following content:

set(MSYS_PATH		D:/Programme/MinGW/msys/1.0)
set(EXTRALIBS_PATH	D:/Projekte/GameDev/wieselflink/extra/extra-libraries/windows-i686)

if (MSYS OR MINGW)
	set(
		CMAKE_INCLUDE_PATH
		${MSYS_PATH}/include
		${MSYS_PATH}/include/libxml2
		${EXTRALIBS_PATH}/include
		${EXTRALIBS_PATH}/include/SDL
	)

	set(
		CMAKE_LIBRARY_PATH
		${MSYS_PATH}/lib
		${EXTRALIBS_PATH}/lib
	)
endif()


Now you can continue with the steps in ProjectSetup.

Updated