--- On Wed, 11/9/11, /dev/ammo42 mickeytintincolle@yahoo.fr wrote:
From: /dev/ammo42 mickeytintincolle@yahoo.fr Subject: Re: [trinity-devel] configure: error: Qt (>= Qt 4.3 and < 5.0)... To: trinity-devel@lists.pearsoncomputing.net Date: Wednesday, November 9, 2011, 4:56 PM Le Wed, 9 Nov 2011 23:26:24 +0100, /dev/ammo42 mickeytintincolle@yahoo.fr a écrit :
Le Sat, 5 Nov 2011 07:13:51 +0100, /dev/ammo42 mickeytintincolle@yahoo.fr
a écrit :
Le Sat, 5 Nov 2011 06:16:18 +0100, /dev/ammo42 mickeytintincolle@yahoo.fr
a écrit :
Le Fri, 4 Nov 2011 10:19:07 -0700 (PDT), Darrell Anderson humanreadable@yahoo.com
a écrit :
I'm trying to build the 3.5.13 packages
from the tarballs. I
keep seeing the following error:
checking for Qt... checking for pkg-config... /usr/bin/pkg-config
configure: error: Qt (>= Qt
4.3 and < 5.0) (library QtCore
-lQtGui -lQtNetwork -ltqt-mt)
not found. Please check your
installation!
I looked at the logs, configure, etc.,
but I don't see anything
obvious.
What is the magic trick?
You probably built the Qt4 tqtinterface. My
build script includes
-DWITH_QT3=1 which tells tqtinterface to use
Qt3 instead.
Actually I did just run into the same issue
trying to build
kdegames. According to config.log the autoconf
system is too dumb
to read the tqt include dirs from the tqt.pc
file, whereas the
CMake build system gets it right. And since the
tqt test is
supposed to fail iff the tqtinterface is the Qt4
one, configure
wrongly assumes tqt is tqt4 and searches for
Qt4.
Partial threadjacking: Removing Qt4 didn't solve the build issues as it did
for you (perhaps
tqtinterface should be rebuilt after Qt4 removal ?),
but I managed to
build kdemultimedia with the following commands (still
without Qt4):
$ make -f Makefile.cvs $ sed -i 's#/usr/include/tqt#/opt/kde3/include/tqt#g'
configure
$ ./configure --prefix=/opt/kde3
--with-additional-libs=/opt/kde3/lib
$ make -j5 LDFLAGS="-Wl,--as-needed -lqt-mt -lkdecore
-lkdeui
-lglib-2.0 -lmad -lvorbisfile -lpthread -lDCOP -lkmime
-lgthread
-lvorbis -lkio" (apparently the Makefile forgot the
libs with which
the programs and DSO need a link…). TLDR: autotools == huge mess.
Same thing for kdegames, with $ make -j5 CXXFLAGS="-I/opt/kde3/include/tqt -include tqt.h" LDFLAGS="-lqt-mt -lkdecore" as build command. In addition of the custom commands, the patch I attached was necessary to successfully build kdegames (with the builds commands I used the DEBUG was probably set to NULL, which makes the comparison DEBUG >= 2 not compile).
I haven't had any problems building after I removed QT4 and most KDE4 packages.
I intend to make another full run at building the packages to ensure there are no problems.
I think you are using 13.37 where I am using 13.1. I wonder whether there are subtle differences that cause the errors you see?
I hope to try building in a 13.37 virtual machine.
Darrell