can't compile

For topics that do not fit in another sub-forum.

Moderator: Oberlus

Post Reply
Message
Author
Asraniel
Space Floater
Posts: 15
Joined: Tue Mar 23, 2004 9:04 am

can't compile

#1 Post by Asraniel »

im here under mandrake 10 and it says that:
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for OpenGl... -lGL
checking for OpenGL's GLU... missing
configure: error: OpenGL's GLU library was not found!

as you can see i have the glu lib installed, what else do i have to install?

Yoghurt
Programmer
Posts: 376
Joined: Sat Jun 28, 2003 8:17 pm
Location: Heidelberg, Germany

#2 Post by Yoghurt »

You have GL, you need GLU, too.

I don't know Mandrake (and neither rpm), but try to look for a "-devel" package that contains GLU

leiavoia
Space Kraken
Posts: 167
Joined: Sun Jul 20, 2003 6:22 pm

#3 Post by leiavoia »

For mandrake, you have to do a hokey little patch for -GLU

It's looking for libMesaGLU.so (i think)

Locate that file (use the install/uninstall RPM feature in the control center and just look at where it places that file. search by file)

Find the directory it is in. Go to it's parent directory and make a symlink to the actual file from the parent directory and run "ldconfig". For whatever reason, it will pick up the link in the parent directory, but not the actual file itself. weird.

Asraniel
Space Floater
Posts: 15
Joined: Tue Mar 23, 2004 9:04 am

#4 Post by Asraniel »

the pakage libMesaGLU1-5.0.2-2mdk is installed, but libmesaglu doesent exist, nowhere..... what should i do?

leiavoia
Space Kraken
Posts: 167
Joined: Sun Jul 20, 2003 6:22 pm

#5 Post by leiavoia »

On Debian, mine is located at

/usr/X11R6/lib/libGLU.so.1.3

Yours may differ. Failing that, you might try

locate libGLU*

So let's pretend i'm using MDK. What i would do is create a link here:

/usr/X11R6/libGLU.so

that points to:

/usr/X11R6/lib/libGLU.so

and that should fix it.

Asraniel
Space Floater
Posts: 15
Joined: Tue Mar 23, 2004 9:04 am

#6 Post by Asraniel »

doesent work, linked like that:
ln /usr/X11R6/lib/libGLU.so /usr/X11R6/libGLU.so

but it keeps telling me the same thing, is there another possibility why it doesent work? compiled binaries somewhere? someone to fix freeorion so that it compiles on mdk?

leiavoia
Space Kraken
Posts: 167
Joined: Sun Jul 20, 2003 6:22 pm

#7 Post by leiavoia »

did you run (as root) "ldconfig" after you made the link? Also, be sure to link all 3 "names" of libGLU so that the system can find any of them it tries to look for.

I know this trick works, i've done it on mandrake before. It took me months to figure out.

Asraniel
Space Floater
Posts: 15
Joined: Tue Mar 23, 2004 9:04 am

#8 Post by Asraniel »

3 names? ok, ill see if i can do that
you could write that somewhere down, im shure im not the only with that problem

edit:
what 3 names are you talking about????

leiavoia
Space Kraken
Posts: 167
Joined: Sun Jul 20, 2003 6:22 pm

#9 Post by leiavoia »

all three of these:

libGLU.so
libGLU.so.1
libGLU.so.1.3

and probably

libGLU.a

as well, just to be sure.

Asraniel
Space Floater
Posts: 15
Joined: Tue Mar 23, 2004 9:04 am

#10 Post by Asraniel »

-rw-r--r-- 2 root root 334948 Mär 6 2003 libglui.a
-rwxr-xr-x 2 root root 808 Dez 8 2003 libGLU.la*
-rwxr-xr-x 5 root root 568548 Dez 8 2003 libGLU.so*
-rwxr-xr-x 5 root root 568548 Dez 8 2003 libGLU.so.1*
-rwxr-xr-x 5 root root 568548 Dez 8 2003 libGLU.so.1.3*
-rwxr-xr-x 5 root root 568548 Dez 8 2003 libGLU.so.1.3.502*

that are all links that i have in my X11R6, there is no libGLU.a and it doesent work.

leiavoia
Space Kraken
Posts: 167
Joined: Sun Jul 20, 2003 6:22 pm

#11 Post by leiavoia »

You could also try linking them to /usr/local/lib

Check your /etc/ld.so.conf file. Make sure you put

/usr/X11R6/lib/
/usr/X11R6/

in there. Those are the dirs that the configration will scan for libs. And of course, run ldconfig again when done.

Asraniel
Space Floater
Posts: 15
Joined: Tue Mar 23, 2004 9:04 am

#12 Post by Asraniel »

ive linked them to /usr/local/lib and that did it

but now i need GiGi, but the sf.net cvs seems dead... well, i hope its up again in a few hours

Post Reply