Did it! Setup Ogre on Debian

Problems building or running the engine, queries about how to use features etc.
Post Reply
deviloper
Gnoblar
Posts: 1
Joined: Mon Jun 11, 2018 6:16 pm

Did it! Setup Ogre on Debian

Post by deviloper »

Hi,

i'm posting this in help, sorry if this is the wrong subforum.

Looks like some files in the Wiki are dead - only 0 Bytes in the Zips here:
http://wiki.ogre3d.org/Ogre+Wiki+Tutorial+Framework


I'm running on debian 9, the IDE of my choice is eclipse-cdt from debian repository.

I wanted to compile the Basic Ogre Framework and had some minor problems as listed below - maybe someone will find this post useful.

I started here:
http://wiki.ogre3d.org/Basic+Ogre+Framework
and added the files manually from this tutorial to a new eclipse C++ project - the link to the mercurial repository was missing.

These are the packages which i installed (eclipse cdt was already installed):
apt-get install libogre-1.9-dev
apt-get install libxft-dev
apt-get install libfreetype6-dev
apt-get install libjpeg-dev
apt-get install libois-dev


First problem: libogre-1.9-dev is missing the file SdkTrays.h - looks like this is a known issue
I simple obtained it from here:
https://bitbucket.org/sinbad/ogre/src/b ... ew-default
and dropped it into the eclipse project. works.

next problem: the Basic Ogre Framework is outdated, looks like it was written for 1.8, so two adjustments are necessary, see:
http://wiki.ogre3d.org/tiki-index.php?p ... ting_Notes

in eclipse, the include paths for the GCC C++ Compiler have to be set:
/usr/include/OGRE
/usr/include/OGRE/Overlay
/usr/include/ois


and the included libraries for the GCC C++ linker:
OgreOverlay
OgreMain
boost_system
OIS


E voila! It compiles.

Some assets and .cfg were missing. I found them, with the rest source files here:
https://bitbucket.org/spacegaier/basico ... downloads/

after tweaking here and there (the .cfg files, adapting to linux) i finally got a nice ogre head on my display :D

Next steps:
1. doing more stuff from the tutorial :)
2. putting all on an open git repository
Post Reply