Qt and configure script
I'm trying to compile a beta program. My question has to do with Qt and the configure script. The configure script attempts to a compile a little program to I guess test for Qt >= 3.0.3 with -lqt-mt and it fails with things like
undefined reference to 'QString::null'
undefined reference to `QStyleFactor::create(QString const&)'
yada yada, QCursor, QGList, QPtrCollection
Now I've compiled and recompiled Qt x11 3.3.3, I've had all kinds of problems with this, earlier it seemed fine with this stuff but instead choked on some Xrender and Xinerama functions, I think one was XRenderQueryExtension. I tried using apt-get(this is a debian system), to get latest xlibs since I couldn't find libXinerama on the net anywhere. This creamed my system because I normally compile things from source. It also removed the gcc 3.x I've been using for a while and replaced it with gcc 2.95 or whatever which I already had. Later I read on the net that some of these libraries might not be linking because I need gcc 3.x, so I recompiled that.
Basically, unending problems, as usual, trying to get some silly configure script to run and a program to compile. So I'll limit myself to one current question:
I copied the Qt test program that configure fails on out of the config.log file and have been just trying to get it to compile.
Here's the weird thing: If I remove the "-lqt-mt" and instead compile it using a static qt library /usr/local/qt/lib/libqt-mt.a, it complains about 20 different X functions and then I add -lX11, and -lSM, and -lICE, and -lXext, and -lXrender, and -lXinerama.. and it works.
The only variable here in this problem is shared versus static qt libraries. The symbols it complains aren't there.. are there when I check with nm. So whats the problem? It finds the shared library, it just.. doesn't link it properly.. I've tried every command line linking order also.
|