PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : QT linkt nicht



braumeister
15-10-2004, 11:02
Hallo,

nachdem ich nach einem Jahr mal wieder in C programmieren muss, musste ich feststellen, dass ich meine QT Umgebung zerschossen habe :-/

Der Linker meckert, dass er keine QT kennt:
$make
g++ -o dfc_decompiler .obj/main.o .obj/decompilerform.o .obj/decompiler.o .obj/moc_decompilerform.o -L/usr/share/qt3/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm -lpthread
.obj/main.o(.text+0x18 ): In function `QShared::ref(void)':
/usr/include/qt3/qshared.h:49: undefined reference to `QApplication::QApplication(int &, char **)'
... usw.

Da die Fehlermeldung nicht ungewöhnlich ist, gibt es ja genug zu lesen im Web... Allerdings hat das alles nichts geholfen, ich finde keine Lösung :-(

Hier mal ein paar Infos:

# cat dfc_decompiler.pro

# File generated by kdevelop's qmake manager.
# -------------------------------------------
# Subdir relative project main directory: .
# Target is an application:
CONFIG += debug \
warn_on \
qt \
thread
SOURCES += main.cpp \
decompilerform.cpp \
decompiler.cpp
HEADERS += decompilerform.h \
decompiler.h
unix{
UI_DIR = .ui
MOC_DIR = .moc
OBJECTS_DIR = .obj
}


/usr/share/qt3/lib# ls -l
insgesamt 0
lrwxrwxrwx 1 root root 25 2004-10-14 17:24 libqt-mt.prl -> ../../../lib/libqt-mt.prl
lrwxrwxrwx 1 root root 30 2004-10-14 17:24 libqt-mt.so -> ../../../lib/libqt-mt.so.3.3.3
lrwxrwxrwx 1 root root 30 2004-10-13 14:24 libqt-mt.so.3 -> ../../../lib/libqt-mt.so.3.3.3
lrwxrwxrwx 1 root root 30 2004-10-13 14:24 libqt-mt.so.3.3 -> ../../../lib/libqt-mt.so.3.3.3
lrwxrwxrwx 1 root root 27 2004-10-14 17:38 libqt.so -> ../../../lib/libqt.so.3.3.3
lrwxrwxrwx 1 root root 27 2004-10-14 17:04 libqt.so.3 -> ../../../lib/libqt.so.3.3.3
lrwxrwxrwx 1 root root 27 2004-10-14 17:04 libqt.so.3.3 -> ../../../lib/libqt.so.3.3.3
lrwxrwxrwx 1 root root 23 2004-10-14 17:24 libqui.prl -> ../../../lib/libqui.prl
lrwxrwxrwx 1 root root 28 2004-10-14 17:24 libqui.so -> ../../../lib/libqui.so.1.0.0
lrwxrwxrwx 1 root root 28 2004-10-13 14:24 libqui.so.1 -> ../../../lib/libqui.so.1.0.0
lrwxrwxrwx 1 root root 28 2004-10-13 14:24 libqui.so.1.0 -> ../../../lib/libqui.so.1.0.0

btw: den Link libqt.so habe ich von Hand angelegt


# cat /etc/ld.so.conf
/usr/X11R6/lib
/usr/share/qt3/lib


Das ganze läuft auf Debian. Hier die installierten Packete:
# apt-show-versions|grep qt3
libqt3c102-mt/testing uptodate 3:3.3.3-4.1
qt3-qtconfig/testing uptodate 3:3.3.3-4.1
libqt3c102/testing uptodate 3:3.3.3-4.1
qt3-assistant/testing uptodate 3:3.3.3-4.1
qt3-dev-tools/testing uptodate 3:3.3.3-4.1
qt3-doc/testing uptodate 3:3.3.3-4.1
libqt3-mt-dev/testing uptodate 3:3.3.3-4.1
libqt3-headers/testing uptodate 3:3.3.3-4.1


# env
QTDIR=/usr/share/qt3
(snip)


Fehlt mir noch irgendein Packet? Oder was habe ich vergessen?
Ich verstehe es einfach nicht ... gut, dass heute Freitag ist !

Schon mal Danke für Eure Hilfe !

Klaus

anda_skoa
15-10-2004, 12:55
Sieht irgendwie alles richtig aus :(

Der Compiler ist wahrscheinlich auch der richtige, also g++ aus testing mit dem auf Qt kompiliert wurde?

Ciao,
_

braumeister
15-10-2004, 13:10
Der Compiler ist wahrscheinlich auch der richtige, also g++ aus testing mit dem auf Qt kompiliert wurde?


Ohoh .... :eek:

# apt-show-versions -a | grep g++
g++ 2:2.95.4-14 install ok installed
g++ 2:2.95.4-14 stable
g++ 4:3.3.4-2 testing
g++ 4:3.3.4-3 unstable
g++/stable uptodate 2:2.95.4-14
g++-2.95 1:2.95.4-11woody1 install ok installed
g++-2.95 1:2.95.4-11woody1 stable
g++-2.95 1:2.95.4-22 testing
g++-2.95 1:2.95.4-22 unstable
g++-2.95/stable uptodate 1:2.95.4-11woody1

# g++ -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)


Das ist es ...
Werde gleich mal ein Update durchführen!

DANKE :)

Klaus