Archiv verlassen und diese Seite im Standarddesign anzeigen : Kompilieren von KSetiSpy
Hallo zusammen
Ich habe probleme mit dem Kompilieren von QT-Applikationen allgemein:
ich habe Debian Unstable im einsatz und diese QT-Packete sind installiert:
ii libqt3-compat- 3.1.1-7 Qt 1.x and 2.x compatibility includes
ii libqt3-headers 3.1.1-7 Qt3 header files
ii libqt3-mt-dev 3.1.1-7 Qt development files (Threaded)
ii libqt3c102 3.1.1-7 Qt Library
ii libqt3c102-mt 3.1.1-7 Qt GUI Library (Threaded runtime version)
Jetzt kommt beim ./configure diese Meldung:
checking for Qt... configure: error: Qt (>= Qt 3.0.2) (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!
Aber libqt3-mt-dev ist ja installiert und im /usr/lib/ habe ich einen Link von libqt3-mt.so nach libqt3-mt.so.3.1.1 sie ist also vorhanden. Ich habe schon versuch mit --wit-qt-libraries=/usr/lib das configure yu machen aber ohne Erfolg
hat jemand aehnliche Probleme
Hi,
die Fehlermeldung kann verschiedenste Ursachen haben.
Poste bitte mal die config.log.
Gruß micha
also hier ist einfach der letzte Teil:
configure:6704: checking for Qt
configure: 6768: /usr/include/qt3//qstyle.h
taking that
configure:6880: rm -rf SunWS_cache; c++ -o conftest -O2 -fno-exceptions -fno-check-new -I/usr/include/qt3/ -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -L/usr/lib/ -L/usr/X11R6/lib conftest.C -lqt-mt -lpng -lz -lm -ljpeg -ldl -lXext -lX11 -lSM -lICE -lresolv -lpthread 1>&5
/tmp/ccm5Dv4h.o(.text+0xb): In function `main':
: undefined reference to `QString::null'
/tmp/ccm5Dv4h.o(.text+0x10): In function `main':
: undefined reference to `QStyleFactory::create(QString const &)'
/tmp/ccm5Dv4h.o(.text+0x1e): In function `main':
: undefined reference to `QCursor::QCursor(int)'
/tmp/ccm5Dv4h.o(.text+0x29): In function `main':
: undefined reference to `QCursor::~QCursor(void)'
/tmp/ccm5Dv4h.o(.QValueListPrivate<QString>::gnu.linkonce.t.(void)+0x21): In function `QValueListPrivate<QString>::QValueListPrivate(void)':
: undefined reference to `QString::shared_null'
/tmp/ccm5Dv4h.o(.QValueListPrivate<QString>::gnu.linkonce.t.(void)+0x2a): In function `QValueListPrivate<QString>::QValueListPrivate(void)':
: undefined reference to `QString::makeSharedNull(void)'
/tmp/ccm5Dv4h.o(.gnu.linkonce.t._._t17QValueListPrivate 1Z7QString+0x27): In function `QValueListPrivate<QString>::~QValueListPrivate(void)':
: undefined reference to `QString::shared_null'
/tmp/ccm5Dv4h.o(.gnu.linkonce.t._._t17QValueListPrivate 1Z7QString+0x32): In function `QValueListPrivate<QString>::~QValueListPrivate(void)':
: undefined reference to `QStringData::deleteSelf(void)'
/tmp/ccm5Dv4h.o(.gnu.linkonce.t._._t17QValueListPrivate 1Z7QString+0x5f): In function `QValueListPrivate<QString>::~QValueListPrivate(void)':
: undefined reference to `QString::shared_null'
/tmp/ccm5Dv4h.o(.gnu.linkonce.t._._t17QValueListPrivate 1Z7QString+0x6a): In function `QValueListPrivate<QString>::~QValueListPrivate(void)':
: undefined reference to `QStringData::deleteSelf(void)'
/tmp/ccm5Dv4h.o(.QValueListPrivate<QString>::gnu.linkonce.t.insert(QValueListIterator<QString>, QString const &)+0x27): In function `QValueListPrivate<QString>::insert(QValueListIterator<QString>, QString const &)':
: undefined reference to `QString::QString(QString const &)'
/tmp/ccm5Dv4h.o(.QValueListPrivate<QString>::gnu.linkonce.t.(QValueListPrivate<QString> const &)+0x21): In function `QValueListPrivate<QString>::QValueListPrivate(QValueListPrivate<QString> const &)':
: undefined reference to `QString::shared_null'
/tmp/ccm5Dv4h.o(.QValueListPrivate<QString>::gnu.linkonce.t.(QValueListPrivate<QString> const &)+0x2a): In function `QValueListPrivate<QString>::QValueListPrivate(QValueListPrivate<QString> const &)':
: undefined reference to `QString::makeSharedNull(void)'
collect2: ld returned 1 exit status
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qcursor.h>
#include <qstylefactory.h>
#include <private/qucomextra_p.h>
#if ! (QT_VERSION >= 302)
#error 1
#endif
int main() {
(void)QStyleFactory::create(QString::null);
QCursor c(Qt::WhatsThisCursor);
return 0;
}
Mhm, der Fehler liegt auf jeden Fall bei Qt, und zwar beim Linken.
Sieht so aus, als ob versucht wird, gegen eine älter Qt-Lib zu linken, da Du libqt3-compat installiert hast und ich bei mir ähnliche Fehlermeldungen bekomme, wenn ich das Programm mit den Headern von qt3 und den Libs von qt2 kompiliere.
Kannst Du vielleicht noch die Ausgabe von "ls -la /usr/lib/libqt*" posten ?
Gruß micha
dein Wunsch sei mir befehl :)
-rw-r--r-- 1 root root 655 Mar 7 22:05 /usr/lib/libqt-mt.prl
lrwxrwxrwx 1 root root 17 Mar 19 21:46 /usr/lib/libqt-mt.so -> libqt-mt.so.3.1.1
lrwxrwxrwx 1 root root 17 Mar 19 21:46 /usr/lib/libqt-mt.so.3 -> libqt-mt.so.3.1.1
lrwxrwxrwx 1 root root 17 Mar 19 21:46 /usr/lib/libqt-mt.so.3.1 -> libqt-mt.so.3.1.1
-rw-r--r-- 1 root root 6003536 Mar 7 22:05 /usr/lib/libqt-mt.so.3.1.1
lrwxrwxrwx 1 root root 14 Mar 19 21:47 /usr/lib/libqt.so.3 -> libqt.so.3.1.1
lrwxrwxrwx 1 root root 14 Mar 19 21:47 /usr/lib/libqt.so.3.1 -> libqt.so.3.1.1
-rw-r--r-- 1 root root 5935824 Mar 7 22:05 /usr/lib/libqt.so.3.1.1
-rw-r--r-- 1 root root 918 Mar 12 01:43 /usr/lib/libqtmcop.la
lrwxrwxrwx 1 root root 18 Mar 19 21:47 /usr/lib/libqtmcop.so -> libqtmcop.so.1.0.0
lrwxrwxrwx 1 root root 18 Mar 19 21:46 /usr/lib/libqtmcop.so.1 -> libqtmcop.so.1.0.0
-rw-r--r-- 1 root root 22752 Mar 12 01:43 /usr/lib/libqtmcop.so.1.0.0
Sieht auch in Ordnung aus, nur wo ist das compat-Paket ?
Und liegt bei Debian die qt3 normalerweise nicht unter /usr/lib/qt3 ?
Sorry, ich bin ehrlich gesagt gerade ein bischen ratlos.
Hier ist noch ein Thread mit ähnlichen Problemen, vielleicht hilft der Dir weiter:
http://www.linuxforen.de/forums/showthread.php?s=&threadid=60827&perpage=40&highlight=libqt&pagenumber=1
Gruß micha
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.