Results 1 to 18 of 18

Thread: LD_LIBRARY_PATH and QT

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,371
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: LD_LIBRARY_PATH and QT

    It's enough to run your app like this:

    bash Code:
    1. $ LD_LIBRARY_PATH=lib ./DT
    To copy to clipboard, switch view to plain text mode 

    ldd won't show DT depend on your local lib directory because your changes to LD_LIBRARY_PATH are not propagated outside the sh script so ldd doesn't see them.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. The following user says thank you to wysota for this useful post:

    splinterz (4th January 2013)

  3. #2
    Join Date
    Jun 2012
    Posts
    19
    Thanks
    3

    Default Re: LD_LIBRARY_PATH and QT

    that's the first thing i tried but unfortunately that wasn't enough. the QMAKE flags were necessary. in fact ldd does show that it's looking in the local directory for any libraries placed in the /lib folder now.

  4. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,371
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: LD_LIBRARY_PATH and QT

    I used LD_LIBRARY_PATH many times and I assure you it works. Maybe your lib folder doesn't have the proper symlinks (e.g. libQtCore.so -> libQtCore.so.4.8.1)
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. LD_LIBRARY_PATH problem
    By sincnarf in forum General Programming
    Replies: 3
    Last Post: 29th August 2020, 18:58
  2. Setting LD_LIBRARY_PATH from Qt Creator
    By spud in forum Qt Programming
    Replies: 4
    Last Post: 3rd November 2011, 03:43
  3. Mysql LD_LIBRARY_PATH Issue
    By Think_Positive in forum Installation and Deployment
    Replies: 3
    Last Post: 13th February 2007, 19:16

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.