Hi,
I have installed Qwt plugin (6.1.0) and I have Qt 5.0.1.
I try to run a qwt application.
here my .pro file:
include( /usr/local/qwt-6.1.0-svn/features/qwt.prf )
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = Project
TEMPLATE = app
CONFIG += qwt
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
#QWT
unix:!macx: LIBS += -L$$PWD/../../../../../usr/local/qwt-6.1.0-svn/lib/ -lqwt
INCLUDEPATH += $$PWD/../../../../../usr/local/qwt-6.1.0-svn/include
DEPENDPATH += $$PWD/../../../../../usr/local/qwt-6.1.0-svn/include
and here my main.cpp
#include "mainwindow.h"
#include <QApplication>
#include <qwt_plot.h>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QwtPlot* plot = new QwtPlot(0);
return a.exec();
}
It simple and I can’t execute my App.
I have these erros:
*** glibc detected *** /home/: realloc(): invalid pointer: 0x05aa2d1c ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x75ee2)[0x46aee2]
/lib/i386-linux-gnu/libc.so.6(realloc+0x25d)[0x46f56d]
/lib/i386-linux-gnu/libc.so.6(realloc+0x273)[0x46f583]
etc…
Anyone got an idea of the problem?
↧