LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   qt libiries and headers (https://www.linuxquestions.org/questions/linux-software-2/qt-libiries-and-headers-325075/)

inferno42 05-19-2005 12:25 PM

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?

rylan76 05-19-2005 01:03 PM

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...:)

__J 05-19-2005 03:44 PM

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.


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