Results 1 to 7 of 7

Thread: Undefined Reference QwtPlot::QwtPlot(QWidget*)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2009
    Posts
    11
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Undefined Reference QwtPlot::QwtPlot(QWidget*)

    Hi,

    I am using Ubuntu 9.04 with the qt4, qt creator and installed qwt using the synaptic manager. Looked like everything worked fine for me. The Designer has the new plugins.

    Started a new project and added a plot widget to a dialog, but when I am trying to compile it fails because it cannot include #include "qwt_plot.h"

    I know how to add new include paths in visual studio but I have no idea how to do that in QTCreator or does somethin different went wrong ?

    Thanks in advance for your help

    kind regards


    loco

    EDIT:
    Ok this is what I did:

    copying the *.h files in src/ to /usr/local/include/:
    Qt Code:
    1. # cp src/*.h /usr/local/include
    To copy to clipboard, switch view to plain text mode 
    copying those in lib/ to /usr/local/lib/.
    Qt Code:
    1. cd lib && tar -cf l.tar *
    2. #
    3. # mv l.tar /usr/local/lib
    4. # cd /usr/local/lib
    5. # tar xf l.tar
    6. # rm l.tar
    To copy to clipboard, switch view to plain text mode 

    running ldconfig:
    Qt Code:
    1. #ldconfig
    To copy to clipboard, switch view to plain text mode 

    No more include error but another one appears:
    Qt Code:
    1. "undefined reference QwtPlot::QwtPlot(QWidget*)"
    To copy to clipboard, switch view to plain text mode 

    Any suggestions ? Sounds like the libs are missing
    Last edited by 27Loco; 24th April 2009 at 12:08.

Similar Threads

  1. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  2. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  3. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  4. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19
  5. Qt-x11-commercial-src-4.2.0-snapshot-20060824 error
    By DevObject in forum Installation and Deployment
    Replies: 4
    Last Post: 24th August 2006, 23:31

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.