Home Building OSRail Linux
Linux
Building OSRail for Linux Print
Written by Samuel E. Henley   
Saturday, 05 April 2008 09:21

Install Libraries and Tools (Debian)

Install using the package system

  • kdesvn 0.14.6-1

  • poedit 1.4.2-3, gettext-doc 1.4.2-3, icons at /usr/share/pixmaps

  • doxygen 1.5.6-2, doxygen-doc 1.5.6-2 and doxygen-gui 1.5.6-2(doxygen-wizard)

  • graphviz 2.20.2-3 and graphviz-doc 2.20.2-3

  • autoconf 2.61-8, autoproject 0.20-5, autoconf-archive 20070512-1 and pkg-config 0.22-1, all automake 1:10.1-3 ( automake >1.6 required for IOS) 1.4 - 1.9

  • libtool 1.5-26-4+lenny1 and libtool-doc 1.5-26-4+lenny1

  • libgtk2.0-dev 2.12.12-1~lenny2 and libgtk2.0-doc 2.12.12-1~lenny2

  • g++ 4.4.3.2-2 (should be installed by default)

  • libxaw7-dev 2:1.0.4-2 (OIS)

  • libpcre3-dev 7.6-2.1 (CEGUI)

  • libzzip-dev 0.13.49-4 (Ogre)

  • libxxf86vm-dev 1:1.0.2-1 (Ogre)

  • libglu1-mesa-dev 7.0.3-7 (Ogre)

  • libode0-dev 2:0.9-1 (Ogre)

  • libfreetype6-dev 2.3.7-2+lenny4 (Ogre) should be in the default system

  • libgtkmm2.0-dev 2-2.12-2 (Ogre)

  • libstlport5.1-dev 5.1.5-3b1 (Boost)

  • Subversion 1.5.1dfsg2-4, subversion-tools 1.5.1dfsg2-4

  • libapr1-dev 1.2.12-5+lenny2
  • libsvncpp-dev 0.9.6-1 libsvn-doc 0.9.6-1
  • freeimage-dev 3.10.0-1 (Ogre)

  • libboost1.35-dev 1.35.0-5(Ogre)

  • freeglut3-dev 2.6.0-1 and glut-doc 3.7-25 (wxWidgets)

  • nautilus-open-terminal 0.8-2 - kill x-term (ctrl-alt-backspace) log on, adds a terminal to Nautilus menus that opens in the current directory.

 

 

Setup sudo

  • Install sudo. (should be installed by default)

  • As root: run visudo and add yourself ALL=(ALL) ALL to the end.


Setup ldconfig

  • Set user ld.so.conf - edit as root: /etc/ld.so.conf and add "/usr/local/lib" to end of the file.

Create Working Directory

This directory should be at the top of OSRail directory tree and will contain the download third party software.

Build wxWidgets

  • Get current version of wxWidgets from svn at http://svn.wxwidgets.org/svn/wx/wxWidgets/tags/WX_2_9_2 using kdesvn.

  • Checkout to "working/WX_2_9_2".

  • In working/wxwidgets-2_9_2 create directories with: mkdir gtk29 gtk29d

  • cd gtk29

  • ../configure --enable-xrc --enable-monolithic --enable-unicode --with-opengl

  • make

  • sudo make install

  • sudo ldconfig

  • cd ../gtk29d

  • ../configure --enable-xrc --enable-monolithic --enable-unicode --with-opengl --enable-debug

  • make

  • sudo make install

  • sudo ldconfig

  • (sometimes required)

    1. cd ..

    2. sudo cp wxwin.m4 /usr/share/aclocal

Build CodeBlocks

  • Run: kdesvn

  • Browse Repository at: http://svn.berlios.de/svnroot/repos/codeblocks/tags/10.05, build 6285.

  • Checkout to local "working/codeblocks" (uncheck append source url name to sub-folder).

  • Goto "working/codeblocks"

  • ./bootstrap

  • mkdir build

  • cd build

  • ../configure

  • make

  • sudo make install

  • sudo ldconfig

  • Disable the movement Key under Window Preference - set to Super (windows logo) -The Alt key used for block select mode in CodeBlocks

  • Run codeblocks - goto menu Settings->Environment and uncheck "one running instance"
    Settings->Compiler&Debugger->Debugger Settings and uncheck "Catch C++ exceptions"

