Click to See Complete Forum and Search --> : PLease Help here, I'm Stumped
c_guy
11-07-2000, 12:18 PM
I am having trouble getting qt 2.2.1 to compile on redhat 6.2, keep getting error messages after the make command is executed, it seems to compile everything ok, but at the end i get this...
collect2: ld returned 1 exit status
make[6] *** [/usr/lib/qt/bin/uic] Error 1
make[6] Leaving directory `/usr/lib/qt/tools/designer/uic`
make[5] *** [uic] Error 2
make[5] Leaving directory `/usr/lib/qt/tools...`
make[4] *** [all] Error 2
this keeps going till i get the last line..
make: *** [init] Error 2
after this if i look in my /usr/lib/qt/lib directory, there's nothing there but a bunch of broken links.. what could be the problem?
any help would be greatly appreciated...
THe first line reads like...
ld cannot find lqutil...
then it continues with the errors above,
I have added the directory i'm compiling the source from (/usr/lib/qt) to the /etc/ld.so.conf file and then ran ldconfig.
This didn't make any difference. Same errors, I have defined the path in my .profile directory as instructed to do so in the INSTALL instructions. I can't figure this out, it seems like the source compiles, then it goes to link or something like that, and it cant find the libraries it needs, but the qutils lib, is the one that is supposed to be created by the compilation process, isn't it? I soooo confused, please help...
Thanks in advance...
{c}guy
slambo
11-07-2000, 02:55 PM
Were there any problems when you ran ./configure? Check the config.cache file for any problems and solve those, then re-./configure and re-make.
------------------
Sean Lamb
"A day without laughter is a day wasted." -- Groucho Marx
c_guy
11-07-2000, 04:43 PM
nope, there were no problems with the ./configure, works mint, and the compile seems to work fine as well... after about 1/2 hour of spitting out compile messages, i get this....
---------------------------------------------/usr/bin/ld: cannot find -lGLU
collect2: ld returned 1 exit status
make[2]: Leaving directory `/usr/lib/qt/src'
cd tools; make
make[2]: Entering directory `/usr/lib/qt/tools'
make designer
make[3]: Entering directory `/usr/lib/qt/tools'
if [ -d designer ]; then cd designer ; make; fi
make[4]: Entering directory `/usr/lib/qt/tools/designer'
make util
make[5]: Entering directory `/usr/lib/qt/tools/designer'
if [ -d util ]; then cd util ; make; fi
make[6]: Entering directory `/usr/lib/qt/tools/designer/util'
g++ -c -I/usr/lib/qt/include -pipe -O2 -fPIC -o qprocess.o qprocess.cpp
g++ -c -I/usr/lib/qt/include -pipe -O2 -fPIC -o qprocess_unix.o qprocess_unix.
cpp
/usr/lib/qt/bin/moc qprocess.h -o moc_qprocess.cpp
g++ -c -I/usr/lib/qt/include -pipe -O2 -fPIC -o moc_qprocess.o moc_qprocess.cp
p
g++ -shared -Wl,-soname,libqutil.so.1 -L/usr/lib/qt/lib -Wl,-rpath,/usr/lib/qt/l
ib -o libqutil.so.1.0.0 qprocess.o qprocess_unix.o moc_qprocess.o -lqt && mv
libqutil.so.1.0.0 /usr/lib/qt/lib/; cd /usr/lib/qt/lib/ && rm -f libqutil.so li
bqutil.so.1 libqutil.so.1.0; ln -s libqutil.so.1.0.0 libqutil.so; ln -s libqutil
.so.1.0.0 libqutil.so.1; ln -s libqutil.so.1.0.0 libqutil.so.1.0
/usr/bin/ld: cannot find -lqt
collect2: ld returned 1 exit status
make[6]: Leaving directory `/usr/lib/qt/tools/designer/util'
make[5]: Leaving directory `/usr/lib/qt/tools/designer'
make uic
make[5]: Entering directory `/usr/lib/qt/tools/designer'
if [ -d uic ]; then cd uic ; make; fi
make[6]: Entering directory `/usr/lib/qt/tools/designer/uic'
g++ -c -I/usr/lib/qt/include -pipe -O2 -DUIC -I../shared -I../util -I../../../s
rc/3rdparty/zlib -o uic.o uic.cpp
g++ -c -I/usr/lib/qt/include -pipe -O2 -DUIC -I../shared -I../util -I../../../s
rc/3rdparty/zlib -o ../shared/widgetdatabase.o ../shared/widgetdatabase.cpp
g++ -c -I/usr/lib/qt/include -pipe -O2 -DUIC -I../shared -I../util -I../../../s
rc/3rdparty/zlib -o ../shared/domtool.o ../shared/domtool.cpp
g++ -c -I/usr/lib/qt/include -pipe -O2 -DUIC -I../shared -I../util -I../../../s
rc/3rdparty/zlib -o ../integration/kdevelop/kdewidgets.o ../integration/kdevelop
/kdewidgets.cpp
g++ -L/usr/lib/qt/lib -Wl,-rpath,/usr/lib/qt/lib -o /usr/lib/qt/bin/uic uic.o
../shared/widgetdatabase.o ../shared/domtool.o ../integration/kdevelop/kdewidget
s.o -lqutil -L../lib -lqutil -L../lib -lqt
/usr/bin/ld: cannot find -lqutil
collect2: ld returned 1 exit status
make[6]: *** [/usr/lib/qt/bin/uic] Error 1
make[6]: Leaving directory `/usr/lib/qt/tools/designer/uic'
make[5]: *** [uic] Error 2
make[5]: Leaving directory `/usr/lib/qt/tools/designer'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/usr/lib/qt/tools/designer'
make[3]: *** [designer] Error 2
make[3]: Leaving directory `/usr/lib/qt/tools'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/lib/qt/tools'
make[1]: *** [sub-tools] Error 2
make[1]: Leaving directory `/usr/lib/qt'
make: *** [init] Error 2
and that's it, there are no new lib's present anywhere I can see, I have no Idea where to go from here.. Please can anyone help me with this one?
Thanks in Advance
{c}guy
:strain:
11-07-2000, 05:32 PM
You need the latest version of Mesa installed, once you have Mesa it will have the library it seeks [libGLU]
c_guy
11-07-2000, 06:15 PM
Well the libGLU it's looking for is there right where it should be. In /usr/X11R6/lib and I have the nvidia drivers installed, dont know it that makes a difference, but it doesn't seem like it's finding the wrong file, it seems like it's not finding any files it needs...
Thanks for the help but any other ideas?