How to build the game on linux

Anything related to programming on the game

How to build the game on linux

Postby Andrew » Wed Oct 28, 2009 4:42 am

I haven't finished writing this. Something may be incorrect

NOTE: You need the following versions or higher

- Ogre3D - 1.6.0 or later
- MyGUI - 2.2.2
- OIS - 1.2 or later
- Boost (filesystem and thread)
- SQLite

Downloading the code

The code is hosted on launchpad. To get it you're going to need Bazaar.

When you have installed Bazaar it should be as easy as typing the following..

Code: Select all
bzr branch lp:hardwar


You can do the following to update..

Code: Select all
bzr pull lp:hardwar


Building on linux

You can not use Ogre3d in Ubuntu, it's too old (unless you're using karmic or later).

If you're using Ubuntu you can find my PPA here:
https://launchpad.net/~andrewfenn/+archive/ogredev

Add it and type:
Code: Select all
sudo apt-get install libois-dev libogre-dev libmygui-dev libboost-dev libsqlite3-dev


Your only other option is to compile from source Ogre3d, MyGUI and OIS.

To compile the dependencies after you have installed the libraries type:
Code: Select all
cmake .
make


and then do it again to build the game..

Code: Select all
cmake .
make


Running the game

Open two terminals or make a shortcut on windows and run the following..

Code: Select all
./server

Turns on the server
Code: Select all
./client

Loads up the game and connects to the server
User avatar
Andrew
Site Admin
 
Posts: 149
Joined: Fri Oct 23, 2009 6:01 pm
Location: Thailand

Re: How to build the game

Postby Duncan » Sat Oct 31, 2009 4:01 am

so i can also try on mac os?
Duncan
 
Posts: 1
Joined: Sat Oct 31, 2009 3:55 am

Re: How to build the game

Postby Andrew » Sat Oct 31, 2009 5:23 am

I haven't tried yet but as soon as I get the chance I will post up the instructions. :)
User avatar
Andrew
Site Admin
 
Posts: 149
Joined: Fri Oct 23, 2009 6:01 pm
Location: Thailand


Return to Code

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron