Re: problems compiling with Qt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Do, den 25.03.2004 schrieb John Thompson um 17:46:

> For some reason I am unable to compile anything that uses Qt.  It always fails thus:
> 
> 
>   checking for Qt... configure: error: Qt (>= Qt 3.0.3) (library qt-mt)
>   not found. Please check your installation!
>   For more details about this problem, look at the end of config.log.
>   Make sure that you have compiled Qt with thread support!
> 
> Now, libqt-mt *does* exist:
> 
>   [root@starfleet root]# ls /usr/lib/qt3/lib/libqt-mt*
>   /usr/lib/qt3/lib/libqt-mt.so    /usr/lib/qt3/lib/libqt-mt.so.3.1
>   /usr/lib/qt3/lib/libqt-mt.so.0  /usr/lib/qt3/lib/libqt-mt.so.3.1.2
>   /usr/lib/qt3/lib/libqt-mt.so.3
> 
> So what's the problem?

> -John (JohnThompson@xxxxxxxxxx)

This is for sure a FAQ for compilation effords requiring QT libs and
headers.

/usr/lib/qt3/lib is not standard search path. So be sure you point to
this library if things need to be linked against these libs. If I check
my FC1 the directory where the qt3 stuff is installed to is
/usr/lib/qt-3.1/ - not /usr/lib/qt3 - and thus /etc/ld.so.conf contains
an entry /usr/lib/qt-3.1/lib to point to the libraries directory.

So if you compile something which need the QT libs and headers be sure
you point there. The QT libs path should be in ld.so.conf. Besides that
you may also need to pass gcc flags like -L/usr/lib/qt-3.1/lib and
-I/usr/lib/qt-3.1/include.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 1 (Yarrow) on Athlon CPU kernel 2.4.22-1.2174.nptl
Sirendipity 18:01:47 up 6 days, 2:43, load average: 1.33, 1.19, 1.10 
                   [ ÎÎÏÎÎ Ï'ÎÏÏÎÎ - gnothi seauton ]
             my life is a planetarium - and you are the stars

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux