Building Project Ura
From Trinity Reign Wiki
Proceed with caution!
Contents |
Ubuntu Linux 7.10
For convenience, a dependency file is provided here which can be set up by simply executing the provided shell script.
The first step is to fetch the source code from the subversion repository. Note that a shell script is provided here which will set up the dependencies for you.
After you've done this, it's time to get and build all of the dependencies. At the time of writing, Project Ura currently depends on RakNet, Ogre3D (client side only), TinyXML, ODE and SQLite.
To install RakNet, first download the latest version from the RakNet website and extract it (probably using 'unzip'). Now go to the directory called 'Source' inside of the extracted RakNet directory. Run the following command from that directory: 'g++ -c *.cpp'. Now build the static lib by calling 'ar q libraknet.a *.o'. Run 'ranlib libraknet.a'. Now 'rm *.o' to clean up the directory. Now for a little bit of information about the Makefiles. They look for the dependencies in /usr and /usr/local, so that's why we put them here. If you want to change the Makefiles for your own personal use, feel free to place the dependencies wherever you wish. With that said, go ahead and move libraknet.a to /usr/local/lib. Now back out of the Source directory, then rename it to 'raknet'. Now move 'raknet' to /usr/local/src.
ODE is much simpler to install thanks to the provided GNU Automake files. Get the latest ODE from the Sourceforge download page and then extract it as usual. Change it to the newly created ODE directory and call './configure'. Once that finishes, call 'make'; this step will take a few minutes, so go ahead and hit your head against the corner of a desk while waiting. With that done, bandage your head then call 'sudo make install'. ODE is now set up properly.
Follow the ODE steps for setting up SQLite.
Fetch and install the Ogre Source by following this tutorial. Note: When installing CEGUI, make sure to configure with the default tinyxml option (see this).
At this point you should now be able to successfully build the Server and Master Server by changing directory to 'ura-game/[Master ]Server' and calling 'make'. The output is sent to 'ura-game/release/[master_]server'.
Windows with Visual Studio 2008
Coming soon.
