LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-18-2004, 12:32 PM   #1
Peterius
Member
 
Registered: May 2004
Distribution: Gentoo, Debian, OpenBSD, NetBSD
Posts: 158

Rep: Reputation: 16
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.
 
  


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
Creating a configure script hylke Programming 4 04-21-2005 01:47 PM
debugging configure script Avatar33 Programming 3 03-23-2005 04:35 PM
Yet another configure script that won't run gauge73 Linux - Newbie 1 02-14-2004 02:25 PM
configure script and dependencies Dark_Helmet Linux - Software 0 07-28-2003 07:14 PM
Configure Script?? Phonics3k Linux - Software 12 06-20-2002 10:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:05 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