Compilation qt : problème de linkage ?
Bonsoir,
J'ai actuellement des problèmes pour compiler des programmes KDE :
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!
Pourtant
$ dpkg -l "*qt*" |grep ^ii
ii libqt3 3.1.1+cvs.2002 Qt GUI Library (runtime files)
ii libqt3-dev 3.1.1+cvs.2002 Qt GUI development files
ii libqt3-helper 3.1.1+cvs.2002 Some helper libraries for qt-tools
ii libqt3-mt 3.1.1+cvs.2002 Qt GUI Library (Threaded runtime version)
ii libqt3-mt-dev 3.1.1+cvs.2002 Qt Threaded development files
ii qt3-tools 3.1.1+cvs.2002 Qt GUI Designer and other Qt3 based tools
ii qt6codecs 20021208-1 QuickTime codecs
Et si je regarde le config.log
configure:19324: rm -rf SunWS_cache; g++ -o conftest -O2 -fno-exceptions
-fno-check-new -I/usr/include/qt -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -L/usr/lib
-L/usr/X11R6/lib conftest.cc -lqt-mt -lpng -lz -lm -ljpeg -ldl -lXext -lX11 -lSM -lICE -lresolv -lpthread 1>&5
/tmp/cc1R1Yqv.o(.text+0xe): In function `main':
: undefined reference to `QString::null'
/tmp/cc1R1Yqv.o(.text+0x13): In function `main':
: undefined reference to `QStyleFactory::create(QString const&)'
/tmp/cc1R1Yqv.o(.text+0x20): In function `main':
: undefined reference to `QCursor::QCursor[in-charge](int)'
/tmp/cc1R1Yqv.o(.text+0x28): In function `main':
: undefined reference to `QCursor::~QCursor [in-charge]()'
collect2: ld returned 1 exit status
Il y a donc un problème au niveau du linkage. Quelq'un peut-il m'en dire
plus ? S'agit t'il d'un problème lié àla transition vers gcc 3.2.
Je viens de passer ma soirée à essayer de comprendre le pourquoi du
comment. Avant de me lancer dans lacompilation de Qt j'aimerais savoir si cela peut résoudre mon problème. En
effet ma machine n'est pas trèsvéloce. Compiler Qt me prendrait tout mon dimanche !
--
Fabien Ventro
GNU/Linux Fan
Reply to: