Results 1 to 2 of 2

Thread: Problem using QWT shared library

  1. #1
    Join Date
    Nov 2011
    Posts
    17
    Thanks
    1
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Problem using QWT shared library

    Hi,


    I want to use QWT library to display plots. But I´ve a problem to integrate qwt in my application.
    I build the qwt shared library by executing
    Qt Code:
    1. qmake && make
    To copy to clipboard, switch view to plain text mode 
    .
    Afterwards I copied the libs to a subfolder in my project.

    This is a snippet of my pro file:
    Qt Code:
    1. DEPENDPATH += ../libs/lib/shared
    2. INCLUDEPATH += ../libs/include
    3. LIBS += -L../libs/lib/shared -lqwt -lqwtmathml
    To copy to clipboard, switch view to plain text mode 

    and this is a snippet of my source file:

    Qt Code:
    1. int main(int argc, char **args)
    2. {
    3.  
    4. QwtPlot *plot = new QwtPlot;
    5.  
    6. plot->setTitle("Das ist ein Test");
    7. }
    To copy to clipboard, switch view to plain text mode 

    During compiling I get this error:
    Qt Code:
    1. ../GrindingWheelWearSimulationTool/lib/shared/libqwt.so: undefined reference to `QwtPlot::applyProperties(QString const&)'
    2. ../GrindingWheelWearSimulationTool/lib/shared/libqwt.so: undefined reference to `QwtPlot::grabProperties() const'
    3. collect2: ld gab 1 als Ende-Status zurück
    To copy to clipboard, switch view to plain text mode 

    The problem is independant of using the shared or the static library.

    How can I solve this error?

    Thanks
    Micha
    Last edited by klenze; 28th November 2011 at 13:42.

  2. #2
    Join Date
    Nov 2011
    Posts
    17
    Thanks
    1
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Problem using QWT shared library

    Ok, I found a solution.

    After adding the library path to LD_LIBRARY_PATH, it works.

Similar Threads

  1. qt 4.6.2 shared library using debug problem
    By soniaerm in forum Qt Programming
    Replies: 1
    Last Post: 11th April 2010, 18:31
  2. Application with shared library problem in linux
    By cutie.monkey in forum Qt Programming
    Replies: 1
    Last Post: 18th January 2010, 07:20
  3. Problem with NCReport : can't link shared library !
    By QAmazigh in forum Qt Programming
    Replies: 4
    Last Post: 5th June 2009, 23:38
  4. so shared library problem
    By mtrpoland in forum Newbie
    Replies: 3
    Last Post: 13th August 2007, 21:51
  5. shared library problem
    By nhatkhang in forum KDE Forum
    Replies: 9
    Last Post: 28th November 2006, 04:07

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.