Compilation - PHLF/TA3D GitHub Wiki
You need CMake 2.6 in order to build TA3D. You can install it from the backports repository (only 2.4 is in main). Enable hardy-backports, then use your favorite package manager to install cmake 2.6
You need GCC with C++ support (g++) to build TA3D, just install g++ like any other software using your package manager. Then you'll need to install the headers of some libs :
- librandr-dev
- libsdl1.2-dev
- libsdl-image1.2-dev
- libsdl-net1.2dev
- libsdl-ttf2.0-dev
FMOD is a sound/music library, there is no package for it so you'll have to download and install it manually. You'll find it here: www.fmod.org
We recommend you use the latest stable version (>= 4.16.x at the time of writing those instructions)
Now you can build ta3d:
cmake ./
make
Current instructions are for Mandriva 2008.1, it should also work with previous versions of Mandriva.
You need CMake 2.6 in order to build TA3D. It's not present in repositories, so you'll have to build it yourself unless you want to try a RPM from a different distribution. go to www.cmake.org and download cmake-2.6.*.tar.gz, then extract it, follow cmake build instructions and install it.
You need GCC with C++ support (g++) to build TA3D, just install gcc-c++ like any other software using your package manager. Then you'll need to install the headers of zlib and allegro : zlib1-devel, allegro4.2-devel (will install Allegro 4.2 if not done)
Now you're done with the packages. Let's install AllegroGL, you can download it from: www.allegro.cc
extract AllegroGL's archive and run :
./fix.sh unix
./configure
make
sudo make install
AllegroGL should now be installed.
NB: TA3D requires Allegro >= 4.2.2, if you use an older version of Mandriva you may have to build it yourself.
FMOD is a sound/music library, there is no package for it so you'll have to download and install it manually. You'll find it here: www.fmod.org
We recommend you use the latest stable version (>= 4.16.x at the time of writing those instructions)
Now you can build ta3d:
cmake ./
make
PS: If you get an error message with something like ...... edit the /usr/local/include/allegrogl/GLext/gl_ext_api.h file, and find the line:
AGL_API(void, EndTransformFeedbackNV, (GLvoid))
replace GLvoid with void now it should build :)
NB: if you're using a NVidia card, you will probably run into crashes when the game starts. To fix that, install the -devel package of the nvidia driver, then run ldconfig as root. This is due to TA3D loading both NVidia's and mesa libraries ...
You need CMake 2.6 in order to build TA3D. Just emerge it as any other software.
You need GCC with C++ support (g++) to build TA3D, on Gentoo you should have it :D Then you'll need to install zlib, allegro ( >= 4.2.2 ) and AllegroGL (>= 0.4.3 recommended)
FMOD is a sound/music library, you can emerge it but won't probably be the last version, we recommend you install it manually. You'll find it here: www.fmod.org
We recommend you use the latest stable version (>= 4.16.x at the time of writing those instructions)
Now you can build ta3d:
cmake ./
make
PS: If you get an error message with something like ...... edit the /usr/local/include/allegrogl/GLext/gl_ext_api.h file, and find the line:
AGL_API(void, EndTransformFeedbackNV, (GLvoid))
replace GLvoid with void now it should build :)
Install TortoiseSVN via their WebSite :
http://tortoisesvn.net/downloads
Install CMake for Windows via their web site http://www.cmake.org
Install MinGW, available on their web site : http://www.mingw.org/wiki/Getting+Started or directly on SourceForge : http://sourceforge.net/project/showfiles.php?group_id=2435 You can use the Automated MinGW Installer Needed options: MinGW base tools, G++ compiler, MinGW make
Make sure g++, make, and cmake can ba invoked via the command line. Otherwise check your env paths.
There is still a workaround on Windows for the libraries HawkNL and Lua. They are not compiled by CMake (ticket http://trac.trac.org/ticket/60)
Compile HawkNL :
cd trunk/src/hawknl/src
mingw32-make -f makefile.mingw
Compile Lua :
cd trunk/src/lua
mingw32-make mingw
Compile 3dmeditor and ta3d :
cmake -G "MinGW Makefiles" .
mingw32-make
Notice: With MinGW Gcc >3.4.5, Allegro produces a lot of warnings
The developper tools must be installed (available on all Mac OS X install CD/DVD).
A - Using MacPort (http://www.macports.org)
- If MacPort is not installed on your system, download and install MacPort :
http://www.macports.org/install.php
MacPort provides command line utilities. A GUI Front-End nammed 'Porticus' is available :
http://porticus.alittledrop.com/ - If MacPort is already installed on your system, make sure the port files are up-to-date :
$ sudo port selfupdate
$ sudo port upgrade outdated
Install CMake via MacPort
$ sudo port install cmake
Install Subversion via MacPort. OS X is shipped with Subversion binaries.
However, you may want the latest available version of subversion. In this
case you can install install it via MacPort :
$ sudo port install subversion
Install FreeType/FTGL via MacPort
$ sudo port install freetype ftgl
Install the SDL framework via MacPort
$ sudo port install libsdl libsdl-framework libsdl_gfx libsdl_gfx-framework libsdl_image libsdl_image-framework libsdl_mixer libsdl_mixer-framework libsdl_net libsdl_net-framework libsdl_pango libsdl_sound libsdl_sound-framework libsdl_ttf libsdl_ttf-framework glew
Install LUA via MacPort
$ sudo port install lua
Get the source, in the folder of your choice.
$ cd <somewhere>
$ svn co http://ta3d.darkstars.co.uk/TA3D/trunk TA3D
$ cd TA3D
$ cmake .
$ make
if you want more verbosity, try :
$ make VERBOSE=1
If you have a computer with more than one processor or a Multi-Core CPU you may want this :
$ make -j 2
(where 2
should be replaced by the number of Core/CPU)