You are not logged in.

1

Saturday, July 10th 2004, 9:42am

A courious problem with qt

Hi people.

I am using KDE 3.0.0, Qt 3.2.3 and gcc 3.1.1.

I am trying to compile KDE 3.2.3 from stable source code, and the qt library is not detected. Example:

Debian:/usr/src/KDE-3.2.3/arts-1.2.3# ./configure --prefix=/usr/local/Apps/KDE-3.2.3 --with-qt-dir=/usr/local/qt-3.2.3/ --with-qt-includes=/usr/local/qt-3.2.3/include/ --with-qt-libraries=/usr/local/qt-3.2.3/lib/

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c

( etc, etc, etc)

checking for perl... /usr/bin/perl
checking for Qt... configure: error: Qt (>= Qt 3.2) (library qt-mt) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Make sure that you have compiled Qt with thread support!

And yes, I have qt compiled with thread support, KDE 3.0.0 needs it

In config.log, I found this:

configure:31067: checking for perl
configure:31124: result: /usr/bin/perl
configure:31260: checking for Qt
configure: 31331: /usr/local/qt-3.2.3/include//qstyle.h
taking that
configure:31443: rm -rf SunWS_cache; g++ -o conftest -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_
SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings
-O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -I/usr/local/qt-3.
2.3/include/ -I/usr/X11R6-1.2/include -DQT_THREAD_SUPPORT -D_REENTRANT -L/usr/local/qt-3.2.3/lib/ -L/usr/X1
1R6-1.2/lib conftest.cc -lqt-mt -lpng -lz -lm -ljpeg -ldl -lXext -lX11 -lSM -lICE -lpthread 1>&5
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glDeleteLists@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glXQueryExtension@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glXSwapBuffers@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glCallLists@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glXCreateGLXPixmap@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glReadPixels@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glClearIndex@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glXWaitX@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glRasterPos3d@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glFlush@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glListBase@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glXDestroyGLXPixmap@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glPopAttrib@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glXMakeCurrent@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glMatrixMode@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glViewport@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glXGetClientString@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glClearColor@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glXQueryServerString@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glPushMatrix@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glXQueryExtensionsString@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glRasterPos2i@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glXChooseVisual@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glXCreateContext@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glIndexi@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glPushAttrib@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glDrawBuffer@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glPopMatrix@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glLoadIdentity@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glColor3ub@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glXDestroyContext@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glXIsDirect@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glXGetConfig@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glOrtho@LIBGL'
/usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glXUseXFont@LIBGL'
collect2: ld returned 1 exit status
configure:31446: $? = 1
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qcursor.h>
#include <qstylefactory.h>
#include <private/qucomextra_p.h>
#if ! (QT_VERSION >= 0x030200)
#error 1
#endif

int main() {
(void)QStyleFactory::create(QString::null);
QCursor c(Qt::WhatsThisCursor);
return 0;
}
configure:31486: error: Qt (>= Qt 3.2) (library qt-mt) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Make sure that you have compiled Qt with thread support!

Ideas? :)

MarkoSan

Beginner

Posts: 2

Location: Ljubljana, SI-EU

Occupation: Embedded Systems Engineer I

  • Send private message

2

Saturday, July 10th 2004, 11:02am

I had the same problem, first after installing qt try ldconfig -v. Then, I've disabled XDCMP in kde compliation and it worked fine
there is no home like 127.0.0.1 ;)

3

Saturday, July 10th 2004, 11:40am

Where is it?

Where I can disable XDCMP?

In the configure options of arts I can see it? :?:

4

Saturday, July 10th 2004, 12:17pm

But....

Searching in the net, I found this:

http://www.tldp.org/HOWTO/XDMCP-HOWTO/index.html

I think this is the XDMCP what you say, but, and I say but, I compiled XFree86-4.4.0 from stable source code AND the XDMCP support disabled.

KDE 3.2.3 needs XDMCP enabled? :shock:

5

Saturday, July 10th 2004, 6:51pm

ok... I don't know about xdmcp, but let me make a wild guess: do you use nVIDIA card and do you have their accelerated driver installed?

6

Saturday, July 10th 2004, 9:36pm

Exactly, this:

Bus 1, device 0, function 0:
VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev 161).
IRQ 10.
Master Capable. Latency=248. Min Gnt=5.Max Lat=1.
Non-prefetchable 32 bit memory at 0xf8000000 [0xf8ffffff].
Prefetchable 32 bit memory at 0xf0000000 [0xf7ffffff].

KDE 3.2.3 have any problem with de nvidia video cards? :shock:

7

Saturday, July 10th 2004, 9:38pm

Ups!

Sorry, a lapsus:

I have installed NVIDIA-Linux-x86-1.0-5336-pkg1.run driver under kernel 2.6.7, the driver runs fine :)

8

Saturday, July 10th 2004, 11:38pm

No problem between kde & nVIDIA cards :D There was a problem with one of the files in versions earlier than "NVIDIA-Linux-x86-1.0-5336-pkg1.run".

The situation was the following:
1) GNU libtool (used by kde,qt, etc) check for some specific string - "libtool" - in the commented lines of ".la" files, which was not there in the /usr/lib/libGL.la file installed by nvidia drivers.
2) Configure attempts to compile a test program to check if qt is working fine. Libtool would give error because libGL.la is not conforming to GNU-libtool specification.
3) Since there was a failure in compilation of qt test program, configure will complain about lack of qt-mt or something.

This problem was fixed in nvidia-*-5336-pkg*.run release. You are using that fixed version! so nothing to worry.

If you check your error log, the error messages are related to libGL. Here is one line from your previous post:
"usr/local/qt-3.2.3/lib//libqt-mt.so: undefined reference to `glDeleteLists@LIBGL' "

Quite evident that qt was found in the right place. Problem is something related to "LIBGL" I'm unable to find a reason for that :(

Anybody else?