Hi, I have gentoo linux, and I emerged qwt 5.0.2-r1 without any problem.
But it doesn't work for me.
For this short program:
Code:
#include <QApplication> #include <qwt_plot.h> int main(int argc, char *argv[]) { QwtPlot plot; // ! here i tryed the qwt return app.exec(); }
...I get this reply:
I followed this tutorialQuote:
g++ -c -pipe -O2 -march=pentium-m -fomit-frame-pointer -pipe -march=pentium-m -msse2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/include -I/usr/include -I/include -I. -I. -o hello.o hello.cpp
hello.cpp:3:22: error: qwt_plot.h: No such file or directory
hello.cpp: In function 'int main(int, char**)':
hello.cpp:9: error: 'QwtPlot' was not declared in this scope
hello.cpp:9: error: expected `;' before 'plot'
make: *** [hello.o] Error 1
...that means, i did the following steps:
$ echo "/usr/lib" >> /etc/ld.so/conf
...and than without any IDE, i did next:
# qmake -project
...the .pro file i edited like this:
...thanCode:
TEMPLATE = app TARGET = DEPENDPATH += . # i'm not sure which is correct of following INCLUDEPATH += /usr/include /usr/local/include $(QWT)/include LIBS += -lqwt # Input SOURCES += hello.cpp
# qmake -o makefile hello.pro
...After the make command I get the result which is quoted upper.
...I checked my direcotoryes:
in usr/lib i have the following files
libqwt.so
libqwt.so.5
libqwt.so.5.0
libqwt.so.5.0.2
in usr/local/include i have the qwt5 directory with header files.
My question is: What did i wrong? Yes surelly i'm newbie, that's the reason why i posted it here. Also sorry for my english..