Results 1 to 2 of 2

Thread: error while loading shared libraries

  1. #1
    Join Date
    Nov 2008
    Posts
    183
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default error while loading shared libraries

    This is an intriguing one. I suspect I'm being punished for an earlier team decision to put all third party libraries under /OPT.

    I can compile link and run inside QtCreator as myself without issue. I need to be able to do a setuid() thought to assign some capabilities. Add two build steps. First sets owner to root:root. Second does chmod -v +s my_program. This part works perfectly.

    dir -l my_program
    -rwsrwsr-x 1 root root 26082113 Feb 13 08:19 my_program

    now it dies instantly in the debugger looking for the qwt shared library. The "system" environment under the run option has the same LD_LIBRARY_PATH as the build environment.

    Is this really using the LD_LIBRARY_PATH from root and not the one provided by the environment?

  2. #2
    Join Date
    Nov 2008
    Posts
    183
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: error while loading shared libraries

    yes, one has to look at the documentation for ldconfig

Similar Threads

  1. Shared libraries in Linux
    By Infinity in forum Newbie
    Replies: 7
    Last Post: 13th November 2012, 17:41
  2. Replies: 4
    Last Post: 5th November 2011, 02:38
  3. Qt linguist and qt shared libraries
    By webquinty in forum Qt Tools
    Replies: 0
    Last Post: 15th July 2010, 10:44
  4. qobject_cast<T> in shared libraries...
    By seim in forum Qt Programming
    Replies: 7
    Last Post: 5th January 2009, 19:23
  5. exception in shared libraries
    By big4mil in forum Qt Programming
    Replies: 2
    Last Post: 5th December 2006, 20:51

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.