Building QT for X11, Linux.
A problem I have found a solution for and must ventilate:
Undefined reference to `pthread_ ... problem when building QT for Linux from the qt-x11-version.tar sources.
----------snip from, make-------
/usr/local/qt/lib/libqt.so: undefined reference to `pthread_getspecific'
/usr/local/qt/lib/libqt.so: undefined reference to `pthread_key_create'
/usr/local/qt/lib/libqt.so: undefined reference to `pthread_setspecific'
collect2: ld returned 1 exit status
make[3]: *** [../../../bin/uic] Error 1
make[3]: Leaving directory `/usr/local/qt/tools/designer/uic'
make[2]: *** [sub-uic] Error 2
make[2]: Leaving directory `/usr/local/qt/tools/designer'
make[1]: *** [sub-designer] Error 2
make[1]: Leaving directory `/usr/local/qt/tools'
make: *** [sub-tools] Error 2
----------------------------------
This output gives no clue to the solution I finally found to this libqt.so linking problem. I solved it by reconfiguring without openGL - as I found posted at lists.trolltech.com/qt-interest/2001-10/msg00746.html
cd $QTDIR
configure -disable-opengl
make
-< SUCCESS!>-
I cannot believe it was so hard to find a solution for this. The documentation in the sources from Trolltech or their FAQ's doesn't give any info on this(?). What is the explanation? Surely Trolltech should be interested in posting a solution/fixing this. Many have suffered from this!? It pertains to several versions of QT I have tried (QT 2.3.1, 3.3.3).
Comments welcome. This was painful.
Carl Stenquist/ Houston, TX.
|