Page 1 of 1

[How to] building on Ubuntu

PostPosted: 04 Sep 2015, 00:13
by dimproject
OS Ubuntu 15.04 64 bit

Open Terminal and type/paste this:

sudo apt-get install muon

Go to /usr/share/applications and find Muon Package Manager
Open Muon Package Manager.
Type/paste g++, select g++ package,
right mouse button click, click Mark for Installation.

01.jpg


Same with cmake-qt-gui,
codeblocks,
git,
libboost-wave-dev,
libboost-system-dev,
libboost-filesystem-dev,
libboost-thread-dev,
libogre-1.9-dev,
libmygui-dev,
libsdl2-dev,
libogg-dev,
libopenal-dev,
libvorbis-dev,
libbullet-dev
libbullet-extras-dev
libenet-dev

Click Apply Changes button.

02.jpg


Open Terminal and type/paste this:

{l Code}: {l Select All Code}
git clone --depth=1 git://github.com/stuntrally/stuntrally.git stuntrally


Then type/paste this:

cd stuntrally/data

Then type/paste this:

{l Code}: {l Select All Code}
git clone --depth=1 git://github.com/stuntrally/tracks.git tracks


Go to /home/user/stuntrally and create new folder, call it build.

03.jpg


Go to /usr/share/applications and find CMake.
Open CMake.
Type/paste /home/user/stuntrally in Where is the source code
Type/paste /home/user/stuntrally/build in Where to build the binaries
Click Configure, select CodeBlocks - Unix Makefiles.
Click Finish, then Generate.

Go to /home/user/stuntrally/build.
Open file StuntRally.cbp.
Click build there.

04.jpg


Copy stuntrally, sr-editor files to /home/user/stuntrally/proj
Run stuntrally or sr-editor :).

Code::Blocks IDE like Visual Studio IDE in OS Windows.

Stuntrally, sr-editor files are big in size.

For Debug, Compiler Flags better to use:
Produce debugging symbols [-g]

For Release, Compiler Flags better to use:
Strip all sybols from binary (minimize size) [-s]
Optimize even more (for speed) [-O2]

Re: [How to] building on Ubuntu

PostPosted: 04 Sep 2015, 18:46
by CryHam
Cool, good information.
I've changed the topic to [How to] building on Ubuntu.
Since this is a tutorial thing, right.
It's got screenshots and uses Gui stuff.
The regular How to compile Wiki is text only.

Re: [How to] building on Ubuntu

PostPosted: 04 Sep 2015, 21:36
by dimproject
dimproject {l Wrote}:Go to /usr/share/applications and find CMake.
Open CMake.
Type/paste /home/user/stuntrally in Where is the source code
Type/paste /home/user/stuntrally/build in Where to build the binaries


For build Stuntrally, sr-editor files are small in size
you need type/paste this:

Release

in CMAKE_BUILD_TYPE

05.jpg