This wiki has been moved to https://github.com/SuperTux/wiki into the mediawiki branch.

Difference between revisions of "Building on Windows"

From SuperTux
Jump to: navigation, search
(It's Download Time: New SDL version for iconv)
m (It's Download Time: some alternative download locations)
 
(48 intermediate revisions by 16 users not shown)
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
  
If you want to build the current development version on Windows, these step-by-step instructions are for you.
+
If you want to build the current development version on Windows, these step-by-step instructions are for you. An example of a successful build following these instructions can be found [[LMH builds SuperTux on Windows|here]]. At the end of the article is a quick guide for Visual Studio.
  
== Warning ==
+
== Warnings ==
  
 
Before you proceed, however, carefully read the following warnings:
 
Before you proceed, however, carefully read the following warnings:
  
 
* You will be building a highly unstable development version of SuperTux. This might cause permanent damage to your system, your brain or both!
 
* You will be building a highly unstable development version of SuperTux. This might cause permanent damage to your system, your brain or both!
* Do not try these instructions out on a production system. Use a virtual machine (e.g. VMWare) instead.
+
* Do not try these instructions out on a production system. Use a virtual machine (e.g. VMWare or [http://www.virtualbox.org/ VirtualBox]) instead.
* The developers currently focus on getting SuperTux stable for Linux. Feel free to try getting it to work on Windows, but do not expect any support down this road.
+
* Most developers currently focus on getting SuperTux stable for Linux. Feel free to try getting it to work on Windows, but do not expect much support down this road.
 
* Read these instructions to the end before starting your install. If any step makes you feel unsure, better wait for a Windows release of SuperTux.
 
* Read these instructions to the end before starting your install. If any step makes you feel unsure, better wait for a Windows release of SuperTux.
 
* The whole build process takes about one hour to complete, depending on your internet connection and processor power. Why not do something more productive in that hour? Maybe do some housework?
 
* The whole build process takes about one hour to complete, depending on your internet connection and processor power. Why not do something more productive in that hour? Maybe do some housework?
 +
* The build process fails on Windows Vista sometimes. (please open a bug in our [http://supertux.lethargik.org/bugs/ bug tracker] to help us figure out why)
  
 
== Preparation ==
 
== Preparation ==
Line 17: Line 18:
 
OK, enough of that. Here are the exact steps for building SuperTux on a fresh Windows installation:
 
OK, enough of that. Here are the exact steps for building SuperTux on a fresh Windows installation:
  
=== It's Download Time ===
+
* Create or pick a working folder. Its path should not contain any spaces. (The root of a drive, such as C:\ or D:\, is fine)
 +
** I chose D:\Build_SuperTux; change the commands to match your choice.
 +
** Every non-absolute path I give is relative to this directory
  
* Download and install [http://www.mingw.org/ MinGW] ([http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=82721&release_id=158801 from SourceForge])
+
=== Checking Things Out ===
** When prompted, select the "candidate" release. Aside from the base component, also install both the "g++" and "mingw make" components - they might come in handy.
+
** The default folder of c:\MinGW was alright with me, as I installed on a development installation of Windows. I'll just assume we installed there.
+
  
* Download and install [http://www.mingw.org/msys.shtml MSYS] - I chose [http://prdownloads.sf.net/mingw/MSYS-1.0.11-2004.04.30-1.exe?download MSYS-1.0.11-2004.04.30-1]
+
* We want to check out the latest sources from the [[Download/Git | Git repository]]
** Again, the default folder of C:\msys\1.0 was fine with me
+
* You need a [http://git-scm.com/ Git] client (instructions vary depending on client you choose)
** In the process of installing MSYS, a command shell should open, promping you whether you want to continue and if you already installed MinGW. Answer both questions with yes (y) and you should be prompted for the path to your MinGW installation. As I installed to c:\MinGW, I entered c:/MinGW (note the forward slash instead of a backslash)
+
** For example using [https://msysgit.googlecode.com/files/Git-1.8.3-preview20130601.exe MsysGit]
 +
*** Run the installer
 +
*** Run Git Bash and navigate to the folder you want to save SuperTux to
 +
*** Type: <code><nowiki>git clone https://code.google.com/p/supertux/</nowiki></code>
 +
*** Begin your checkout and wait - this might take some time, so to the next step...
  
* Download and install the MSYS developer toolkit (DTK) - I chose [http://prdownloads.sf.net/mingw/msysDTK-1.0.1.exe?download msysDTK-1.0.1]
+
=== It's Download Time ===
** Again, the default folder of C:\msys\1.0 was fine with me, the rest of the install was smooth sailing
+
  
* Download, build and install a recent version of [http://www.libsdl.org/ SDL] - I chose [http://www.libsdl.org/release/SDL-devel-1.2.12-mingw32.tar.gz 1.2.12]
+
Download all these to your build directory.
** After unpacking, install SDL using "make install-sdl prefix=/local"
+
  
* Download and install MinGW gcc-g++ package for compiling C++ code - [http://prdownloads.sf.net/mingw/gcc-g++-3.4.2-20040916-1.tar.gz?download gcc-g++-3.4.2-20040916-1.tar.gz]
+
* [http://mingw.org MinGW] and MSYS
** save this to c:\msys\1.0 we will unpack it later
+
  
* Download MSYS autoconf - I chose [http://prdownloads.sourceforge.net/mingw/msys-autoconf-2.59.tar.bz2?download msys-autoconf-2.59]
+
Look for the latest version of <code>mingw-get-inst</code> [http://sourceforge.net/projects/mingw/files/ here].
** save this to C:\msys\1.0, we will unpack it later
+
  
* Download MSYS automake - I chose [http://prdownloads.sourceforge.net/mingw/msys-automake-1.8.2.tar.bz2?download msys-automake-1.8.2]
+
*[http://cmake.org/cmake/resources/software.html CMake]
** save this to C:\msys\1.0, we will unpack it later
+
  
* Download the SuperTux lib package - I chose [http://download.berlios.de/supertux/supertux-msys-libs-2006-03-21.tar.bz2 supertux-msys-libs-2006-03-21]
+
http://www.cmake.org/files/v2.8/cmake-2.8.5-win32-x86.zip
** save this to C:\msys\1.0, we will unpack it later
+
  
* If you want to use the SuperTux Add-On Manager, download libcurl - I chose [http://curl.haxx.se/download/libcurl-7.16.0-win32-nossl.zip libcurl-7.16.0-win32-nossl]
+
* [http://curl.haxx.se/download.html cURL] (add-on manager)
** extract the included bin, include and lib folders as subfolders of C:\msys\1.0
+
  
* Download and install [http://tortoisesvn.tigris.org/ TortoiseSVN] - I chose [http://prdownloads.sourceforge.net/tortoisesvn/TortoiseSVN-1.3.1.5521-svn-1.3.0.msi?download TortoiseSVN-1.3.1.5521-svn-1.3.0]
+
http://www.gknw.net/mirror/curl/win32/curl-7.21.7-devel-mingw32.zip <br>
** install and reboot to finish the installation
+
[http://curl.haxx.se/gknw.net/7.31.0/dist-w32/curl-7.31.0-devel-mingw32.zip Alternative download (v 7.31.0)]
  
* Download and install [http://www.openal.org/ OpenAL]
+
* [http://www.libsdl.org/download-1.2.php SDL] graphics library
** On the OpenAL website, choose "Download", then "Installer for Windows"
+
** Start the Installer and follow the onscreen instructions
+
  
=== Checking Things Out ===
+
http://www.libsdl.org/release/SDL-devel-1.2.14-mingw32.tar.gz
  
* time to check out the latest sources from SVN
+
* [http://glew.sourceforge.net/ GLEW] graphics library
** create c:\msys\1.0\build - we will download and build SuperTux there
+
** right-click this folder and select "SVN checkout..." from the context menu
+
** As repository URL, enter: http://supertux.lethargik.org/svn/supertux/trunk/supertux
+
** As checkout dir, enter: C:\msys\1.0\build\supertux
+
** begin your checkout and wait - this might take some time...
+
  
=== Getting Busy ===
+
http://sourceforge.net/projects/glew/files/glew/1.7.0/glew-1.7.0-win32.zip/download
  
* time to start MSYS for the first time. Launch MSYS by clicking on the conveniently created desktop icon
+
* [http://www.libsdl.org/projects/SDL_image/ SDL_image] for loading graphics
* install the downloaded binaries by typing
+
  
cd /c/msys/1.0/
+
http://www.libsdl.org/projects/SDL_image/release/SDL_image-devel-1.2.10-VC.zip
tar -xzvf gcc-g++-3.4.2-20040916-1.tar.gz
+
tar -xjvf msys-autoconf-2.59.tar.bz2
+
tar -xjvf msys-automake-1.8.2.tar.bz2
+
tar -xjvf supertux-msys-libs-2006-03-21.tar.bz2
+
  
== Building ==
+
* [http://icculus.org/physfs/downloads/ PhysFS] file management
  
* we're ready to build SuperTux. Just type the following
+
http://icculus.org/physfs/downloads/physfs-2.0.2.tar.gz
  
cd /build/supertux/
+
* [http://www.boost.org/ Boost]
cp /usr/local/bin/*.dll .
+
cp /usr/local/lib/libcurl-4.dll .
+
  
* If you want to build using CMake, enter this:
+
http://sourceforge.net/projects/boost/files/boost/1.47.0/boost_1_47_0.7z/download
  
mkdir build
+
* [http://www.7-zip.org/ 7-zip] for your favorite extraction program
cd build
+
CMAKE_INCLUDE_PATH="/local/include;/local/include/SDL;/local/include/vorbis" CMAKE_LIBRARY_PATH="/local/lib" cmake -G "MSYS Makefiles" -DVORBIS_INCLUDE_DIR="/local/include" -DOPENAL_INCLUDE_DIR="/local/include" -DPHYSFS_INCLUDE_DIR="/local/include" -DSDLIMAGE_INCLUDE_DIR="/local/include/SDL" -DSDL_INCLUDE_DIR="/local/include/SDL" -DCURL_INCLUDE_DIR="/local/include/curl" -DDEBUG=ON .. -DGENERATE_WRAPPER=OFF -DGENERATE_MESSAGESPOT=OFF
+
make
+
  
* If you want to build using jam instead, run the following commands
+
http://downloads.sourceforge.net/sevenzip/7z920.exe
  
./autogen.sh
+
* [http://connect.creativelabs.com/openal/Downloads/Forms/AllItems.aspx OpenAL], for all your OggVorbis needs
LIBS="-L/usr/local/lib -lvorbisenc -lvorbisfile -lvorbis -logg" CFLAGS="-I/usr/local/include" configure --enable-debug
+
jam
+
  
* Now run "supertux2.exe", sit back and enjoy the game.
+
http://connect.creativelabs.com/openal/Downloads/OpenAL11CoreSDK.zip <br>
 +
[http://www.filecluster.com/downloads/OpenAL-SDK.html Alternative download location]
  
== Ready-made Binaries ==
+
=== Getting Busy ===
 +
* Run the 7-zip, mingw-get-inst, and OpenAL SDK installers.
 +
** I used the default paths for 7-zip and OpenAL, and used the build directory for MinGW (remove the MinGW suffix at the end)
 +
* For everything else you downloaded, right click and use 7-zip's "Extract here". Repeat with the generated *.tar files.
 +
* Move the physfs-2.* directory out from Users/.../physfs* into the main directory
 +
* Make a folder <code>local</code> to hold libraries
 +
* Copy bin, include, lib, and share folders from cmake, curl, SDL, SDL_image, and glew folders (don't include physfs or boost)
 +
* Go to C:\Program Files\OpenAL 1.1 SDK
 +
* Copy the include directory there to local
 +
* Copy \samples\playoggvorbis\include\Ogg and \samples\playoggvorbis\include\Vorbis to local\include
 +
* Copy the Ogg and Vorbis DLL's in \samples\playoggvorbis\Win32 to local\bin
 +
* Go to C:\WINDOWS\system32 (%SYSTEMROOT%\system32)
 +
** 64-bit Windows: go to C:\windows\syswow64 (%SYSTEMROOT%\syswow64) instead.
 +
* Copy OpenAL32.dll and wrap_oal.dll to local\bin
 +
** If they aren't there, try running C:\Program Files\OpenAL 1.1 SDK\redist\oalinst.exe
  
* You might also find an old developer snapshot I built on my [http://www.deltadevelopment.de/users/christoph/supertux/ website].
+
== Building ==
  
== Additional Tips ==
+
* We're going to build PhysFS.
 
+
* Launch MSYS with msys/msys.bat and type in the following: (you can paste into MSYS using the icon in the title bar)
If jam fails on wrapper.cpp or miniswig try preventing miniswig from regenerating wrapper.cpp. To do that run this command in msys:
+
  cd /physfs*
  cd /build/supertux && \
+
mkdir build
  sed 's/"bison"/""/;s/"flex"/""/' Jamconfig > Jamconfig.tmp && \
+
cd build
  mv Jamconfig.tmp Jamconfig
+
cmake .. -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX:PATH=/local
After that use TortoiseSVN to svn up the whole directory (to restore possibly deleted files). Then try running jam again.
+
  make
 +
make install
 +
* We're ready to build SuperTux.
 +
* Change to the SuperTux checkout directory
 +
cd /supertux
 +
* Make a build directory to store generated files
 +
mkdir build
 +
cd build
 +
* Start the actual build (everything else was libraries)
 +
INCLUDE="/local/include/SDL:/boost_1_47_0" cmake -G"MSYS Makefiles" -DCOMPILE_AMALGATION=ON -DCMAKE_CXX_FLAGS=-Wl,--enable-auto-import ..
 +
make
 +
* You need to copy some dll's from /local/bin, /local/lib, and /bin into /supertux.
 +
  cd ..
 +
cp /local/bin/*.dll .
 +
cp /local/lib/*.dll .
 +
cp /mingw/bin/*.dll .
 +
A lot of these are unnecessary; use objdump -p or strings to prune the tree.
 +
* Now run supertux2.exe, sit back, and enjoy the game.
 +
cd /supertux
 +
./supertux2.exe
  
 
== Building the editor ==
 
== Building the editor ==
Line 118: Line 131:
 
* Microsoft .NET 2.X framework SDK, yes you need 1.x AND 2.x at the moment!: http://www.microsoft.com/downloads/details.aspx?familyid=FE6F2099-B7B4-4F47-A244-C96D69C35DEC&displaylang=en
 
* Microsoft .NET 2.X framework SDK, yes you need 1.x AND 2.x at the moment!: http://www.microsoft.com/downloads/details.aspx?familyid=FE6F2099-B7B4-4F47-A244-C96D69C35DEC&displaylang=en
 
* Gtk-Sharp 2.7 SDK for windows, make sure you actually get the SDK the runtime version contains some bugs that affect the editor: http://forge.novell.com/modules/xfcontent/private.php/gtks-inst4win/Win32%20Installer/v2.7.1/gtksharp-2.7.1-win32-0.5.exe
 
* Gtk-Sharp 2.7 SDK for windows, make sure you actually get the SDK the runtime version contains some bugs that affect the editor: http://forge.novell.com/modules/xfcontent/private.php/gtks-inst4win/Win32%20Installer/v2.7.1/gtksharp-2.7.1-win32-0.5.exe
* Microsoft Visual C# Express Edition, it's a free version of visual studio and we use it for compiling (and development on win32): http://msdn.microsoft.com/vstudio/express/visualcsharp/download
+
* Microsoft Visual C# Express Edition, it's a free version of visual studio and we use it for compiling (and development on win32): http://msdn.microsoft.com/vstudio/express/visualcsharp/download  
 
*:This apparently requires SP2 on Windows XP. (not tested on any other Windows versions)
 
*:This apparently requires SP2 on Windows XP. (not tested on any other Windows versions)
*::Is anybody still using XP without SP2? It that machine hast net connection its a bad idea.
+
* SDL.dll and SDL_image.dll, you can get these from an existing SuperTux installation or from the downloads above.
* SDL.dll and SDL_image.dll, you can copy these from a milestone1 installation or from the msys library pack for example.
+
  
 
=== Building ===
 
=== Building ===
  
 
* Get the sourcecode from [[Download/Subversion|svn]]
 
* Get the sourcecode from [[Download/Subversion|svn]]
* open supertux-sharp.sln by double clicking on it (it should open in Visual C# Express now).
+
* Open supertux-sharp.sln by double clicking on it.
 
* Build the project in debug and release mode (use F6 and then F5 for example)
 
* Build the project in debug and release mode (use F6 and then F5 for example)
 
* Copy SDL.dll and SDL_image.dll into the bin\Debug and bin\Release directory that has just been created
 
* Copy SDL.dll and SDL_image.dll into the bin\Debug and bin\Release directory that has just been created
* You can now go back to Visual Studio Express and start the editor with F11. Note that the debug mode is quiet slow for the OpenGL calls, so if you actually wanna use the editor instead of developing it start it in release mode (CTRL+F11)
+
* You can now go back to Visual Studio Express and start the editor with F11. Note that the debug mode is quite slow for the OpenGL calls, so if you actually want to use the editor instead of developing it start it in release mode (CTRL+F11)
  
 
You might want to read the [[Editor FAQ]] at this point.
 
You might want to read the [[Editor FAQ]] at this point.
 +
 +
=== Snapshots ===
 +
MMLosh has some snapshots on his website: http://elektromaniak.wz.cz/download.html
 +
Note that because Mono is cross-platform, the executables should work on both Windows and Linux, though libraries can be a problem.
 +
 +
== Fast and Easy Build with Visual Studio ==
 +
 +
''This is experimental''
 +
Tested on W7/VS2010 x64
 +
 +
Steps:
 +
 +
* Install Visual Studio
 +
* Download CMake 2.8+
 +
* Open cmake gui
 +
* Set dirs according to your Environment (p.ex.: H:\STuxSVN and H:\STuxSVN\bin)
 +
* Press Configure, select your version of VS (with native compilers) and click on finish
 +
* Now CMake tells you what to do. If asked for any libs, make sure to download and add them to your environment strings
 +
 +
Small List of DLs:
 +
* Boost: BOOST_ROOT: H:\STuxSVN\boost_1_42_0 / BOOST_LIBRARYDIR: $BOOST_ROOT\libs)
 +
* OpenAL: OPENAL_INCLUDE_DIR: D:\Program Files (x86)\OpenAL 1.1 SDK\include
 +
* Ogg Vorbis: VORBIS_INCLUDE_DIR: H:\STuxSVN\libvorbis-1.2.3
 +
* SDLIMAGE: SDLIMAGE_INCLUDE_DIR: H:\STuxSVN\SDL_image-1.2.10\include
 +
* SDL: SDL_INCLUDE_DIR: H:\STuxSVN\SDL-1.2.14
  
 
[[Category:Developer documentation]]
 
[[Category:Developer documentation]]

Latest revision as of 11:47, 7 August 2013

Introduction

If you want to build the current development version on Windows, these step-by-step instructions are for you. An example of a successful build following these instructions can be found here. At the end of the article is a quick guide for Visual Studio.

Warnings

Before you proceed, however, carefully read the following warnings:

  • You will be building a highly unstable development version of SuperTux. This might cause permanent damage to your system, your brain or both!
  • Do not try these instructions out on a production system. Use a virtual machine (e.g. VMWare or VirtualBox) instead.
  • Most developers currently focus on getting SuperTux stable for Linux. Feel free to try getting it to work on Windows, but do not expect much support down this road.
  • Read these instructions to the end before starting your install. If any step makes you feel unsure, better wait for a Windows release of SuperTux.
  • The whole build process takes about one hour to complete, depending on your internet connection and processor power. Why not do something more productive in that hour? Maybe do some housework?
  • The build process fails on Windows Vista sometimes. (please open a bug in our bug tracker to help us figure out why)

Preparation

OK, enough of that. Here are the exact steps for building SuperTux on a fresh Windows installation:

  • Create or pick a working folder. Its path should not contain any spaces. (The root of a drive, such as C:\ or D:\, is fine)
    • I chose D:\Build_SuperTux; change the commands to match your choice.
    • Every non-absolute path I give is relative to this directory

Checking Things Out

  • We want to check out the latest sources from the Git repository
  • You need a Git client (instructions vary depending on client you choose)
    • For example using MsysGit
      • Run the installer
      • Run Git Bash and navigate to the folder you want to save SuperTux to
      • Type: git clone https://code.google.com/p/supertux/
      • Begin your checkout and wait - this might take some time, so to the next step...

It's Download Time

Download all these to your build directory.

Look for the latest version of mingw-get-inst here.

http://www.cmake.org/files/v2.8/cmake-2.8.5-win32-x86.zip

  • cURL (add-on manager)

http://www.gknw.net/mirror/curl/win32/curl-7.21.7-devel-mingw32.zip
Alternative download (v 7.31.0)

  • SDL graphics library

http://www.libsdl.org/release/SDL-devel-1.2.14-mingw32.tar.gz

  • GLEW graphics library

http://sourceforge.net/projects/glew/files/glew/1.7.0/glew-1.7.0-win32.zip/download

http://www.libsdl.org/projects/SDL_image/release/SDL_image-devel-1.2.10-VC.zip

http://icculus.org/physfs/downloads/physfs-2.0.2.tar.gz

http://sourceforge.net/projects/boost/files/boost/1.47.0/boost_1_47_0.7z/download

  • 7-zip for your favorite extraction program

http://downloads.sourceforge.net/sevenzip/7z920.exe

  • OpenAL, for all your OggVorbis needs

http://connect.creativelabs.com/openal/Downloads/OpenAL11CoreSDK.zip
Alternative download location

Getting Busy

  • Run the 7-zip, mingw-get-inst, and OpenAL SDK installers.
    • I used the default paths for 7-zip and OpenAL, and used the build directory for MinGW (remove the MinGW suffix at the end)
  • For everything else you downloaded, right click and use 7-zip's "Extract here". Repeat with the generated *.tar files.
  • Move the physfs-2.* directory out from Users/.../physfs* into the main directory
  • Make a folder local to hold libraries
  • Copy bin, include, lib, and share folders from cmake, curl, SDL, SDL_image, and glew folders (don't include physfs or boost)
  • Go to C:\Program Files\OpenAL 1.1 SDK
  • Copy the include directory there to local
  • Copy \samples\playoggvorbis\include\Ogg and \samples\playoggvorbis\include\Vorbis to local\include
  • Copy the Ogg and Vorbis DLL's in \samples\playoggvorbis\Win32 to local\bin
  • Go to C:\WINDOWS\system32 (%SYSTEMROOT%\system32)
    • 64-bit Windows: go to C:\windows\syswow64 (%SYSTEMROOT%\syswow64) instead.
  • Copy OpenAL32.dll and wrap_oal.dll to local\bin
    • If they aren't there, try running C:\Program Files\OpenAL 1.1 SDK\redist\oalinst.exe

Building

  • We're going to build PhysFS.
  • Launch MSYS with msys/msys.bat and type in the following: (you can paste into MSYS using the icon in the title bar)
cd /physfs*
mkdir build
cd build
cmake .. -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX:PATH=/local
make
make install
  • We're ready to build SuperTux.
  • Change to the SuperTux checkout directory
cd /supertux
  • Make a build directory to store generated files
mkdir build
cd build
  • Start the actual build (everything else was libraries)
INCLUDE="/local/include/SDL:/boost_1_47_0" cmake -G"MSYS Makefiles" -DCOMPILE_AMALGATION=ON -DCMAKE_CXX_FLAGS=-Wl,--enable-auto-import ..
make
  • You need to copy some dll's from /local/bin, /local/lib, and /bin into /supertux.
cd ..
cp /local/bin/*.dll .
cp /local/lib/*.dll .
cp /mingw/bin/*.dll .

A lot of these are unnecessary; use objdump -p or strings to prune the tree.

  • Now run supertux2.exe, sit back, and enjoy the game.
cd /supertux
./supertux2.exe

Building the editor

There's a new gtk-sharp based editor in development which can also be built on windows. To do so you first have to get and install the following dependencies:

Dependencies

Building

  • Get the sourcecode from svn
  • Open supertux-sharp.sln by double clicking on it.
  • Build the project in debug and release mode (use F6 and then F5 for example)
  • Copy SDL.dll and SDL_image.dll into the bin\Debug and bin\Release directory that has just been created
  • You can now go back to Visual Studio Express and start the editor with F11. Note that the debug mode is quite slow for the OpenGL calls, so if you actually want to use the editor instead of developing it start it in release mode (CTRL+F11)

You might want to read the Editor FAQ at this point.

Snapshots

MMLosh has some snapshots on his website: http://elektromaniak.wz.cz/download.html Note that because Mono is cross-platform, the executables should work on both Windows and Linux, though libraries can be a problem.

Fast and Easy Build with Visual Studio

This is experimental Tested on W7/VS2010 x64

Steps:

  • Install Visual Studio
  • Download CMake 2.8+
  • Open cmake gui
  • Set dirs according to your Environment (p.ex.: H:\STuxSVN and H:\STuxSVN\bin)
  • Press Configure, select your version of VS (with native compilers) and click on finish
  • Now CMake tells you what to do. If asked for any libs, make sure to download and add them to your environment strings

Small List of DLs:

  • Boost: BOOST_ROOT: H:\STuxSVN\boost_1_42_0 / BOOST_LIBRARYDIR: $BOOST_ROOT\libs)
  • OpenAL: OPENAL_INCLUDE_DIR: D:\Program Files (x86)\OpenAL 1.1 SDK\include
  • Ogg Vorbis: VORBIS_INCLUDE_DIR: H:\STuxSVN\libvorbis-1.2.3
  • SDLIMAGE: SDLIMAGE_INCLUDE_DIR: H:\STuxSVN\SDL_image-1.2.10\include
  • SDL: SDL_INCLUDE_DIR: H:\STuxSVN\SDL-1.2.14