|
Building OSRail for Linux |
|
|
Written by Samuel E. Henley
|
|
Saturday, 05 April 2008 09:21 |
Install Libraries and Tools (Debian)
Install using the package system
-
kdesvn
-
poedit, gettext-doc, icons at /usr/share/pixmaps locales-all
-
doxygen, doxygen-doc and doxygen-gui(doxygen-wizard)
-
graphviz and graphviz-doc
-
autoconf, autoproject, autoconf-archive and pkg-config, all automake ( automake >1.6 required for IOS)
-
libtool and libtool-doc
-
libgtk2.0-dev and libgtk2.0-doc
-
g++(should be installed by default)
-
libxaw7-dev (OIS)
-
libpcre3-dev (CEGUI)
-
libzzip-dev (Ogre)
-
libxxf86vm-dev (Ogre)
-
libglu1-mesa-dev (Ogre)
-
libode0-dev (Ogre)
-
libfreetype6-dev (Ogre) should be in the default system
-
libgtkmm2.0-dev (Ogre)
-
libstl5.1-dev(Boost)
-
Subversion, subversion-tools
- libapr-dev
- libsvncpp-dev libsvn-doc
- libboost1.35-dev (Ogre)
-
freeimage-dev (Ogre) - You must install the freeimage package (freeimage-dev) because the freeimage downloaded build does not create a link from libfreeimage.so (as of 8 Sept 09).
-
nautilus-open-terminal kill x-term (ctrl-alt-backspace) log on, adds a terminal to Nautilus menus that opens in the current directory.
Setup sudo
Setup ldconfig
Create Working Directory
This directory should be at the top of OSRail directory tree and will contain the download third party sofware.
Build wxWidgets
-
Get current version of wxWidgets from svn at http://svn.wxwidgets.org/svn/wx/wxWidgets/tags/WX_2_8_10
-
Checkout to "working/WX_2_8_10".
-
In working/wxwidgets-2_8_10 create directories with: mkdir gtk28 gtk28d gtk28u
-
cd gtk28
-
../configure --enable-xrc --enable-monolithic
-
make
-
sudo make install
-
sudo ldconfig
-
cd ../gtk28d
-
../configure --enable-xrc --enable-monolithic --enable-debug
-
make
-
sudo make install
-
sudo ldconfig
-
cd ../gtk28u (required for CodeBlocks)
-
../configure --enable-xrc --enable-monolithic --enable-unicode
-
make
-
sudo make install
-
sudo ldconfig
-
(sometimes required)
-
cd ..
-
sudo cp wxwin.m4 /usr/share/aclocal
Build CodeBlocks
-
Run: kdesvn
-
Browse Repository at: http://svn.berlios.de/svnroot/repos/codeblocks/trunk, get trunk release number 5857. Note: the current trunk does not always build.
-
Checkout to local "working/codeblocks".
-
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.8.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
Build Gdal/Ogr
-
Get Gdal from from svn https://svn.osgeo.org/gdal/tags/1.7.1/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
Build FreeImage
-
Download: FreeImage3130.zip from http://freeimage.sourceforge.net
-
Extract: FreeImage3130.zip into working/FreeImage
-
Goto directory FreeImage
-
make (makefile - NO - .configure)
-
sudo make install (installs in /usr/lib)
-
sudo ldconfig
CG Toolkit
Build Ogre
Test Ogre
angelscript
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)
Open-Soft (OpenAL)
-
Download: openal-soft-1.8.466.tar.bz2 from http://kcat.strangesoft.net/openal.html
-
Extract: openal-soft-1.8.466.tar.bz2 into working/openal-soft-1.9.563
-
Goto directory working/openal-soft-1.9.563
-
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, 08 March 2010 05:25 |