problems compiling kdeartwork/kscreensaver

Nicolas Bock <[email protected]> Tue, 14 Jan 2003 18:50:32 -0500 (EST)
Newsgroups gmane.comp.kde.alpha
Message-ID <Pine.LNX.4.44.0301141412530.9022-100000@bardeen.physics.buffalo.edu>
Hello,

I am trying to compile kde-3.1rc6 using konstruct on an intel redhat 7.3
system.  Almost everything compiles fine except for some screensavers in
kdeartwork. The error message that I get is attached at the end of this
email. The symbols that ld can't find are all in /usr/X11R6/lib/libGLU.a,
so I figured that I could simply add something like -lGLU to the arguments
for g++. I changed the Makefile in

kdeartwork-3.1rc6/kscreensaver/kdesavers/Makefile

by changing this line

GLLIB = -lGLU

by adding the -lGLU directive. Sorry for not using diffs, don't really 
know how that works. Now the screensavers compile ok.

		nick


/bin/sh ../../libtool --silent --mode=link --tag=CXX g++-3.2.1  
-Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W 
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi 
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG 
-DNO_DEBUG -O2 -I/home/nbock/kde3.1-rc6/include -I/usr/X11R6/include 
-L/home/nbock/kde3.1-rc6/lib -L/usr/X11R6/lib -O2 -pipe 
-I/home/nbock/kde3.1-rc6/include -I/usr/X11R6/include 
-L/home/nbock/kde3.1-rc6/lib -L/usr/X11R6/lib -O2 -pipe -fno-exceptions 
-fno-check-new   -L/usr/X11R6/lib -L/home/nbock/kde3.1-rc6/lib  -R 
/home/nbock/kde3.1-rc6/lib -R /usr/X11R6/lib -o kfountain.kss  
kfountain_kss.all_cpp.o  -lkdeui -lkscreensaver -lm
kfountain_kss.all_cpp.o: In function 
`Fountain::Fountain[not-in-charge](QWidget*, char const*)':
kfountain_kss.all_cpp.o(.text+0xeb6): undefined reference to 
`gluNewQuadric'
kfountain_kss.all_cpp.o: In function 
`Fountain::Fountain[in-charge](QWidget*, char const*)':
kfountain_kss.all_cpp.o(.text+0x110e): undefined reference to 
`gluNewQuadric'
kfountain_kss.all_cpp.o: In function `Fountain::~Fountain 
[not-in-charge]()':
kfountain_kss.all_cpp.o(.text+0x1325): undefined reference to 
`gluDeleteQuadric'
kfountain_kss.all_cpp.o: In function `Fountain::~Fountain [in-charge]()':
kfountain_kss.all_cpp.o(.text+0x1375): undefined reference to 
`gluDeleteQuadric'
kfountain_kss.all_cpp.o: In function `Fountain::~Fountain [in-charge 
deleting]()':
kfountain_kss.all_cpp.o(.text+0x13c5): undefined reference to 
`gluDeleteQuadric'
kfountain_kss.all_cpp.o: In function `Fountain::resizeGL(int, int)':
kfountain_kss.all_cpp.o(.text+0x1930): undefined reference to 
`gluPerspective'
collect2: ld returned 1 exit status