Results 1 to 2 of 2

Thread: how does Qt know the library path in LINUX

  1. #1
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default how does Qt know the library path in LINUX

    hi
    i am using RHEL(red hat).i have not mentioned any library path for qt libraries.But even then i dont get errors.i have checked for the environment variable and there is no Qt library path in the LD_LIBRARY_PATH variable.All i do the compile qt programs with qmake( /usr/local/Trolltech/Qt-4.4.2/bin/qmake) and run it.

    How does Qt knows the library path.

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

    Default Re: how does Qt know the library path in LINUX

    It is embedded into the binary using the "rpath" mechanism.

    http://en.wikipedia.org/wiki/Rpath_(linking)

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

    babu198649 (15th November 2008)

Similar Threads

  1. Replies: 7
    Last Post: 22nd December 2010, 08:13
  2. plugin in a library
    By alisami in forum Qt Programming
    Replies: 2
    Last Post: 3rd October 2008, 17:21
  3. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 09:02
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  5. MinGW Windows Library Search Path
    By zztop in forum Qt Programming
    Replies: 4
    Last Post: 26th March 2006, 15:18

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.