Wiki

Clone wiki

Mobius Game Engine / Build_Instructions

Building Instructions

Instructions for downloading, building and running the Mobius Engine on Windows and Linux (and Mac with help in the future).

Building on Windows

(Much thanks to Relick for these)

1) Download Prerequisites You'll need GIT, MinGW and SDL.

2) Install GIT and MinGW Both are self-explanatory installers, but remember that when you install MinGW you need to tick the C++ compiler box - this is extremely important.

images/1.png

3) Install SDL into MinGW This bit is a bit more difficult. Navigate to where you installed MinGW (default is C:\MinGW\). Navigate to the 'include' folder inside here. Open/extract the SDL file and drag the 'SDL' folder located inside 'include' into MinGW's 'include' folder.

images/2.png

Now in MinGW go back up a folder and navigate to the 'lib' folder. Copy everything from the 'lib' folder in the SDL file into MinGW's 'lib' folder.

images/3.png

Now you are done with MinGW, but leave the SDL file open somewhere.

4) Clone the Repo Open GIT Bash and type in the command:

git clone https://bitbucket.org/Sofox/mobius-game-engine.git

This will download everything on the repo straight to your home folder (C:\Users\<name>\mobius-game-engine)

images/4.png

5) Copy in the SDL dll Within the mobius-game-engine folder, navigate through these folders: bin/Windows then in the SDL file we used earlier, look inside it's bin folder and copy to the folder above the SDL.dll.

images/5.png

6) Modify PATH Press Start, then right click on My Computer and then click Properties. From the window that opens, click Advanced (or anything similar to it) then Environment Variables. Scroll down in System Variables until you find PATH and open it up. DO NOT DELETE ANYTHING.

images/6.png

Append to the beginning of the line:

C:\MinGW\bin;

images/7.png

Click save, then close the window.

7) Ready Test out whether you got it working by opening up command line (Start -> cmd) then typing these commands (replacing <name> with your name):

cd C:\Users\<name>\mobius-game-engine
mingw32-make

This will put mobius.exe into your bin/Windows folder. Double click it to --play-- use.

images/8.png

Building on Linux

Ensure you have Git, OpenGL and SDL installed.

On Ubuntu try the following commands:

sudo apt-get install git libsdl1.2-dev libgl1-mesa-dev  libglu1-mesa-dev 

Then navigate to your desired folder and download (clone) the source code from the repository with this command:

git clone https://bitbucket.org/Sofox/mobius-game-engine.git

From there just type:

make

NOTE: If you are getting error "/usr/bin/ld: cannot find -lGL" on Ubuntu 12.04, you may need to enter:

sudo ln -s /usr/lib/i386-linux-gnu/libGL.so /usr/lib/libGL.so

or if you have a 64 bit system:

sudo ln -s /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/libGL.so

If neither of the above work, run "locate libGL.so" and use one of the files that comes up as the first filepath to use in the above "ln" command.

And to run the program, either navigate to the bin/Linux folder and double click on "mobius", or just type:

bin/Linux/mobius

from the base directory of the downloaded repository.

Building on Mac

If anyone could contribute instructions for building on Mac, we would greatly appreciate and it would really help the project.

Other notes

If you have any suggested improvments, or had problems with the above, please let us know at the , or even just make the changes yourself directly to this page! Thank you!

Updated