Results 1 to 20 of 39

Thread: Qwt-6.0.0-rc1

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2011
    Posts
    8
    Qt products
    Qt4

    Default Re: Qwt-6.0.0-rc1

    Hello,

    I installed qwt library and all the examples are built without problems.
    However when I create a project I can't use Qwt.

    I tried:
    export QMAKEFEATURES = /usr/local/qwt-6.0.0/features
    qmake -set QMAKEFEATURES /usr/local/qwt-6.0.0/features

    The qwt.prf file is in the specified directory.

    But when Im building the project I still get the error:
    /home/mribeiro/Qt_Projects/QwtTest/qwttest: error while loading shared libraries: libqwt.so.6: cannot open shared object file: No such file or directory
    /home/mribeiro/Qt_Projects/QwtTest/qwttest exited with code 127
    The contens of .pro file are:
    Qt Code:
    1. TARGET = qwttest
    2.  
    3. SOURCES += main.cpp \
    4. mainwindow.cpp \
    5. plot.cpp \
    6. curvedata.cpp \
    7. signaldata.cpp
    8. HEADERS += mainwindow.h \
    9. plot.h \
    10. curvedata.h \
    11. signaldata.h
    12.  
    13. CONFIG += qwt
    To copy to clipboard, switch view to plain text mode 

    What am I doing wrong?

    [Im using Ubuntu 10.04]
    Last edited by msr; 25th May 2011 at 01:30.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qwt-6.0.0-rc1

    Quote Originally Posted by msr View Post
    But when Im building the project I still get the error: ...
    No you already have built your application successfully - these are error messages of the loader !

    See LD_LIBRARY_PATH, ldd, ldconfig and friends.

    Uwe

  3. #3
    Join Date
    May 2011
    Posts
    8
    Qt products
    Qt4

    Default Re: Qwt-6.0.0-rc1

    Thanks for your response.

    I tried the following:
    export LD_LIBRARY_PATH=/usr/local/qwt-6.0.0/lib/
    Edit file /etc/ld.so.conf and include "/usr/local/qwt-6.0.0/lib/"
    Run ldconfig
    Run ldconfig -n "/usr/local/qwt-6.0.0/lib"
    None of them worked.

    Any suggestions?

    Im also reading http://tldp.org/HOWTO/Program-Librar...libraries.html and I think Im doing the right thing but it still doesn't work...

    Qt Code:
    1. mribeiro@mribeiro-linux:/usr/local/lib/qwt-6.0.0/lib$ ls
    2. libqwtmathml.so libqwtmathml.so.6.0 libqwt.so libqwt.so.6.0
    3. libqwtmathml.so.6 libqwtmathml.so.6.0.0 libqwt.so.6 libqwt.so.6.0.0
    To copy to clipboard, switch view to plain text mode 

    Edit1:
    Well, I copy-pasted libqwt.so.6 to /usr/lib and now it works. However I wonder how can I configure loader to search libraries in other directories. Any help is greatly appreciated!

    Edit2: Done! For further reference: create a file "*.conf" (f.e., qwt.conf) in "/etc/ld.so.conf.d/" and add path "/usr/local/qwt-6.0.0/lib"
    Last edited by msr; 25th May 2011 at 23:24.

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.