LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-29-2002, 05:43 PM   #1
fieldsofsalmon
LQ Newbie
 
Registered: Nov 2002
Location: edmonton, alberta (canada)
Distribution: slackware 8.1 with dropline gnome
Posts: 20

Rep: Reputation: 0
QT is a lifelong problem ...


this afternoon i attempted to install some new software. promptly, ./configure fell over and told me --

checking for Qt... configure: error: Qt (>= Qt 2.2.2) (headers and libraries) not found. Please check your installation!

boioioioing!!!! i was quite sure that qt2.2.2 would be installed with my system (it's mandrake 9). but alas. i went looking for the appropriate packages and i must confess i'm not sure what i'm looking for -- i found a qt3 rpm and a libqt3 rpm (i'm not that experienced) and allowed my package manager to install them. it worked.

i went back, deleted config.cache and ran ./configure again. no luck. i removed the qt2 rpms and added the path to the libqt-mt libraries in my /etc/ld.so.conf file. ran ./configure again. no luck.

so how the heck do i properly install QT? someone told me to change QTPATH etc. can anyone clarify/elaborate?

thanks a bunch ... i'm looking forward to being skilled enough to help others!

rob
 
Old 11-29-2002, 05:53 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
presumably you do not have the qt2-devel package installed
 
Old 11-29-2002, 06:04 PM   #3
OAnimal
LQ Newbie
 
Registered: Nov 2002
Posts: 16

Rep: Reputation: 0
Mandrake 9.0 installs Qt-3.something to your system. The problem is that Qt-3.* and Qt-2.* are not binary compatible, so whatever software requires Qt-2.* won't run with Qt-3.*. The solution is the following:
Get qt-x11-2.2.2.tar.gz from ftp.trolltech.com/qt/source and put it into /usr/lib directory. Gunzip it, untar it (it should create some qt-x11-2.2.2 directory, or something like that) and compile it (I think it would be a good idea to compile it as static library, not a shared one). Sorry, I know this takes time, but I recommend not to install Qt-2.2.2 through RPM, since it will complain about Qt-3 already installed. After Qt-2 is compiled, set the QTDIR variable to point to /usr/lib/qt-x11-2.2.2 directory (or whatever was created when untarred) (use export QTDIR=/usr/lib/qt-x11-2.2.2/ ) and try to compile your application again. Don't make QTDIR permanently to point to this directory, otherwise other applications that use Qt-3 won't work. Good luck.
 
Old 11-29-2002, 06:12 PM   #4
fieldsofsalmon
LQ Newbie
 
Registered: Nov 2002
Location: edmonton, alberta (canada)
Distribution: slackware 8.1 with dropline gnome
Posts: 20

Original Poster
Rep: Reputation: 0
thanks guys! i'll give it a shot. br ..
 
Old 12-10-2002, 06:25 AM   #5
gldneagl
LQ Newbie
 
Registered: Dec 2002
Location: Sacramento
Distribution: RedHat, et al
Posts: 6

Rep: Reputation: 0
This was excellent advice from OAnimal, it provided a straight forward solution to an obviously backwards problem (pun not intended).

Gldneagl
Ever Onward and UpWard
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 08:45 PM


All times are GMT -5. The time now is 06:35 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration