Re: problems compiling with Qt

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

 



On Thu, 25 Mar 2004 18:09:13 +0100
Alexander Dalloz <alexander.dalloz@xxxxxxxxxxxxxxxx> wrote:

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

Thanks.  I have added /usr/lib/qt-3.1/lib to /etc/ld.so.conf and run ldconfig. I have put LDFLAGS=-L/usr/lib/qt-3.1/lib and CPPFLAGS=-I/usr/lib/qt-3.1/include in to the build environment and yet it still fails:

	[...]

configure:21754: rm -rf SunWS_cache; g++ -o conftest -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -O2 -g -pipe -march=i686 -fno-exceptions -fno-check-new -I/usr/lib/qt3/include -I/usr/X11R6/include  -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.1/include -D_REENTRANT -L-L/usr/lib/qt-3.1/lib -L/usr/lib/qt3/lib -L/usr/X11R6/lib   conftest.cc  -lqt-mt -lpng -lz -lm -ljpeg -ldl  -lXext -lX11 -lSM -lICE  -lpthread 1>&5

	[...]

configure:21797: 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!

Any other ideas?

-- 

-John (JohnThompson@xxxxxxxxxx)



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

  Powered by Linux