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
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,313
    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 mariposa View Post
    I checked, and it worked. It compiled at once, and all header files are at the right place. No errors during the compilation of the examples and designer plugin.
    Please one more check: is everything okay, when you build Qwt for debug and release ?

    Qt Code:
    1. CONFIG += debug_and_release
    2. CONFIG += build_all
    To copy to clipboard, switch view to plain text mode 

    I wanted to compile my application using "CONFIG += qwt", but I always got errors about missing headers, so obviously the qwt.prf file was not found by qmake. I checked the link that you posted some time ago (on how to make qmake know where the .prf file is), but setting "QMAKEFEATURES = /usr/local/qwt-6.0.0-svn/features" in my project file did not help.
    This is a environment variable, so do "export QMAKEFEATURES = /usr/local/qwt-6.0.0-svn/features" in the shell ( assuming it is a bash ), where you execute qmake.

    Or if you want to have it permanently you can set it as qmake property: "qmake -set QMAKEFEATURES /usr/local/qwt-6.0.0-svn/features".

    Uwe

  2. #2
    Join Date
    Sep 2010
    Posts
    35
    Thanks
    5
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Qwt-6.0.0-rc1

    Quote Originally Posted by Uwe View Post
    Please one more check: is everything okay, when you build Qwt for debug and release ?
    I checked, everything works fine.

    Quote Originally Posted by Uwe View Post
    This is a environment variable, so do "export QMAKEFEATURES = /usr/local/qwt-6.0.0-svn/features" in the shell ( assuming it is a bash ), where you execute qmake.

    Or if you want to have it permanently you can set it as qmake property: "qmake -set QMAKEFEATURES /usr/local/qwt-6.0.0-svn/features".
    Ah, many thanks, now it works using the "CONFIG += qwt" option

  3. #3
    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.

  4. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,313
    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

  5. #5
    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.