Debian Gnu/Linux Tutorial
Posted: Wed Aug 25, 2004 1:12 pm
Well, i don't know if this helps somone but i really got fed up with searching through the whole forum.
So now i paste this Tutorial for other people using Debian Gnu/Linux who don't want to look through the whole forum.
These are only extracts from other Forum Articles which aren't posted from me but i'll make a link to every post.
1 Dependencies
2 Get the Ogre3D package
3 Installing Ogre3D
4 making a .deb File (not necessary)
5 Compiling a Sample
6 Known Bugs
6.1 bootstrap error
6.2 sample app can't find libOgreMain.so.3
1. Dependencies originally by l3m
http://www.ogre3d.org/phpBB2/viewtopic. ... n&start=25
first you have to get the dependencies:
# apt-get install libsdl1.2-dev libdevil-dev libfreetype6-dev
for gtk gui you also have to get:
# apt-get install libgtkmm2.0-dev libglademm2.0-dev
Then you have to get the CG from Nvidia:
ftp://download.nvidia.com/developer/cg/ ... nux.tar.gz
untar it with tar-xvf Cg-1.2.1-Linux.tar
then copy as root the files from the different dirs like bin lib etc. to your / dirs like /lib
/usr/bin etc.
As you can read below the new versions of cg are not yet supported.
2. Get the Ogre3D package originally by l3m
http://www.ogre3d.org/phpBB2/viewtopic. ... n&start=25
Either download the stable .tar.gz
http://www.ogre3d.org/modules.php?op=mo ... tit&lid=43
or get the latest version from cvs:
# apt-get install cvs ( just in case cvs isn't installed on your system yet )
$ cvs -d :pserver:anonymous@cvs.sf.net:/cvsroot/ogre login
$ cvs -z3 -d :pserver:anonymous@cvs.sf.net:/cvsroot/ogre co ogrenew
3. Installing Ogre3D originally by l3m
http://www.ogre3d.org/phpBB2/viewtopic. ... n&start=25
go to the ogrenew directory
#./bootstrap
#./configure
#make
#make install
I often got errors with the cvs versions. If they don't work try the latest stable.
4. Making a .deb File originally by badcamel (forgot link)
If you want to make a .deb file out of it you have to get checkinstall via # apt-get install checkinstall
then change to the ogrenew directory and type checkinstall
enter a description and avoid other symbols then a point(.)
fillout the right version number, name, description, and group.
After this you should have a working .deb file wich you can install and uninstall via dpkg -i ogre.deb or dpkg -r ogre.deb
5. Compiling a Sample
Change to your ogrenew/Samples/Common/bin dir.
Create a file called SampleApp.cpp with the sourcecode from
http://www.ogre3d.org/docs/Tutorials/Se ... pleApp.cpp
Save it and then type:
$ g++ -o test sample.cpp -DGCC_3_1 -DEXT_HASH -I/usr/local/include/OGRE -I/home/scar/ogrenew/Samples/Common/include -L/usr/local/lib/OGRE -lOgreMain
notice that the second include path /home/scar/ogrenew... must be your path to the ogrenew dir.
That should compile the sample app. Run it via ./test.
You need gcc 3.x to compile it. I used gcc 3.3.4 and it worked.
6. Known Bugs
6.1: # ./bootstrap doesn't work.
If your bootstrap file doesn't work you should try to get automake 1.9 via
# apt-get install automake1.9
then change to your /usr/bin dir.
Then replace your automake file with the automake1.9 file.
# rm automake; cp automake1.9 automake;
Then go to your ogrenew dir and open the bootstrap file with an editor.
Change the line:
if test -z "`automake --version 2>&1|head -n 1|egrep '1.[6-8]'`"; then
to
if test -z "`automake --version 2>&1|head -n 1|egrep '1.[6-9]'`"; then
It's simply changing the 8 to 9.
This should solve your problem.
6.2 sample app can't find libOgreMain.so.3
If your sample app doesn't find the libOgreMain.so or another lib you should copy the ogre libs from /usr/local/lib/OGRE to /lib
do this by # cp /usr/local/lib/OGRE/* /lib/
please notice that you shouldn't use the -r par.
I hope this could help some people.
Scar
So now i paste this Tutorial for other people using Debian Gnu/Linux who don't want to look through the whole forum.
These are only extracts from other Forum Articles which aren't posted from me but i'll make a link to every post.
1 Dependencies
2 Get the Ogre3D package
3 Installing Ogre3D
4 making a .deb File (not necessary)
5 Compiling a Sample
6 Known Bugs
6.1 bootstrap error
6.2 sample app can't find libOgreMain.so.3
1. Dependencies originally by l3m
http://www.ogre3d.org/phpBB2/viewtopic. ... n&start=25
first you have to get the dependencies:
# apt-get install libsdl1.2-dev libdevil-dev libfreetype6-dev
for gtk gui you also have to get:
# apt-get install libgtkmm2.0-dev libglademm2.0-dev
Then you have to get the CG from Nvidia:
ftp://download.nvidia.com/developer/cg/ ... nux.tar.gz
untar it with tar-xvf Cg-1.2.1-Linux.tar
then copy as root the files from the different dirs like bin lib etc. to your / dirs like /lib
/usr/bin etc.
As you can read below the new versions of cg are not yet supported.
2. Get the Ogre3D package originally by l3m
http://www.ogre3d.org/phpBB2/viewtopic. ... n&start=25
Either download the stable .tar.gz
http://www.ogre3d.org/modules.php?op=mo ... tit&lid=43
or get the latest version from cvs:
# apt-get install cvs ( just in case cvs isn't installed on your system yet )
$ cvs -d :pserver:anonymous@cvs.sf.net:/cvsroot/ogre login
$ cvs -z3 -d :pserver:anonymous@cvs.sf.net:/cvsroot/ogre co ogrenew
3. Installing Ogre3D originally by l3m
http://www.ogre3d.org/phpBB2/viewtopic. ... n&start=25
go to the ogrenew directory
#./bootstrap
#./configure
#make
#make install
I often got errors with the cvs versions. If they don't work try the latest stable.
4. Making a .deb File originally by badcamel (forgot link)
If you want to make a .deb file out of it you have to get checkinstall via # apt-get install checkinstall
then change to the ogrenew directory and type checkinstall
enter a description and avoid other symbols then a point(.)
fillout the right version number, name, description, and group.
After this you should have a working .deb file wich you can install and uninstall via dpkg -i ogre.deb or dpkg -r ogre.deb
5. Compiling a Sample
Change to your ogrenew/Samples/Common/bin dir.
Create a file called SampleApp.cpp with the sourcecode from
http://www.ogre3d.org/docs/Tutorials/Se ... pleApp.cpp
Save it and then type:
$ g++ -o test sample.cpp -DGCC_3_1 -DEXT_HASH -I/usr/local/include/OGRE -I/home/scar/ogrenew/Samples/Common/include -L/usr/local/lib/OGRE -lOgreMain
notice that the second include path /home/scar/ogrenew... must be your path to the ogrenew dir.
That should compile the sample app. Run it via ./test.
You need gcc 3.x to compile it. I used gcc 3.3.4 and it worked.
6. Known Bugs
6.1: # ./bootstrap doesn't work.
If your bootstrap file doesn't work you should try to get automake 1.9 via
# apt-get install automake1.9
then change to your /usr/bin dir.
Then replace your automake file with the automake1.9 file.
# rm automake; cp automake1.9 automake;
Then go to your ogrenew dir and open the bootstrap file with an editor.
Change the line:
if test -z "`automake --version 2>&1|head -n 1|egrep '1.[6-8]'`"; then
to
if test -z "`automake --version 2>&1|head -n 1|egrep '1.[6-9]'`"; then
It's simply changing the 8 to 9.
This should solve your problem.
6.2 sample app can't find libOgreMain.so.3
If your sample app doesn't find the libOgreMain.so or another lib you should copy the ogre libs from /usr/local/lib/OGRE to /lib
do this by # cp /usr/local/lib/OGRE/* /lib/
please notice that you shouldn't use the -r par.
I hope this could help some people.
Scar