Google

new building tutorial

Problems building or running the engine, queries about how to use features etc.

Moderators: OGRE Team, Moderators

new building tutorial

Postby jAyTeA » Tue May 29, 2007 9:29 pm

Because all the tutorials I found in the forum and the wiki are too old i made this little tutorial of how to compile Ogre 1.4.1 under Ubuntu 7.04 (but i think it should be similar on other linux-systems).
I made this tutorial with review on this page and this forum-post.

1. Dependencies:

build-essential (, cvs)
automake(1.9)
libtool
libcppunit-1.12-0, libcppunit-dev
libzzip-dev
libxt-dev
libxaw7-dev
libxxf86vm-dev
libxrandr-dev
libfreetype6, libfreetype6-dev
libpcre3-dev
libjpeg62-dev
freeglut3-dev

After installing the above dependencies you con build the other Eihort Dependencies:

OIS 1.0
FreeImage 3.9 is strongly suggested (required for VC8 and gcc 4.1+), 3.8 may work on other platforms/compilers
CEGui 0.5.0: http://www.cegui.org.uk/wiki/index.php/ ... oads_0.5.0

Now you will need to install a certain Cg Toolkit from nVidia. You can find it here:
http://developer.nvidia.com/object/cg_toolkit.html

After you tar the file .tar.bz2 file, you'll be left with a /usr directory which you will need to merge with your own. If you don't have Cg Toolkit set up when you ' ./configure', it will tell you so. Note that you can always not download the Cg Toolkit and run './configure --without-cg', but this will break some of the ogre examples and other functions. This is not advised, not have I tried this.


2. Get the Ogre3D package

from here: http://www.ogre3d.org/index.php?option= ... Itemid=132


3. Installing Ogre3D

Browse in the console to your ogrenew-directory. Then type:

aclocal
./bootstrap
./configure
make
sudo make install (or checkinstall)

That should it be! If somethings wrong or missing please tell me! :D
Last edited by jAyTeA on Tue May 29, 2007 11:23 pm, edited 2 times in total.
jAyTeA
Familiar face
 
Posts: 33
Joined: Mon Jan 01, 2007 3:26 pm

Postby jacmoe » Tue May 29, 2007 9:36 pm

I love it! :D

It looks right - I've tried it a couple times lately, but I never had the patience to actually pause and write everything down.
Looks like you did!

I think we can get rid of most of the previous (K)Ubuntu guides.
They're outdated.

Thank you! :)
/* when invited to a free lunch, you should not complain about the quality of the caviar */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, Fueled by Passion.
Ogre AppWizards - Ogre project wizards for VC8, VC9, VC10 and Code::Blocks.
User avatar
jacmoe
OGRE Moderator
OGRE Moderator
 
Posts: 17873
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark

Postby jacmoe » Tue May 29, 2007 10:01 pm

Would you update the wiki, please?

If you don't feel like it, I can do it. :)

This section is a mess:

http://www.ogre3d.org/wiki/index.php/Building_From_Source#Ubuntu_.2F_Kubuntu
/* when invited to a free lunch, you should not complain about the quality of the caviar */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, Fueled by Passion.
Ogre AppWizards - Ogre project wizards for VC8, VC9, VC10 and Code::Blocks.
User avatar
jacmoe
OGRE Moderator
OGRE Moderator
 
Posts: 17873
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark

Postby manowar » Tue May 29, 2007 10:19 pm

This will be really helpful for sure ! However I am a bit concerned about something... I cannot see the packages with opengl headers and libs...gl.h, glut.h...

I always had to install:
libglu1-mesa-dev
mesa-common-dev

Let me know if I am wrong or what is the alternative.

Thanks
User avatar
manowar
Veteran
 
Posts: 419
Joined: Thu Apr 07, 2005 2:11 pm
Location: UK

Postby jacmoe » Tue May 29, 2007 10:21 pm

Maybe freeglut triggers installation of those. :)
/* when invited to a free lunch, you should not complain about the quality of the caviar */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, Fueled by Passion.
Ogre AppWizards - Ogre project wizards for VC8, VC9, VC10 and Code::Blocks.
User avatar
jacmoe
OGRE Moderator
OGRE Moderator
 
