Installing Stratagus

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.
Post Reply
User avatar
Kyran
Posts: 499
Joined: Sat Dec 31, 2011 5:19 pm
Location: Australia
Contact:

Installing Stratagus

Post by Kyran »

Software Requirements

A supported operating system: Windows, Linux, Linux Maemo based devices, Mac OS X, BSD, possibly any other Unix/POSIX OS.
NOTE: some features of Winsock2 (WS2_32.DLL) are used. So even if you plan to play single player only, WinNT4.0 users will need Service Pack 3 or higher and Windows 95 users will need the winsock 2 update.

CMake (required).
SDL (required).
libpng (required).
zlib (required).
Lua 5.1 (required).
Tolua++ (required).

LibOSSO - part of Maemo SDK (required on Maemo).
SDL gles - part of SDL hildon - needed for OpenGL ES 1.1 (instead OpenGL).

libogg (recommended).
libvorbis (recommended).
libtheora (recommended).

libmikmod (optional).
libbzip2 (optional).
libmng (optional).
SQLite (optional).
DoxyGen (optional).

For MSVC user, these libraries/headers can be downloaded here.

Hardware Requirements

Memory: 64 MB of RAM.
Video Card: Any graphics card that can handle 16 bpp and 640x480 is supported. (Use of OpenGL requires a 32MB Card)
Sound Card: Optional.
Processor: A 300 MHz CPU (faster recommended).
NOTE: Stratagus is believed to be endian and word size safe, so other architectures like (big endian) PPC or (64bit) Alpha should also work at least with Linux.

Installation from sources

Step 1, Download and Extract:
Download the source code.
Extract the source stratagus-VERSION.tar.gz with 'tar -zxvf stratagus-VERSION.tar.gz'

Step 2, Compile:

Create 'build' directory in toplevel stratagus tree and here run:
'cmake .. && make'

For MSVC users :
cmake.exe -DENABLE_STATIC=ON -G"Visual Studio 10"
the CMake option -DCMAKE_PREFIX_PATH=c:/path/to/3rd/ enable CMake to find
executables in : c:/path/to/3rd/bin/
headers in c:/path/to/3rd/include/
libraries in c:/path/to/3rd/lib/
You can now use the generated solution.

Step 3: Build packages

This step is optional.
You can build debian packages by using 'debuild' directly.
Step 4, Run:

You may now go into the toplevel stratagus directory and run the binary. Remember, you have to obtain the game data to start the engine. By default, stratagus looks in './data', if your data is in a different location you will need to run stratagus with '-d /path_to_data'.
04:27 jim4 why haven't you added wc1 support? this project sucks. i'm only going to use freecraft
05:06 jim4 finished wc1 support yet? i've been waiting for 6 years
05:10 jim4 new things scare me
User avatar
jarod42
Posts: 101
Joined: Fri Jan 20, 2012 7:43 pm

Re: Installing Stratagus

Post by jarod42 »

As a note, these info can be found:
- in the install directory: stratagus/doc/install.html
- or in the website:http://stratagus.com/install.shtml

[Edit]There is also an unofficial http://stratagus.sourceforge.net/misc/3rd_gcc.7z
which may be used to compile stratagus with gcc under windows (using Codelite or CodeBlocks).
unzip 3rd_gcc near than stratagus, then run 3rd_gcc/premake/buildall.bat to generate projects into project directory. Note that before, you have to run manually tolua++ to create tolua.cpp .
Post Reply