Compilation errors, help please

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
theduck
Posts: 29
Joined: Thu Mar 03, 2005 4:59 am

Compilation errors, help please

Post by theduck »

Hey,

I'm trying to compile the HelloWorld example on Linux. I previously had it working
until I re-installed because I screwed something up. :P

Now when I go to the HelloWorld directory, and execute a make there, I get:

Code: Select all

me@linux:~/Irrlicht/examples/01.HelloWorld> make
g++ main.cpp -o example -I"../../include" -I"/usr/X11R6/include" -L"/usr/X11R6/lib" -L"../../lib/Linux" -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -lGLU
collect2: ld returned 1 exit status
make: *** [all] Error 1
Apparently it can't find -lGLU. I never got this last time, and now I'm getting it (obvisouly) and its making me mad.

I've been using C# lately, and I just came back to C++ after a long time off. What do I do? ;)

Thanks in advance.


[EDIT]: I just did a search, and somehow I don't have lGLU on my system. 0.o Do I recompile it from source or get the .a file from the internet? Then I'll hopefully be on my way.
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

You shouldn't need to download anything.
Make sure you are setting up your linking your libraries properly.
what compiler are you using?
Guest

Post by Guest »

first try to use /usr/lib and /usr/include since /usr/X11R6/bla is obsolete - works for me.

if that does not work, check in /usr/lib if libGLU.so/libGLU.so.1 or something like that exists. when not, install glu with the suse package management. or if that fails get a .rpm file out of the net, you can find them on rpmseek.com for example.

good luck!
theduck
Posts: 29
Joined: Thu Mar 03, 2005 4:59 am

Post by theduck »

Just had to install the mesa-devel rpm, thanks a lot guys :)
Now time to get crackin!

Also what was cool this time, is that I didn't have to re-compile the engine AND
I also get the GL Extensions that didn't work last time! :O Yay! ^-^
Guest

Post by Guest »

are you sure the mesa-stuff isnt too slow? as far as i know (could be wrong) mesa is using software opengl which is _very_ slow.

but i dont really know SuSe and i usually never use rpm packages.
Post Reply