Test CodeBlocks & wxWidgets

  • Run CodeBlocks

  • File -> new project -> wxWidgets project

  • Go, next, 2.9.x, title=wxtest, folder=/home/

  • Author = etc.

  • none, frame based

  • Create a release and debug configuration.

  • Use default wxWidgets, Create PCH

  • Finish

  • Build workspace

  • Run workspace

Build libcurl

  • Get curl from http://curl.haxx.se curl-7.21.1.rar.gz

  • Dump it into working/curl-7.21.1

  • Goto working/curl-7.21.1

  • mkdir build

  • cd build

  • ../configure

  • make

  • sudo make install

  • sudo ldconfig

Build Gdal/Ogr

  • Get Gdal from from svn https://svn.osgeo.org/gdal/tags/1.7.3/gdal Checkout to "working/gdal"

  • ./configure --with-curl=no --enable-debug

  • Does not build a makefile only fills out an *.in file, make will default to GNUMakefile

  • make

  • sudo make install

  • sudo ldconfig

Build OIS

  • Download: OIS from http://sourceforge.net/projects/wgois Linux X86 (ois_1.2.0.tar.gz) Version 1.2

  • Dump it into working/ois

  • mkdir build

  • ./bootstrap

  • cd build

  • ../configure

  • make

  • sudo make install

  • sudo ldconfig

Build FreeImage

  • Download: FreeImage3141.zip from http://freeimage.sourceforge.net

  • Extract: FreeImage3141.zip into working/FreeImage

  • Goto directory "FreeImage"

    Use CodeBlocks to modify ImfChromaticities.cpp in directory ../OpenEXR/Ilmlf - add #include < string.h > to the headers - fix an error - memset was used in a templete.

  • make (makefile - NO - .configure)

  • sudo make install (installs in /usr/lib)

  • sudo ldconfig

CG Toolkit

Build Ogre

  • Download source - version 1.7.2 (ogre_src_v1-7-2.tar.bz2) from  http://svn.ogre3d.org/download/source

  • Checkout into working/ogre_src_v1-7-2

  • Goto directory working/ogre_src_v1-7-2

  • mkdir MAKE

  • cd MAKE

  • cmake -DOGRE_CONFIG_THREADS=0 ..

  • make

  • sudo make install

  • sudo ldconfig

boost

OSRail Repository

  • Browse Repository at: http://wush.net/svn/sehenley/simulator/trunk

  • Create a path in home: working/simulator/trunk

  • Select trunk and checkout to local workspace/simulator/trunk

  • If committing changes, request a password and user name for the svn site from This e-mail address is being protected from spambots. You need JavaScript enabled to view it

CMake (Special version with a CodeBlocks generator ) source in vendor sub-directory)

  • Goto directory vendor/cmake

  • ./bootstrap

  • - NO - ./configure - ./bootstrap script builds a bootstrap version of cmake.

  • make

  • sudo make install

Open-Soft (OpenAL)

  • Download: openal-soft-1.12.854.tar.bz2 from http://kcat.strangesoft.net/openal.html

  • Extract: openal-soft-1.12.854.tar.bz2 into working/openal-soft-1.12.854

  • Goto directory "working/openal-soft-1.12.854"

  • mkdir build

  • cd build

  • cmake ..

  • make

  • sudo make install

  • sudo ldconfig

Building OSRail under Linux with CodeBlocks

To build a CODEBLOCKS build under Linux, create a directory CODEBLOCKS in the "/branch/tag or trunk directory" and get a command prompt in the CODEBLOCKS sub-directory, type the command: "cmake -GCodeBlocks .. ". The cmake scripts will check that all 3rd party libraries are installed and build some required utilities for OSRail. The cmake script will create the workspace file OSRail.workspace.

Building OSRail under Linux with Make

To build a MAKE build under Linux, create a directory MAKE in the "/branch/tag or trunk directory" and get a command prompt in the MAKE sub-directory, type the command: "cmake .. ". The cmake scripts will check that all 3rd party libraries are installed and build some required utilities for OSRail. The cmake script will create Makefile. Run make in the MAKE sub-directory.



Last Updated on Monday, 24 October 2011 08:40