LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-19-2005, 12:25 PM   #1
inferno42
LQ Newbie
 
Registered: May 2005
Posts: 9

Rep: Reputation: 0
qt libiries and headers


been trying to compile some programs from source and i keep getting this

checking for Qt... configure: error: Qt (>= Qt 3.0) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.

i read some places that some times its poeple not configing qt when they install it. My prob is i didn't install it. it was installed during linux mandrivas install. anyone help me out?
 
Old 05-19-2005, 01:03 PM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,506

Rep: Reputation: 100Reputation: 100
Hi

One thing you can try it to do

aclocal
autoconf
automake
configure

in the source root directory of the package you are trying to compile. Sometimes some local peculiarity on a system can make a configure script misbehave. If you rebuild the configure script (this may not work but it is worth a try!) maybe it will find the local QT you have installed, due to using different macros from aclocal/autoconf/automake.

Also, before you try the above, make sure that you have PKG_CONFIG_PATH and LD_LIBRARY_PATH setup correctly in your /home/your_user_name/.bashrc file: (at least, that's were it is on Rh9)

export PKG_CONFIG_PATH=/usr/bin/pkg-config:$PKG_CONFIG_PATH
export PKG_CONFIG_PATH=/opt/gtk-2.6/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=/opt/gtk-2.6/lib:$LD_LIBRARY_PATH

Of course, if you look closely you'll see these are so that configure scripts on my system can find GTK 2.6 - Qt will have different directories, so you need to find what those are put something like the above in your .bashrc with the
Qt directories subsituted where I have GTK.

The configure script then might find your QT libs. (If you are 100% sure you have Qt installed, though! If its not there, there is no way to find it, obviously...
 
Old 05-19-2005, 03:44 PM   #3
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
since you are running an rpm distro, make sure you have both qt packages installed. one is qt-3.x.x-xxx.rpm and has the libs needed to use qt but you cannot compile against it. the other will be qt-3.x.x-devel - that has the headers and other things needed to compile against it ( this applies to all libraries on an rpm distro). the other thing is if qt-xxxx-devel is installed, the following path must point to the root of the qt installation ( for this example we'll assume it's something like /usr/qt3):

Code:
export QTDIR=/usr/qt3
note that if you have the devel package installed, you should not have to set QTDIR, the package installation normally does it for you.
 
  


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
headers stabu Linux - Newbie 3 06-16-2005 04:47 PM
Kernel headers? Kyl3 Fedora 1 02-13-2005 07:07 PM
kernel-headers for 2.6 uday Slackware 2 02-14-2004 10:03 AM
what are headers? mep]-[isto Linux - Newbie 7 12-14-2003 05:26 PM
Gcc/Headers trouby Linux - General 6 10-14-2003 09:47 PM

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

All times are GMT -5. The time now is 05:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration