2010-09-27 23:14:16 +02:00
|
|
|
Table of contents
|
|
|
|
-----------------
|
|
|
|
|
2011-01-09 23:17:22 +01:00
|
|
|
WARNING: Only intended for developers who'll build Speed Dreams from sources.
|
|
|
|
|
2010-09-27 23:14:16 +02:00
|
|
|
I - Pre-requisites
|
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
II - Linux Installation from sources
|
2010-09-27 23:14:16 +02:00
|
|
|
|
|
|
|
1 - Introduction
|
|
|
|
2 - Runtime options
|
|
|
|
3 - Getting Help
|
2011-09-29 19:17:27 +02:00
|
|
|
4 - Installation from all-in-one tarball
|
2010-09-27 23:14:16 +02:00
|
|
|
5 - Installation from SVN
|
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
III - Windows Installation from sources
|
2010-09-27 23:14:16 +02:00
|
|
|
|
|
|
|
1 - Cmake and MS VC++ 2005 (8) / 2008 (9) on Windows XP 32
|
|
|
|
2 - MS VC++ 6 no more supported
|
|
|
|
|
|
|
|
IV - FreeBSD Installation from sources (Work in progress)
|
|
|
|
|
|
|
|
V - MacOS X installation from sources (TODO)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I - Pre-requisites
|
|
|
|
------------------
|
|
|
|
|
|
|
|
WARNING: On Windows, be carefull to compile anything for multithreaded DLL integration (/MD & /MDd)
|
|
|
|
|
|
|
|
- Working OpenGL Driver and header files / associated libraries
|
|
|
|
- SDL 1.2 (http://www.libsdl.org/)
|
|
|
|
- PLIB 1.8.3 / 4 / 5 (http://plib.sourceforge.net/).
|
|
|
|
Linux: Be carefull to compile plib with -fPIC on AMD64 if you run a 64 bit version.
|
|
|
|
- OpenAL soft 1.5 / 1.6 / 1.11 (http://connect.creativelabs.com/openal)
|
|
|
|
(Torcs modified 0.0.8 from www.torcs.org also used to work in the past).
|
|
|
|
- ENet 1.2 (http://enet.bespin.org)
|
|
|
|
Linux: Be carefull to compile ENet with -fPIC on AMD64 if you run a 64 bit version.
|
|
|
|
- libpng
|
|
|
|
- zlib
|
|
|
|
- jpeg
|
|
|
|
|
|
|
|
II - Linux installation from sources
|
|
|
|
----------------------------------
|
|
|
|
|
|
|
|
1 - Introduction
|
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
There are several ways to build and install Speed Dreams:
|
|
|
|
- from the all-in-one tarball.
|
2010-09-27 23:14:16 +02:00
|
|
|
- from SVN (just for developers!).
|
|
|
|
|
|
|
|
Pick just one of the above options. If you have trouble during the installation
|
2011-09-29 19:17:27 +02:00
|
|
|
have a look in the FAQ on the above sites. In case you get stuck,
|
|
|
|
please learn how to report the problem in the FAQ before filing a bug or contact us.
|
|
|
|
|
|
|
|
Have fun,
|
2010-09-27 23:14:16 +02:00
|
|
|
|
|
|
|
The Speed Dreams Team.
|
|
|
|
|
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
2 - Installation from the all-in-one tarball
|
|
|
|
|
|
|
|
a - get the all-in-one source tarball : please go to our SF.net download page :
|
|
|
|
http://sourceforge.net/projects/speed-dreams/files/2.0.0
|
|
|
|
you should find some speed-dreams-2.0.0-xxx-src.tar.7z archive :-)
|
2010-09-27 23:14:16 +02:00
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
b - uncompress the tarball :
|
2010-09-27 23:14:16 +02:00
|
|
|
|
2011-01-12 20:32:40 +01:00
|
|
|
. if bzip2-compressed (the old way) :
|
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
$ tar xfvj speed-dreams-xxx.tar.bz2
|
2011-01-12 20:32:40 +01:00
|
|
|
|
|
|
|
. if 7z-compressed (the new way) :
|
|
|
|
|
|
|
|
$ 7zr x -so speed-dreams-xxx.tar.7z | tar xvf -
|
2010-09-27 23:14:16 +02:00
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
c - configure :
|
2010-09-27 23:14:16 +02:00
|
|
|
|
2011-01-12 20:32:40 +01:00
|
|
|
1. cd to the path where Speed Dreams sources are installed.
|
2010-09-27 23:14:16 +02:00
|
|
|
|
|
|
|
$ cd <speed-dreams-source-tree>
|
|
|
|
|
|
|
|
(ls should show you data/ doc/ src/ INSTALL ...)
|
|
|
|
|
|
|
|
2. run CMake :
|
|
|
|
|
|
|
|
- for a Release build using default 3rd party libs
|
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
$ cmake -D OPTION_OFFICIAL_ONLY:BOOL=ON .
|
|
|
|
|
|
|
|
Note: This "OFFICIAL_ONLY" stuff is mandatory, otherwise
|
|
|
|
you'll get errors saying that some (unofficial contents)
|
|
|
|
folders are missing, just because the all-in-one tarball
|
|
|
|
does not includes them.
|
2010-09-27 23:14:16 +02:00
|
|
|
|
|
|
|
- you may also want to override some default settings :
|
|
|
|
|
|
|
|
for that you can use the -D option of cmake :
|
|
|
|
|
|
|
|
Example :
|
|
|
|
|
2011-01-12 20:32:40 +01:00
|
|
|
$ cmake -D SD_LOCALDIR:STRING=~/dev/.sd-settings \
|
|
|
|
-D CMAKE_PREFIX_PATH:STRING=/usr/local
|
2011-09-29 19:17:27 +02:00
|
|
|
-D CMAKE_BUILD_TYPE:STRING=Debug
|
2010-09-27 23:14:16 +02:00
|
|
|
|
|
|
|
or else you can use ccmake to change the variables interactively :
|
|
|
|
|
|
|
|
$ ccmake .
|
|
|
|
|
|
|
|
* press (t) for advanced options if needed
|
|
|
|
* in order to change a variable :
|
|
|
|
* select the associated line using the up/down arrow keys
|
|
|
|
* press (enter)
|
|
|
|
* edit the value
|
|
|
|
* press (enter)
|
|
|
|
* press (c) for configure
|
|
|
|
* press (g) for generate
|
|
|
|
* press (e) to exit
|
|
|
|
|
|
|
|
|
|
|
|
Usefull CMake variables for Speed Dreams :
|
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
- OPTION_OFFICIAL_ONLY:BOOL : Build/install only official contents (def: OFF)
|
|
|
|
- OPTION_DEBUG:STRING : Full run-time traces if ON (def: ON)
|
2011-01-12 20:32:40 +01:00
|
|
|
- OPTION_TRACE_LEVEL:STRING : Run-time traces level integer threshold,
|
|
|
|
only if OPTION_DEBUG (traces with higher level are
|
|
|
|
not logged ; 0=Fatal, 1=Error, 2=Warning, 3=Info,
|
|
|
|
4=Trace, 5=Debug, ...) (def: 5)
|
2011-09-27 07:51:21 +02:00
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
- SD_LOCALDIR:STRING : User settings dir for run-time (def: ~/.speed-dreams-2)
|
|
|
|
- CMAKE_PREFIX_PATH:STRING : Path prefixes for additional 3rdParty libraries (def:empty)
|
2011-01-12 20:32:40 +01:00
|
|
|
(use /usr/local if you compiled some 3rdParty libs yourself).
|
2011-09-29 19:17:27 +02:00
|
|
|
- CMAKE_INSTALL_PREFIX:PATH : Install path (def: /usr/local)
|
|
|
|
- CMAKE_BUILD_TYPE:STRING : Debug, Release, RelWithDebInfo, MinSizeRel (def: Release)
|
2010-09-27 23:14:16 +02:00
|
|
|
|
|
|
|
Tips reported about some issues :
|
|
|
|
- sometimes, ENET_INCLUDE_DIR is not detected correctly, resulting in something like
|
|
|
|
/usr/include/enet or so, and, consequently, in bad compilation errors because
|
|
|
|
/usr/include/enet contains a special time.h header file that conflicts with the standard
|
|
|
|
one in /usr/include. Removing the "enet" postfix from ENET_INCLUDE_DIR should fix this
|
|
|
|
(in cmake command line or interactively in ccmake).
|
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
d - build:
|
2010-09-27 23:14:16 +02:00
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
$ make
|
2010-09-27 23:14:16 +02:00
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
e - install:
|
2010-09-27 23:14:16 +02:00
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
$ sudo make install
|
|
|
|
|
|
|
|
Notes:
|
|
|
|
* sudo is only useful if your install PREFIX is a read-only folder (like default /usr/local)
|
|
|
|
* sudo configuration : you may ask your system administrator to enable you to run
|
|
|
|
'sudo make install' ; if he doesn't know how, you can tell him/her
|
|
|
|
to add a line like this in /etc/sudoers (or something less permissive ;-) :
|
|
|
|
<your login name> ALL=(ALL) NOPASSWD: ALL
|
2010-09-27 23:14:16 +02:00
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
3 - Installation from SVN (developer level only !)
|
2010-09-27 23:14:16 +02:00
|
|
|
|
2011-05-14 18:19:26 +02:00
|
|
|
Before you start, make you aware that the SVN trunk / branches might crash or even not compile
|
2010-09-27 23:14:16 +02:00
|
|
|
sometimes. If you want to get it anyway, follow the instructions at
|
|
|
|
http://sourceforge.net/svn/?group_id=239111
|
|
|
|
|
|
|
|
For the moment,
|
|
|
|
- the developments for the next release are located in the trunk ;
|
|
|
|
you can checkout the current _development_ state through :
|
|
|
|
svn co https://speed-dreams.svn.sourceforge.net/svnroot/speed-dreams/trunk speed-dreams-trunk
|
|
|
|
- we make branches under the "branches" root dir ; as an exemple,
|
|
|
|
you can get the "1.4.x" release maintenance branch current state through :
|
|
|
|
svn co https://speed-dreams.svn.sourceforge.net/svnroot/speed-dreams/branches/1.4.x speed-dreams-1.4.x
|
|
|
|
- we make release tags under the "tags" root dir ; as an exemple,
|
2011-09-29 19:17:27 +02:00
|
|
|
you can get the "2.0.0 Beta 1" pre-release through :
|
|
|
|
svn co https://speed-dreams.svn.sourceforge.net/svnroot/speed-dreams/tags/2.0.0-b1 speed-dreams-2.0.0-b1
|
2010-09-27 23:14:16 +02:00
|
|
|
|
|
|
|
See configure, build and install method above (2)
|
|
|
|
(note however that branches/1.4.x and tags/1.4.0 are not built through cmake :
|
|
|
|
please refer to the dedicated INSTALL file for these).
|
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
4 - Run Speed-Dreams
|
|
|
|
|
|
|
|
If the default CMake settings were kept, Speed Dreams is normally installed in /usr/local :
|
|
|
|
|
|
|
|
$ speed-dreams-2
|
|
|
|
|
|
|
|
or, if /usr/local/games not already in your PATH :
|
|
|
|
|
|
|
|
$ /usr/local/games/speed-dreams-2
|
|
|
|
|
|
|
|
Runtime options
|
|
|
|
|
|
|
|
-m Use hardware mouse cursor (better on full-screen mode)
|
|
|
|
|
|
|
|
7 - Getting Help
|
|
|
|
|
|
|
|
During the game, press F1 at any time.
|
|
|
|
If you are stuck please report problems through speed-dreams-users mailing list
|
|
|
|
or our bug tracker at http://sourceforge.net/apps/trac/speed-dreams/report.
|
|
|
|
|
2010-09-27 23:14:16 +02:00
|
|
|
|
|
|
|
II - Windows installation from sources
|
|
|
|
---------------------------------------
|
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
1) Cmake and MinGW : We want it ! Who can help us in this MinGW porting work :-?
|
|
|
|
|
|
|
|
2) Cmake and MS VC++ 2005 (8) / 2008 (9) on Windows XP 32
|
2010-09-27 23:14:16 +02:00
|
|
|
|
|
|
|
Note: If you use an "Express" version, don't forget to install also the Windows SDK.
|
|
|
|
|
|
|
|
a. Install CMake v2.6+ http://www.cmake.org/cmake/resources/software.html
|
2011-09-29 19:17:27 +02:00
|
|
|
b. Download the all-in-one source tarball from SF.net
|
|
|
|
http://sourceforge.net/projects/speed-dreams/files/2.0.0
|
|
|
|
(speed-dreams-2.0.0-xxx-src.tar.7z)
|
|
|
|
c. Extract its contents to your local disk (7Zip is an excellent tool for that).
|
|
|
|
d. Download the "MSVC 2005" release of the "3rdParty" package on SF.net
|
2010-09-27 23:14:16 +02:00
|
|
|
http://sourceforge.net/project/showfiles.php?group_id=239111
|
|
|
|
(it contains necessary 3rd party libs compiled with/for MSVC 2005)
|
2011-09-29 19:17:27 +02:00
|
|
|
e. Extract from the zip file the "3rdParty" directory to where speed-dreams sources
|
|
|
|
are installed.
|
|
|
|
Example: If sources are in c:\gamesources\speed-dreams\2.0.0-b1,
|
|
|
|
then extract 3rd party zip in c:\ => c:\gamesources\3rdParty
|
|
|
|
f. Startup CMake and set "Where is the source code" and "Where to build the binaries"
|
2010-09-27 23:14:16 +02:00
|
|
|
to the path where Speed-Dreams sources are installed.
|
2011-09-29 19:17:27 +02:00
|
|
|
Example: If sources are in c:\gamesources\speed-dreams\2.0.0-b1,
|
|
|
|
specify c:\gamesources\speed-dreams\2.0.0-b1 for the 2 fields.
|
|
|
|
g. Press "Configure" button and select the desired compiler.
|
2011-05-14 18:19:26 +02:00
|
|
|
Press the "Configure" button again, until the "OK" button is no more greyed.
|
2011-09-29 19:17:27 +02:00
|
|
|
h. Press the "Generate" button. CMake will generate the solution file "speed-dreams.sln"
|
2010-09-27 23:14:16 +02:00
|
|
|
and associated project files (*.vcproj)
|
2011-09-29 19:17:27 +02:00
|
|
|
i. Load speed-dreams.sln in MSVC IDE.
|
|
|
|
j. Select the build configuration (Debug, Release, ...).
|
|
|
|
k. Build the whole Solution (Build / Build Solution)
|
|
|
|
l. Build the 'INSTALL' project (right click on it and select Build).
|
|
|
|
m. Double-click on speed-dreams-2.exe in c:\Program Files\speed-dreams-2\bin
|
2011-05-14 18:19:26 +02:00
|
|
|
|
|
|
|
Note: First-ever startups sometimes fail to correctly write the necesary stuff
|
|
|
|
into <My documents>\speed-dreams-2.settings and this prevents the game from starting.
|
|
|
|
If this happens, simply remove the <My documents>\speed-dreams-2.settings folder
|
|
|
|
with Windows explorer, and restart the game : it should now work.
|
2010-09-27 23:14:16 +02:00
|
|
|
|
|
|
|
Note: This should also work with MSVC 2008. For MSVC 2003, you'll probably need to rebuild
|
|
|
|
a dedicated 3rdParty package for this compiler
|
|
|
|
|
|
|
|
Note : If you need to recompile the 3rdParty package from sources,
|
|
|
|
(the "Sources" release of the "3rdParty" package on SF.net Download page)
|
|
|
|
be carefull then to rebuild :
|
|
|
|
- everything possible
|
|
|
|
- for the same configuration (don't mix Release and Debug)
|
|
|
|
- everything for multithreaded DLL integration (/MD & /MDd),
|
|
|
|
or be ready for headaches.
|
|
|
|
|
|
|
|
|
2011-01-12 20:32:40 +01:00
|
|
|
3) MS VC++ 6 : No more supported.
|
2010-09-27 23:14:16 +02:00
|
|
|
|
|
|
|
III - FreeBSD installation from sources
|
|
|
|
---------------------------------------
|
|
|
|
|
|
|
|
Mostly the same as for "Linux installation from sources" ...
|
|
|
|
|
|
|
|
Some specific details though :
|
|
|
|
|
2011-09-29 19:17:27 +02:00
|
|
|
2 - Installation from all-in-one Tarball
|
2010-09-27 23:14:16 +02:00
|
|
|
|
|
|
|
b - build and install:
|
|
|
|
|
|
|
|
1. cd to the path where Speed-Dreams sources are installed.
|
|
|
|
2. ccmake .
|
|
|
|
3. press (t) for advanced options
|
|
|
|
4. wanted rows CMake CPPFLAGS
|
|
|
|
5. press (enter)
|
|
|
|
6. add /usr/local/include
|
|
|
|
7. press (enter)
|
|
|
|
8. press (c) for configure
|
|
|
|
9. press (g) for generate and press (e)
|
|
|
|
10. make && sudo make install
|
|
|
|
|
|
|
|
|
|
|
|
TO BE COMPLETED
|
|
|
|
|
|
|
|
|
|
|
|
IV - MacOS X installation from sources
|
|
|
|
--------------------------------------
|
|
|
|
|
|
|
|
To do ...
|
|
|
|
|