Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Qwt Execute application
Qt 6.11 is out! See what's new in the release blog

Qwt Execute application

Scheduled Pinned Locked Moved 3rd Party Software
2 Posts 2 Posters 1.5k Views 1 Watching
  • 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 Offline
    B Offline
    Beberd
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved