A group dedicated to indie and standalone game development.

Post tutorial Report article RSS Feed Building your own M.A.R.S. version on Ubuntu

How to quickly build M.A.R.S. on Ubuntu distribution?

Posted by feillyne on Apr 20th, 2011
Basic Other.

So how to quickly build M.A.R.S on Ubuntu?

Using Terminal, first you need to obtain a CMake package:

Quote:sudo apt-get install build-essential cmake

Then obtain the SFML2 (Simple And Fast Media Library) dependencies:

Quote:sudo apt-get install libfreetype6-dev libglew1.5-dev libjpeg62-dev libpng12-dev libsndfile1-dev libxrandr-dev libopenal-dev

Third, the SFML2 package itself:
(Warning, it may download without showing the exact file time/size remaining. It should be around 10MB)

Now you can extract the contents of the archive somewhere, for example to your desktop and open the Terminal in that folder or write:

Quote:cd ~/Desktop/sfml2

Still having Terminal open, you need to create a make file using CMake to compile & install SFML2:

Quote:cmake .

Quote:make && sudo make install

Now, the M.A.R.S. itself. You need to download source files of the latest stable version (0.7.1):

As above, you can extract it anywhere, for example, on your desktop. Then open up a new Terminal window in the build folder, or go to the folder with a command:
cd ~/Desktop/mars-game/build/

And now we'll create a M.A.R.S. makefile and compile the M.A.R.S. itself:

Quote:cmake ..

Quote:make && cd ..

(Note the two dots there at the end.)

Finally, you can launch M.A.R.S. by typing:


or simply run the newly created mars executable.

Based on the official tutorial (a forum post) how to compile M.A.R.S., you can check it for a longer version with a couple of additions (how to create a project for CodeBlocks, etc.):

Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Jan 21, 2009
Open to all members
Send Message
Join this group
Group Watch
Track this group
Report Abuse
Report article
Related Games
M.A.R.S. - A Ridiculous Shooter
M.A.R.S. - A Ridiculous Shooter Single & Multiplayer Arcade
Related Groups
Curly Bracket Programming Realm
Curly Bracket Programming Realm Hobbies & Interests group with 75 members
Indie Devs
Indie Devs Hobbies & Interests group with 1,217 members
Linux Gamers
Linux Gamers Fans & Clans group with 2,912 members
M.A.R.S. Core Team
M.A.R.S. Core Team Developer & Publisher
Open Source Initiative (unofficial)
Open Source Initiative (unofficial) Other group with 31 members
Ubuntu fans
Ubuntu fans Hardware & Tech group with 20 members