Posts: 17873
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark

Postby jAyTeA » Tue May 29, 2007 10:23 pm

Thanks for the replies.

I always had to install:
libglu1-mesa-dev
mesa-common-dev


The glu-headers are all installed with the freeglut3-dev -package as dependencies.

I built it on a completely new Ubuntu-Installation and just installed and noted the packages that ./bootstrap, ./configure and make needed. So it should be complete.

I'm not really familiar with the wiki so can you please do it?[/quote]
jAyTeA
Familiar face
 
Posts: 33
Joined: Mon Jan 01, 2007 3:26 pm

Postby manowar » Tue May 29, 2007 10:58 pm

You are probably right, I guess it depends in which order I installed the different packages...
I noticed too that I do not have libmng-dev installed. I guess, this package install other dependencies (libjpeg for example), but the actual libmng is not required.

Anyway it is a really good start, we can always adjust the list later.
User avatar
manowar
Veteran
 
Posts: 419
Joined: Thu Apr 07, 2005 2:11 pm
Location: UK

Postby jAyTeA » Tue May 29, 2007 11:18 pm

I noticed too that I do not have libmng-dev installed. I guess, this package install other dependencies (libjpeg for example), but the actual libmng is not required.


hmm, configure asked specificaly for the libmng headers, so I thought that they are really needed.

I just removed the libmng-dev-package and made configure again and it works, so it just needs the dependencies. I am going to test the dependencies of libmng and adjust the list.
jAyTeA
Familiar face
 
Posts: 33
Joined: Mon Jan 01, 2007 3:26 pm

Postby Kencho » Tue May 29, 2007 11:20 pm

Thanks, I'm considering an upgrade to 7.04 early this summer and this will come handy. Thanks a lot for taking the patience to write it down :)
Image
User avatar
Kencho
OGRE Moderator
OGRE Moderator
 
Posts: 4534
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain

Postby jAyTeA » Tue May 29, 2007 11:29 pm

I love this engine so im just doing what I can to help you and its good to see you guys think its handy.

I adjusted the list above. The libmng-dev-package seems to not be used, just its dependency, the libjpeg62-dev-package. I hope its right, maybe someone can test it later.
jAyTeA
Familiar face
 
Posts: 33
Joined: Mon Jan 01, 2007 3:26 pm

Postby jAyTeA » Sat Jun 02, 2007 3:41 pm

ok, i have linked this thread in the Wiki-article. I hope this tutorial stays here for a long time :)
jAyTeA
Familiar face
 
Posts: 33
Joined: Mon Jan 01, 2007 3:26 pm

Postby btmorex » Wed Jun 13, 2007 8:42 pm

BTW, Debian unstable has a package called nvidia-cg-toolkit that auto downloads and installs nvidia cg. It works fine in Ubuntu too.
btmorex
Regular
 
Posts: 156
Joined: Thu May 17, 2007 10:56 pm

glx 1.4?

Postby Etienne » Mon Jul 09, 2007 12:43 pm

Hi All

I followed this wonderful walk-through on a pretty fresh install of Ubuntu 7.04 all the way through a clean build, but ran into a problem at runtime...

When running any of the demos, the moment it opens a rendering window there is an error on the console that says something about 'Invalid function call' or something to that effect (sorry, was late last night, and don't have the computer in front of me)...

There are a few references to this from Ogre releases gone by and was a result of a patch that relied on glx1.4, and U7.04 only comes with glx1.2...

Can someone who has done this walkthrough please check to see if their demo apps run? If not, and you do get it working - please could you post the remaining steps to be added to the walkthrough :)

Thanks
Etienne
Etienne
Newcomer
 
Posts: 8
Joined: Tue May 22, 2007 10:08 am

Postby jacmoe » Mon Jul 09, 2007 6:06 pm

That should come with your graphics card driver, AFAIK.
Check what driver you're using.
/* when invited to a free lunch, you should not complain about the quality of the caviar */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, Fueled by Passion.
Ogre AppWizards - Ogre project wizards for VC8, VC9, VC10 and Code::Blocks.
User avatar
jacmoe
OGRE Moderator
OGRE Moderator
 
