Bonjour,
J'ai installer QWT mais j'ai un problème pour l'utiliser.
En effet j'utlise Ubuntu Lucid pour utliser QWT:
- j'ai installé les paquets (libqwt5-qt4-dev, libqwt5-qt4 libqwt5-doc) via aptitude
- j'ai ajouter les lignes suivantes dans le .pro de mon projet
1 2 3
|
INCLUDEPATH += /usr/include/qwt-qt4/
LIBS += -L/usr/local/lib -lqwt |
Quand j'éssaye de compiler le code suivant j'obtiens l'erreur
:-1: error: collect2: ld returned 1 exit status
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| #include <QtGui/QApplication>
#include <qwt-qt4/qwt_plot.h>
#include <qwt-qt4/qwt_plot_curve.h>
#include "widget.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Widget w;
QwtPlot myplot;
myplot.show();
w.show();
return a.exec();
} |
SVP aidé moi à resoudre ce problème ca m'empêche vraiment d'avancer roll
Partager