Qt-interest Archive, May 2008
Need Help Configuring Qt4 Libraries
Message 1 in thread
I created a simple qt4 application, so that I could try to compile
something. Here's the output from make
g++ -Wl,-rpath,/usr/lib/qt/lib -o metric main.o -L/usr/lib/qt/lib -lQtGui
-L/usr/lib/qt/lib -L/usr/X11R6/lib -lpng -lSM -lICE -pthread -pthread -lXi
-lXrender -lXrandr -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm
-pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld:
cannot find -lQtGui
collect2: ld returned 1 exit status
make: *** [metric] Error 1
I checked in /usr/lib/qt/lib for QtGui and see
libQtGui.la*
libQtGui.prl*
libQtGui.so.4@
libQtGui.so.4.4.0*
libQtGui.so.4.4.0.debug*
I tried copying the links into /usr/lib with the following command
find -type l -exec cp {} /usr/lib \;
I tried running ldconfig. What have I done wrong?
Message 2 in thread
Hi,
> I checked in /usr/lib/qt/lib for QtGui and see
> libQtGui.la*
> libQtGui.prl*
> libQtGui.so.4@
> libQtGui.so.4.4.0*
> libQtGui.so.4.4.0.debug*
You're missing libQtGui.so.
I have no experience with Slackware, but you may need to install development
packages.
--
[ signature omitted ]