Posts: 17873
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark

hey

Postby capture » Fri Jul 20, 2007 1:12 am

After you tar the file .tar.bz2 file, you'll be left with a /usr directory which you will need to merge with your own. If you don't have Cg Toolkit set up when you ' ./configure', it will tell you so. Note that you can always not download the Cg Toolkit and run './configure --without-cg', but this will break some of the ogre examples and other functions. This is not advised, not have I tried this.

Sorry i just installed ubuntu and was wondering if some one could tell me how i would merge the downloaded files with the /usr directory? I am using the account i installed with, but i dont have access to the root folders. I am new to linux, so i dont know much what to do about this. I know how to use the terminal if some one can give me the command i need to use :)
capture
Regular
 
Posts: 237
Joined: Sun Nov 20, 2005 2:44 pm

Re: hey

Postby btmorex » Fri Jul 20, 2007 1:57 am

capture wrote:
After you tar the file .tar.bz2 file, you'll be left with a /usr directory which you will need to merge with your own. If you don't have Cg Toolkit set up when you ' ./configure', it will tell you so. Note that you can always not download the Cg Toolkit and run './configure --without-cg', but this will break some of the ogre examples and other functions. This is not advised, not have I tried this.

Sorry i just installed ubuntu and was wondering if some one could tell me how i would merge the downloaded files with the /usr directory? I am using the account i installed with, but i dont have access to the root folders. I am new to linux, so i dont know much what to do about this. I know how to use the terminal if some one can give me the command i need to use :)


The easiest way is to just download and install this (debian package but works fine in ubuntu):

http://http.us.debian.org/debian/pool/c ... 1_i386.deb
btmorex
Regular
 
Posts: 156
Joined: Thu May 17, 2007 10:56 pm

thanks

Postby capture » Fri Jul 20, 2007 2:01 am

Yeah thanks thats what i needed :)
capture
Regular
 
Posts: 237
Joined: Sun Nov 20, 2005 2:44 pm

Postby dr_amr » Sat Aug 11, 2007 11:34 pm

thanks buddy, that's all that I needed !
I love OGRE !
dr_amr
Regular
 
Posts: 65
Joined: Wed Mar 02, 2005 2:22 am

Postby dedesite » Wed Aug 22, 2007 4:52 pm

Hi all,

I'm geeting completly mad!!! :evil:

I've first try to install Ogre with this the old tutorial on the wiki (FromSourceUbuntu which I have now update with your version jAyTeA ;) ), but it hasn't work :

http://www.ogre3d.org/phpBB2/viewtopic. ... 364#244364

And then I've uninstall (properlly) all the lib which waren't in your tutorial and I install which waren't in the other tutorial.
I'v got EXACTLY the same problem after recompiling with apparently only the good package!!!

I don't know where does the problem come from and it really troubles me... :(

Why compiling an app under linux is so complicated??

I'll maybe reinstall (again!!) my system a last time and try to install from scratch with your method, but I don't know if it'll work.

Thanks for helping me, greetings,

Dede

EDIT : My problem is solve!!! :D It was checkinstall which doesn't work... with make install no problem :roll:
dedesite
Regular
 
Posts: 72
Joined: Fri Sep 16, 2005 11:35 pm
Location: Lyon, France

broken link in the wiki ubuntu howto

Postby WaRHaWK » Thu Sep 20, 2007 12:14 am

Hiho

here is a broken link in the howto: http://www.ogre3d.org/wiki/index.php/FromSourceUbuntu
---------
STEP 2 : Build other dependancies

* OIS 1.0 :

http://www.sourceforge.net/projects/wgoisu

change to
http://www.sourceforge.net/projects/wgois
-----------

Best regard
WaRHaWK
WaRHaWK
Newcomer
 
Posts: 6
Joined: Sat Nov 04, 2006 3:28 pm
Location: Germany


Return to Help

Who is online

Users browsing this forum: iWillSpeak, Yahoo [Bot] and 7 guests