Hi,
I try to install qwt on both GNU\Linux and Windows without success: I can't make any projects!
I commit the last snapshot from the subversion repository with the command
svn co https://qwt.svn.sourceforge.net/svnroot/qwt/branches/qwt-5.2
svn co https://qwt.svn.sourceforge.net/svnroot/qwt/branches/qwt-5.2
To copy to clipboard, switch view to plain text mode
Then I edit the qwtconfig.pri: I uncomment the line
#CONFIG += QwtExamples
#CONFIG += QwtExamples
To copy to clipboard, switch view to plain text mode
to enable the compile of examples.
Then:
qmake
make
sudo make install
qmake
make
sudo make install
To copy to clipboard, switch view to plain text mode
I try to run the example but I get this error:
curvdemo2: error while loading shared libraries: libqwt.so.5: cannot open shared object file: No such file or directory
curvdemo2: error while loading shared libraries: libqwt.so.5: cannot open shared object file: No such file or directory
To copy to clipboard, switch view to plain text mode
I also try to compile an example in QtCreator with this line in the project.pro
INCLUDEPATH += /usr/local/qwt-5.2.0-svn/include/
LIBS += /usr/local/qwt-5.2.0-svn/lib/libqwt.so
INCLUDEPATH += /usr/local/qwt-5.2.0-svn/include/
LIBS += /usr/local/qwt-5.2.0-svn/lib/libqwt.so
To copy to clipboard, switch view to plain text mode
but I get the same error.
In Windows I install the qwt with this commands on the Qt Command prompt
qmake
mingw32-make make
mingw32-make install
qmake
mingw32-make make
mingw32-make install
To copy to clipboard, switch view to plain text mode
I can run the example in the Qt Command prompt (Is there a way to run it outside, directly on windows?), but I can't make my project in the QtCreator. I can compile, in it, without errors with this line in the project.pro
INCLUDEPATH += C:\Qwt-5.2.0-svn\include
LIBS += C:\Qwt-5.2.0-svn\lib\qwtd5.dll
INCLUDEPATH += C:\Qwt-5.2.0-svn\include
LIBS += C:\Qwt-5.2.0-svn\lib\qwtd5.dll
To copy to clipboard, switch view to plain text mode
When I run it I get this error on the console
MyPlot.exe exited with code -1073741515
Don't show any windows!
What should I do?
Is there any tutorial to install qwt correctly on both system and use with QtCreator?
Thanks in advance.
Best Regards,
PaceyIV
-------------------------------------------------------------------
I look at QtiPlot source code. Instead of compile and install qwt in my machine I compile it without CONFIG += QwtDll, so I generate a static library.
Now I can compile on Windows as same as on Linux with this line on project.pro
##################### 3rd PARTY HEADER FILES SECTION ########################
#!!! Warning: You must modify these paths according to your computer settings
#############################################################################
unix:INCLUDEPATH += ../qwt-5.2/src
win32:INCLUDEPATH += C:\qwt-5.2\src
##################### 3rd PARTY LIBRARIES SECTION ###########################
#!!! Warning: You must modify these paths according to your computer settings
#############################################################################
##################### Linux (Mac OS X) ######################################
# statically link against libraries in 3rdparty
unix:LIBS += ../qwt-5.2/lib/libqwt.a
# dynamically link against dependencies if they are installed system-wide
#unix:LIBS += -lqwt
##################### Windows ###############################################
win32:LIBS += C:\qwt-5.2\lib\libqwt.a
#win32:LIBS += C:\qwt-5.2\lib\libqwtd.a # for debug
#############################################################################
###################### BASIC PROJECT PROPERTIES #############################
#############################################################################
TARGET = 001-MyPlot
TEMPLATE = app
CONFIG += qt warn_on exceptions #thread
##################### 3rd PARTY HEADER FILES SECTION ########################
#!!! Warning: You must modify these paths according to your computer settings
#############################################################################
unix:INCLUDEPATH += ../qwt-5.2/src
win32:INCLUDEPATH += C:\qwt-5.2\src
##################### 3rd PARTY LIBRARIES SECTION ###########################
#!!! Warning: You must modify these paths according to your computer settings
#############################################################################
##################### Linux (Mac OS X) ######################################
# statically link against libraries in 3rdparty
unix:LIBS += ../qwt-5.2/lib/libqwt.a
# dynamically link against dependencies if they are installed system-wide
#unix:LIBS += -lqwt
##################### Windows ###############################################
win32:LIBS += C:\qwt-5.2\lib\libqwt.a
#win32:LIBS += C:\qwt-5.2\lib\libqwtd.a # for debug
#############################################################################
###################### BASIC PROJECT PROPERTIES #############################
#############################################################################
TARGET = 001-MyPlot
TEMPLATE = app
CONFIG += qt warn_on exceptions #thread
To copy to clipboard, switch view to plain text mode
It works fine but QtCreator can't resolve the header in the editor, so I can't have the advantage of the AutoCompleate features. Where's the bug?
Bookmarks