Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Qwt Execute application

    3rd Party Software
    2
    2
    1234
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Beberd last edited by

      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?

      [edit, moved to "3rd Party Software", koahnig]

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Are you sure Qwt is compiled with your Qt 5.0.1 ?

        Also you have a memory leak. You don't destroy plot when your application ends

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post