LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-24-2006, 09:28 PM   #1
beanerjo
Member
 
Registered: Aug 2004
Location: New Zealand
Distribution: Slackware
Posts: 40

Rep: Reputation: 15
GLU in Xorg6.9.0 does not work with stellarium


I have Slackware 10.2 installed on my Dell laptop with X upgraded to Xorg6.9.0 (from slackware-current). I upgraded X because the "Intel 915GM" wasn't supported by the old version.

Now I tried compiling stellarium 0.7.1 from source. Configure complained that GLU (which is included in Xorg6.9.0, located in /usr/X11R6/lib) is not installed, and stopped. I installed MesaLib 6.4.2 to /usr/local/lib and the same thing happened.

So I forced ./configure (of stellarium-0.7.1) to skip checking the GLU part, and modified src/Makefile (of stellarium-0.7.1) so -lGLU is included in LIBS.

The compilation was okay but at the final step I got a linking error *even though* -lGLU was there.

The error message was that some glu... functions are not found, which were actually found in the result of "nm /usr/X11R6/lib/libGLU.so".

So I added -L/usr/local/lib (which contains my new libGLU.so from the new MesaLib) before -L/usr/X11R6/lib, and I got everything perfect. This means, I think, that the libGLU in the MesaLib worked but the libGLU in Xorg6.9.0 didn't.

I don't know why /usr/X11R6/lib/libGLU.so (coming with Xorg6.9.0) failed. Perhaps it is related with SDL (which is required for stellarium). Or perhaps because I upgraded some libraries from time to time. (I don't remember which.)

This is the part that failed when /usr/X11R6/lib/libGLU.so was used:
------------- begin -----------
g++ -g -O2 -Wall -I/usr/include/SDL -D_REENTRANT -o stellarium main.o ...OTHER_OBJ_FILES_HERE... -lGL -lGLU -lm -L/usr/local/lib -L/usr/X11R6/lib -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lpng -lz -lSDL_mixer
------------- end -------------

Above, without -L/usr/local/lib it fails; with it it is okay. Again, /usr/local/lib has the new MesaLib library files (which I installed from source) including libGLU.so.

Any idea?

Thanks.
Chirok
 
Old 02-24-2006, 11:27 PM   #2
beanerjo
Member
 
Registered: Aug 2004
Location: New Zealand
Distribution: Slackware
Posts: 40

Original Poster
Rep: Reputation: 15
I have found another thread under "GLU compile problems" in the Slackware forum. So I want to close this one. (But I don't know how to close it.)

Please do not reply to this question.

CH
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GLU compile problems ajk48n Slackware 7 06-25-2007 06:17 AM
glu.h not found Ankardo Linux - Software 2 10-01-2005 05:10 PM
Noob Question: CTRL+C won't work any more (Xorg6.8)? Relativity Linux - Newbie 3 11-22-2004 11:16 AM
HOWTO: fglrx and xorg6.7 -- work around for XV. slackMeUp Slackware 4 11-22-2004 08:28 AM
SGI SI GLU question r350 Programming 0 02-09-2004 08:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration