Results 1 to 3 of 3

Thread: .desktop file cannot find qwt library

  1. #1
    Join Date
    Oct 2024
    Posts
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default .desktop file cannot find qwt library

    Ubuntu 22.04
    Qt 5.13.2
    qwt-6.2.0

    The desktop file:

    Qt Code:
    1. [Desktop Entry]
    2. Name=ADSR
    3. Exec=/home/mja/eclipse/teensy_workspace/miller/gui/build-ADSR-Desktop_Qt_5_13_2_GCC_64bit-Release/ADSR
    4. Icon=/home/mja/Desktop/Collection/icons/15 classy media player icons PNGs/128/back.png
    5. Terminal=true
    6. TerminalOptions=\s --noclose
    7. Type=Application
    8. MimeType=x-scheme-handler/eclipse+command;x-scheme-handler/eclipse+mpc;
    To copy to clipboard, switch view to plain text mode 

    When clicking this shortcut on the desktop, I get this error:

    /home/mja/eclipse/teensy_workspace/miller/gui/build-ADSR-Desktop_Qt_5_13_2_GCC_64bit-Release/ADSR: error while loading shared libraries: libqwt.so.6.2: cannot open shared object file: No such file or directory

    Running this file another way works fine : mja@mja:/usr/local/share/applications$ gtk-launch ADSR
    and it works inside Qt-Creator.

    This problem only occurs if qwt is included in the project

    Help welcome!

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,263
    Thanks
    307
    Thanked 868 Times in 855 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: .desktop file cannot find qwt library

    The environments for your desktop, terminal, and Qt Creator are probably different. In your desktop environment, the location of the qwt shared libraries is probably not included on the path that is searched when executables are loaded, while in a terminal or Qt Creator a different path is used which does contain the qwt .so location.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Oct 2024
    Posts
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: .desktop file cannot find qwt library

    Quote Originally Posted by d_stranz View Post
    The environments for your desktop, terminal, and Qt Creator are probably different. In your desktop environment, the location of the qwt shared libraries is probably not included on the path that is searched when executables are loaded, while in a terminal or Qt Creator a different path is used which does contain the qwt .so location.
    This entry in the .pro file cures the problem : QMAKE_RPATHDIR += /usr/local/qwt-6.2.0/lib/

  4. The following user says thank you to Mike_Allsworth for this useful post:

    d_stranz (10th January 2025)

Similar Threads

  1. Library to find orientation from inertial data
    By Andrew23 in forum Qt Programming
    Replies: 1
    Last Post: 9th October 2024, 18:19
  2. MSVC linker can't find library
    By torin in forum Newbie
    Replies: 1
    Last Post: 21st June 2013, 00:37
  3. Replies: 0
    Last Post: 21st May 2011, 22:59
  4. Replies: 4
    Last Post: 18th December 2009, 19:55
  5. How to find out the earliest compatible version of a library?
    By jamadagni in forum General Discussion
    Replies: 2
    Last Post: 29th August 2006, 02:01

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.