QT linkt nicht

braumeister

braumeister

MS-free since 1997
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
 
SOLVED:

g++ war aus stable und nicht aus testing !

Klaus (jetzt kann das Wochenende kommen) :D
 

Ähnliche Themen

E/A-Fehler (.snapshots is not a btrfs subvolume).

grub-pc Probleme bei upgrade

Creative Labs SoundBlaster Audigy 2 ZS unter Debian / Kernel 3.16

X startet nichtmehr

XEN 4.3 GMP Problem

Zurück
Oben