Results 1 to 10 of 10

Thread: how i can install qwt library on linux?

  1. #1
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default how i can install qwt library on linux?

    hello world,

    i don't understand how i can install this library "Qwt" for linux.

    1°) i have download the ZIP file on this website:
    http://sourceforge.net/projects/qwt/ it's this version: http://sourceforge.net/projects/qwt/...1.zip/download
    2°) i put unzip and i put the folder in /home/firstname/
    3°) i open a linux console i go in the folder: "/home/firstname"
    4°) i do the command "sudo QMAKE" after this, the commande "sudo MAKE", and "sudo MAKE INSTALL"
    5°) after i put in my .pro file this "CONFIG+=qxt"

    i run QMAKE and i compil but i have this error (in french):


    Démarrage de /home/firstname/programmation/myProject...
    /home/firstname/programmation/myProject/programm error while loading shared libraries: libqwt.so.6: cannot open shared object file: No such file or directory
    /home/firstname/programmation/myProject/programm s'est terminé avec le code 127

    in english
    Start / home / firstname / programming / myproject ...
    / home / firstname / programming / myproject / programm error while loading shared libraries: libqwt.so.6: can not open shared object file: No such file or directory
    / home / firstname / programming / myproject / program exited with code 127


    what is this i how i can correct it please to have a library which it works ?

  2. #2
    Join Date
    Sep 2011
    Posts
    9
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    2

    Default Re: how i can install qwt library on linux?

    You wrote:
    CONFIG+=qxt
    It should be:
    Qt Code:
    1. CONFIG+=qwt
    To copy to clipboard, switch view to plain text mode 
    Also, did you setup the library path? You could do this by either using ldconfig, placing symlinks to the qwt lib folder inside a folder listed on LD_LIBRARY_PATH or adding the path to qwt lib folder to the LD_LIBRARY_PATH environment variable. The former can be done with something like this (change the path to the qwt lib folder as required):
    Qt Code:
    1. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/qwt-6.0.1/lib/
    To copy to clipboard, switch view to plain text mode 
    (you could put this inside your .bashrc file).

    There are many threads on this. See:
    http://www.qtcentre.org/threads/1073...cute-examples?

  3. #3
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: how i can install qwt library on linux?

    Or, check to see if your Linux distribution already supplies qwt - most do. If so, you can install it with your package/software manager with a single command or click.

  4. #4
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default Re: how i can install qwt library on linux?

    => merci Bah, i will try thank you

    => sixDegres: i have tested on linux this:

    apt-get install libqwt-dev

    it install the library but i have already the same problem

  5. #5
    Join Date
    May 2011
    Posts
    9
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how i can install qwt library on linux?

    I installed version 5 of qwt from the repositories like this: sudo apt-get install libqwt5-qt4-dev

    Then in the .pro file:

    INCLUDEPATH += /usr/include/qwt-qt4

    LIBS += -l qwt-qt4


    And everything is fine

  6. The following user says thank you to kalgorithmist for this useful post:

    21did21 (19th September 2011)

  7. #6
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default Re: how i can install qwt library on linux?

    thanks a lot!!!

    i will try it as soon as possible

  8. #7
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default Re: how i can install qwt library on linux?

    Quote Originally Posted by kalgorithmist View Post
    I installed version 5 of qwt from the repositories like this: sudo apt-get install libqwt5-qt4-dev
    Then in the .pro file:
    INCLUDEPATH += /usr/include/qwt-qt4
    LIBS += -l qwt-qt4

    And everything is fine
    it looks like nice but i have a new problem. During compilation i have this message:

    "class QwtPoltCurve" has no member named 'setSamples'


    it's strange because when i use windows i haven't this problem

  9. #8
    Join Date
    Sep 2011
    Posts
    9
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    2

    Default Re: how i can install qwt library on linux?

    I gave a quick look on both the docs and the source of qwt 5.x and 6.x and I couldn't find the setSamples method on the QwtPlotCurve class on 5.x, while it was pretty easy to find on 6.x: are you sure this method wasn't introduced on 6.x? Btw, I'm no qwt expert, so I could be missing something.
    Last edited by bah; 18th September 2011 at 21:22.

  10. The following user says thank you to bah for this useful post:

    21did21 (19th September 2011)

  11. #9
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default Re: how i can install qwt library on linux?

    thanks for your help, perhaps, i don't know...
    i will try check this

  12. #10
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Thanks
    18
    Thanked 68 Times in 66 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how i can install qwt library on linux?

    "SetSamples" is new in qwt6. you are mixing qwt versions...

Similar Threads

  1. how to install Qwt and integrate with Qt Linux
    By qtlinuxnewbie in forum Installation and Deployment
    Replies: 0
    Last Post: 2nd February 2010, 08:36
  2. Replies: 4
    Last Post: 1st April 2009, 17:28
  3. Error install at linux red hat
    By Colx007 in forum Installation and Deployment
    Replies: 2
    Last Post: 8th October 2007, 17:47
  4. Unable to install Qt 4.2.1 on LInux Fedora
    By shyam prasad in forum Installation and Deployment
    Replies: 1
    Last Post: 12th January 2007, 15:15
  5. Qt 4.1 install failing on Linux
    By Maxilys in forum Installation and Deployment
    Replies: 11
    Last Post: 14th January 2006, 16:39

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.