LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-01-2005, 03:52 AM   #1
stenquist
LQ Newbie
 
Registered: Jan 2005
Location: Houston, TX (previously Sweden)
Distribution: Debian Woody 3.0
Posts: 3

Rep: Reputation: 0
Exclamation 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.
 
Old 01-01-2005, 10:57 PM   #2
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
I had a very similar problem on Gentoo PPC trying to build QT. Died in the same spot by the looks of it... Mine was due to having a typographical error in my make.conf and it was killing any large scale C++ compilations. I can't remember the exact error though....
 
Old 01-01-2005, 10:59 PM   #3
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
Sorry, I do remember my problem. It wasn't make.conf, I had PREEMPT enabled and it is still problematic on PPC. That took over a week to figure out
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure problem while building qt-x11-free-3.3.3 (BLFS) jomen Linux - Software 9 12-03-2015 04:50 PM
Core 4 - X11-devel complains about X11-libs which are installed Ephracis Fedora 3 09-05-2005 09:32 AM
My VNC doesn't work on my linux. I don't have X11 on it. ttran Linux - Newbie 1 12-01-2004 03:42 PM
Building User Mode Linux from Linux 2.6.5 / Win4Lin cyent Linux - Software 1 05-05-2004 08:38 PM
Roaming X11/Xfree86, X11 proxy zapp Linux - Software 1 09-12-2003 08:06 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration