Linux and Irrlicht

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
nhar85
Posts: 1
Joined: Mon Jan 22, 2007 10:26 am

Linux and Irrlicht

Post by nhar85 »

how i can set Scite o Kdevelop??
I write the code but when i compile it i take this message

Code: Select all

>g++ -pedantic -Os -c test.cpp -o test.o
test.cpp:1:22: error: irrlicht.h: No such file or directory
test.cpp:41:2: warning: no newline at end of file
test.cpp:2: error: 'irr' is not a namespace-name
...
I must set a local variable for include path, but i don't say where i must specify it..

i can't use eclipse cause i have gentoo.. and the eclipse-cdt ebuild is hard masked. and code::blocks have a bug problem...

bye Rocco

GNU-LINUX Gentoo x86
sgt_pinky
Posts: 149
Joined: Sat Oct 14, 2006 11:20 am
Location: Melbourne, Australia

Post by sgt_pinky »

Have a look at the Makefiles in the examples directory.

To compile an example, type 'make'.

If you want to use an IDE like KDevelop, you have to first understand which libraries to include, and what your include files are!
Intellectuals solve problems - geniuses prevent them. -- Einstein
#irrlicht on irc.freenode.net
Devan
Posts: 4
Joined: Mon Jan 29, 2007 7:29 am
Location: Vancouver, Canada

Post by Devan »

Nhar, I just set up a project in KDevelop myself.

You'll need to let kdevelop know the path to irrlicht's include dir. Do this in the Automake manager by right-clicking on the test.kdevelop project in the upper window and selecting Options, then adding to the "Directories outside project" in the Includes tab. I recommend using a relative path name (ie "-I./include") rather than an absolute one.

Also, you'll need to link in the libIrrlicht.a file. Do that in the options for the application (which is listed in the automake manager's lower window).

First you specify the directory where you're keeping the libIrrlicht.a file and then you link the file (without the lib and .a).

For example, my linker options look like this:
-L../../lib
-lIrrlicht
-lGL
-lGLU

That got me up and running. Let me know if this helps.
netrix
Posts: 3
Joined: Mon Jan 29, 2007 1:22 pm

Post by netrix »

I have a little problem with that, on my Ubuntu I haven't lib like -lGLU.

Can you give me the tip how to get and install it??
netrix
Posts: 3
Joined: Mon Jan 29, 2007 1:22 pm

Post by netrix »

...
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Use any software installation tool supported by ubuntu (apt-get, aptitude, ...) and install the gl-devel packages.
Post Reply