Re: Qwt app compile error
OK it looks like it's got to do with the PRO file. This thread is very handy.
I've followed the suggestions in that thread and I'm still getting the same problem. My PRO file is:
Code:
#include( C:\Qt\qwt-5.2.0\examples\examples.pri )
include( C:\Qt\qwt-5.2.0\qwtconfig.pri )
TARGET = data_plot
HEADERS = \
data_plot.h
SOURCES = \
data_plot.cpp \
main.cpp
LIBS += C:\Qt\qwt-5.2.0\lib\qwt5.dll
INCLUDEPATH += C:\Qt\qwt-5.2.0\src
DEFINES += QWT_DLL
Is there anything obviously wrong with this? (The installation directory for Qwt is C:\Qt\qwt-5.2.0 )
Re: Qwt app compile error
Fixed. Had to first do a clean / rebuild to see the effects of the changes. Then copied examples.pri into my .pro file, and narrowed down the key additional lines to the following:
Code:
QWT_ROOT = c:/Qt/qwt-5.2.0
INCLUDEPATH += $${QWT_ROOT}/src
QWTLIB = qwt$${SUFFIX_STR}
LIBS += -L$${QWT_ROOT}/lib -l$${QWTLIB}
Re: Qwt app compile error
Hi!
I'm recovering this thread because I have exactly the same problem. There's only one difference... i'm using QtCreator 1.3.1 based on Qt 4.6.2
The installation of qwt5.2 has been completed successfully and i've applied the solutions posted here before.
In my .pro file I have added:
Code:
QWT_ROOT = C:\Qt\2010.02.1\qt\Qwt-5.2.1
INCLUDEPATH += $${QWT_ROOT}\include
QWTLIB = qwt5$${SUFFIX_STR}
LIBS += -L$${QWT_ROOT}\lib\qwtd5.dll -l$${QWTLIB}
DEFINES += QWT_DLL
All seems to work perfectly since the program exits unexpectedly returning -1073741515
Could the problem be related with incompatibility between qwt5.2 and qt4.6.2 ? I don't think so but I really don't know.
I would appreciate any suggestions! I'm very stucked right now! Thanks!
I'm using Windows, by the way.
Re: Qwt app compile error
Hi,
I do have the same problem when I try to compile it with the qtcreator...
So tried using the Qt Command Prompt and the pro executed with out any problem...
But in order to open the .exe genrated I copied the qwt5.dll to the debug folder where the exe was generated...
then it worked well
win32 {
INCLUDEPATH += C:/Qt/qwt-5.2.0/src #your path for qwt source code
LIBS += -L C:/Qt/qwt-5.2.0/lib/ -lqwt5 #your path for qwt lib files.
}
after adding it you need to go to qt Command prompt and
enter
qmake ****.pro
mingw32-make
this will do it but you need to put the QtGui4.dll,QtCore4.dll,QtSvg4.dll and qwt5.dll into the debug folder and then open the executable file...