habe ein Problem mit QWT unter linux. Benutze Gentoo und habe mittels emerge qt bzw. qwt installiert. Das funzt auch soweit, kann im Desinger auch die QWT Sachen benutzen. Allerdings kommt es beim compilieren zum Fehler.
Hier mal die Ausgabe:
Code: Alles auswählen
x86_64-pc-linux-gnu-g++ -o qwt main.o form1.o moc_form1.o -L/usr/qt/3/lib64 -L/usr/X11R6/lib64 -lqt-mt -lXext -lX11 -lm -lqwt
form1.o: In function `Form1::Form1(QWidget*, char const*, bool, unsigned int)':
form1.cpp:(.text+0x324): undefined reference to `QwtPlot::QwtPlot(QWidget*, char const*)'
form1.o: In function `Form1::Form1(QWidget*, char const*, bool, unsigned int)':
form1.cpp:(.text+0x43a): undefined reference to `QwtPlot::QwtPlot(QWidget*, char const*)'
collect2: ld gab 1 als Ende-Status zurück
make: *** [qwt] Fehler 1
Code: Alles auswählen
INCPATH = -I/usr/qt/3/mkspecs/linux-g++ -I. -I. -I$(QTDIR)/include -I/usr/include/qwt-qt3
LINK = x86_64-pc-linux-gnu-g++
LFLAGS =
LIBS = $(SUBLIBS) -L$(QTDIR)/lib64 -L/usr/X11R6/lib64 -lqt-mt -lXext -lX11 -lm -lqwt
Am Quellcode selbst kann es nicht liegen, es handelt sich dabei nur um ein einfaches Widget mit einem Curve-Plot.
Gruß