Momergil
9th November 2011, 19:06
Hello!
I'm trying now to compile in Windows a software I created in Linux that uses Qwt. In Linux, everything that I had to do to use qwt was to download it in the Synaptic and add to the .pro file:
LIBS += -L/usr/local/lib -lqwt-qt4
LIBS += -L/usr/local/lib -lQtSvg
and in the header where I create the Qwt objects:
#include <qwt-qt4/qwt_plot.h>
#include <qwt-qt4/qwt_plot_curve.h>
#include <qwt-qt4/qwt_plot_grid.h>
#include <qwt-qt4/qwt_plot_canvas.h>
Now that I'm in Windows, though, I simply don't know what to do. I searched a lot of guides in the net and none of the worked. I now essentially that I had to compile the qwt having changed the qwtconfig.pri before (as http://johnhforrest.com/2010/09/installing-qwt-on-windows/ indicated) and now I need to add qwt as an external library in the .pro file.
But I simply don't know the code to add; everything I try leads to the same error: the headers are not found. All things I tried:
include(C:\QtSDK\qwt-5.2.2\qwtconfig.pri)
LIBS += -L/C:/QtSDK/qwt-5.2.2/ -lqwt-qt4
LIBS += -LC:\QtSDK\qwt-5.2.2\lib -lqwt5.dll
LIBS += -LC:\QtSDK\qwt-5.2.2 -lQtSvg
INCLUDEPATH += C:\QtSDK\qwt-5.2.2\include
LIBS += C:\QtSDK\qwt-5.2.2\lib\qwt5d.dll
LIBS += -LC:\QtSDK\qwt-5.2.2 -lqwt
Note: not all of them together.
... but none worked. So what need I to do?
One interesting thing that I noticed was the the compile of qwt before adding it to the project did not create any .lib file, and the .dll files sims useless.
Could somebody help, please?
Thanks!
Momergil
I'm trying now to compile in Windows a software I created in Linux that uses Qwt. In Linux, everything that I had to do to use qwt was to download it in the Synaptic and add to the .pro file:
LIBS += -L/usr/local/lib -lqwt-qt4
LIBS += -L/usr/local/lib -lQtSvg
and in the header where I create the Qwt objects:
#include <qwt-qt4/qwt_plot.h>
#include <qwt-qt4/qwt_plot_curve.h>
#include <qwt-qt4/qwt_plot_grid.h>
#include <qwt-qt4/qwt_plot_canvas.h>
Now that I'm in Windows, though, I simply don't know what to do. I searched a lot of guides in the net and none of the worked. I now essentially that I had to compile the qwt having changed the qwtconfig.pri before (as http://johnhforrest.com/2010/09/installing-qwt-on-windows/ indicated) and now I need to add qwt as an external library in the .pro file.
But I simply don't know the code to add; everything I try leads to the same error: the headers are not found. All things I tried:
include(C:\QtSDK\qwt-5.2.2\qwtconfig.pri)
LIBS += -L/C:/QtSDK/qwt-5.2.2/ -lqwt-qt4
LIBS += -LC:\QtSDK\qwt-5.2.2\lib -lqwt5.dll
LIBS += -LC:\QtSDK\qwt-5.2.2 -lQtSvg
INCLUDEPATH += C:\QtSDK\qwt-5.2.2\include
LIBS += C:\QtSDK\qwt-5.2.2\lib\qwt5d.dll
LIBS += -LC:\QtSDK\qwt-5.2.2 -lqwt
Note: not all of them together.
... but none worked. So what need I to do?
One interesting thing that I noticed was the the compile of qwt before adding it to the project did not create any .lib file, and the .dll files sims useless.
Could somebody help, please?
Thanks!
Momergil