Just for reference, in case the wiki appears wrong or you think I didn't put it in the wiki correctly, the original post follows.
--Tobi
###
Getting the most recent spring source
You can also download the 0.75b2 source at http://spring.clan-sy.com/dl/spring_0.75b2_src.zip
Building spring in Visual Studio 7 (2003)
Note: building spring in Visual Studio 7 is currently unsupport, these instructions are just here because the Visual Studio 8 instructions refer to them.
To build and run spring in visual studio (2003):
- install the library package http://spring.clan-sy.com/dl/spring-vclibs.exe
You need to install this in the "taspring_0.75b2" directory from the zipped source, or if you're using SVN, install it in "trunk"
If done right, it will look like:
taspring_0.75b2/
taspring_0.75b2/rts
taspring_0.75b2/omni
taspring_0.75b2/... other dirs
taspring_0.75b2/vclibs - install the DirectX SDK
- open the project file. /rts/build/vstudio7/rts.vcproj
- start building (usually you want to select the release build, debug is really too slow and is used only when you really know what you want to test)
- select the working directory in the project properties, otherwise spring will crash on start
(possibly the free Express Edition)
Building spring in visual studio 8 is very similar to visual studio 7. The differences are:
- use http://spring.clan-sy.com/dl/spring-vc8libs.exe , instead of spring-vclibs.exe
- use the visual studio 8 project file: /trunk/rts/build/vstudio8/rts.vcproj
- you will need to install the Platform SDK and DirectX SDK, and set up the directories of those correctly within visual studio.
Building spring using MinGW
Get the library package for MinGW:
http://www.unknown-files.net/spring/3801/mingwlibsv9/ . Make sure you install it it the trunk directory, so the path is: trunk/mingwlibs (similar to vclibs above)
Except for TortoiseSVN, which can be replaced by the commandline svn client or SmartSVN and Dev-Cpp, which can be replaced by a bare MinGW system, the listed programs are a must-have if you want to compile spring with MinGW/Dev-Cpp.
- Dev-Cpp installer
- Tortoise SVN installer
- Python 2.4 installer
- Python win32 extensions installer
- Scons installer
- Grab and install the above programs.
- Make sure C:\Python24 and C:\Dev-Cpp\bin are in your PATH environment variable. Make sure a MINGDIR environment variable with value C:\Dev-Cpp exists. (change paths where appropriate.) Set environment variables by: Start -> Settings -> Control Panel -> System -> Advanced -> Environment variables (for Windows XP).
- Checkout the TA Spring SVN repository.
- Open a console (Start -> Run -> cmd.exe -> Run), cd \path\to\taspring<enter> (where you checked it out in the previous step) and type scons configure<enter>, followed by scons<enter>. Refer to scons --help for options which can be passed to scons configure.
- Wait.
- Copy over datafiles and stuff from official spring to the game dir (where spring.exe is created).
- Copy missing DLLs from mingwlibs/dll.
- Start developing.
First, grab the source, and make sure you have MinGW installed on your Linux box (on Ubuntu/Debian just install the mingw32 package).
Then follow this quick 'n dirty instructions:
Code: Select all
cd /path/to/checkout/trunk
wget http://www.osrts.info/~tvo/spring-mingwlibs-v4.exe
7z x spring-mingwlibs-v4.exe
MINGDIR=/usr/i586-mingw32msvc \
CC=i586-mingw32msvc-gcc \
CXX=i586-mingw32msvc-g++ \
scons configure platform=windows && scons