Results 1 to 3 of 3

Thread: Qwt plot problem on compile

  1. #1
    Join Date
    Apr 2007
    Posts
    117
    Thanks
    84
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Qwt plot problem on compile

    Hello,
    I am trying to use Qwt plot and I have successfully installed it and set the needed directories for LD_LIBRARY_PATH environment variable. When I used QtDesigner, the Qwt widgets are available for use so i tried to place a QwtPlot in my ui.

    This is the error when I try to compile


    release/mainwindow.o: In function `Ui_mainwindow::setupUi(QMainWindow*)':
    mainwindow.cpp.text._ZN13Ui_mainwindow7setupUiEP11QMainWindow[Ui_mainwindow::setupUi(QMainWindow*)]+0x2ed5): undefined reference to `QwtPlot::QwtPlot(QWidget*)'
    mainwindow.cpp.text._ZN13Ui_mainwindow7setupUiEP11QMainWindow[Ui_mainwindow::setupUi(QMainWindow*)]+0x30b4): undefined reference to `QwtPlot::QwtPlot(QWidget*)'
    mainwindow.cpp.text._ZN13Ui_mainwindow7setupUiEP11QMainWindow[Ui_mainwindow::setupUi(QMainWindow*)]+0x327d): undefined reference to `QwtPlot::QwtPlot(QWidget*)'
    release/moc_qwt_plot.o: In function `QwtPlot::qt_metacall(QMetaObject::Call, int, void**)':

    Image Analysis Development Framework Using Qt (IADFUQ)

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Qwt plot problem on compile

    Did you actually link against Qwt? Just like the examples do (see examples.pri).
    J-P Nurmi

  3. #3
    Join Date
    Apr 2007
    Posts
    117
    Thanks
    84
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qwt plot problem on compile

    Quote Originally Posted by jpn View Post
    Did you actually link against Qwt? Just like the examples do (see examples.pri).
    slightly solved this. by repeatedly exporting the lib dir to LD_LIBRARY_PATH. Although sometimes my LD_LIBRARY_PATH Environment variable suddenly disappears in my non-root account in ubuntu
    Image Analysis Development Framework Using Qt (IADFUQ)

Similar Threads

  1. Replies: 4
    Last Post: 10th October 2009, 18:59
  2. My scientific plot problem
    By baray98 in forum Qt Programming
    Replies: 2
    Last Post: 5th August 2007, 16:01
  3. Problem to compile with MinGW + Qt 4 + winpcap
    By jlbrd in forum Qt Programming
    Replies: 4
    Last Post: 4th May 2006, 17:32

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.