trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: July 2012

Having fits with "configure: error: Qt (>= Qt 3.3 and < 4.0) (library tqt-mt) not found"

From: "David C. Rankin" <drankinatty@...>
Date: Sat, 28 Jul 2012 22:48:38 -0500
Slavek, Darrell,

  I am having fits with a handful of packages in 3.5.13 with the configure error:

configure: error: Qt (>= Qt 3.3 and < 4.0) (library tqt-mt) not found

  Of course it isn't found, the file is qt-mt (/opt/qt3/lib/libqt-mt.so). The
configure.log discloses the actual error:

configure: 22827: /opt/qt3/include/qstyle.h
taking that
configure:23062: rm -rf SunWS_cache; g++ -o conftest -Wno-long-long -Wundef
-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W
-Wpointer-arith -fno-builtin -g3 -fno-inline -march=i686 -mtune=generic -O2
-pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
-Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor
-fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt -I/opt/qt3/include
-I.  -DQT_THREAD_SUPPORT  -D_REENTRANT
-Wl,-O1,--sort-common,--as-needed,-z,relro -L/opt/qt3/lib      conftest.cpp
-ltqt-mt -lpng -lz -lm -ljpeg -ldl  -lXext -lX11 -lSM -lICE  -lpthread 1>&5
/usr/bin/ld: cannot find -ltqt-mt

  The problem is that nowhere in the code that I can find is there anything that
would generate -ltqt-mt instead of -lqt-mt?? Meaning -- All of the pkgconfig
files are correct. The pkgconfig files at issue are:

  /opt/qt3/lib/pkgconfig/qt-mt.pc
  /usr/lib/pkgconfig/tqt.pc

BOTH CORRECTLY list -lqt-mt and NOT -ltqt-mt...

cat /opt/qt3/lib/pkgconfig/qt-mt.pc
prefix=/opt/qt3
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
qt_config=qt warn_on release incremental link_prl thread nocrosscompiler
dlopen_opengl minimal-config small-config medium-config large-config full-config
styles tools kernel widgets dialogs iconview workspace inputmethod network
canvas table xml opengl sql release dll thread largefile stl system-mng
system-jpeg system-png gif system-zlib nis cups bigcodecs x11sm xshape xinerama
xcursor xrandr xrender xftfreetype xkb inputmethod dylib create_prl link_prl qt
warn_on depend_includepath qmake_cache x11 x11inc create_libtool create_pc moc
x11lib

Name: Qt
Description: Libqt-mt.so.3.3.8 Library
Version: 3.3.8
Libs: -L${libdir} -lqt-mt -L/usr/lib/mysql -L/usr/X11R6/lib -lpq -lmysqlclient
-lz -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext
-lX11 -lm -lSM -lICE -ldl -lpthread
Cflags: -DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I${includedir}

 cat /usr/lib/pkgconfig/tqt.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include/tqt

tmoc_executable=/usr/bin/tmoc
moc_executable=/opt/qt3/bin/moc
uic_executable=/opt/qt3/bin/uic

Name: TQt
Description: Interface and abstraction library for Qt and Trinity
Version: 3.5.13
Libs: -L${libdir} -ltqt -L/opt/qt3/lib  -lqt-mt
Cflags: -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -I/opt/qt3/include
-I${includedir} -include tqt.h

  So my question is "How in the heck can the build generate a config that looks
for -ltqt-mt when the only thing the pkgconfig files point to is -lqt-mt?"

-- 
David C. Rankin, J.D.,P.E.