Results 1 to 4 of 4

Thread: No such file or directory...?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2013
    Location
    Prague
    Posts
    258
    Thanks
    3
    Thanked 65 Times in 59 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default No such file or directory...?

    Because of bugs, I was forced to download, fix and compile a shared library. Trying to run an application from the Creator, I am now getting an error:
    Qt Code:
    1. /home/radek/Desktop/C++/project/repdf-debug/repdf-qt: error while loading shared libraries: libpodofo.so.0.9.1: cannot open shared object file: No such file or directory
    To copy to clipboard, switch view to plain text mode 
    But the library exists for sure. In /home/radek/podofo/lib are sitting libpodofo.so (a link) and libpodofo.so.0.9.1 side by side. My *.pro file now contains:
    Qt Code:
    1. LIBS += /home/radek/podofo/lib/libpodofo.so
    To copy to clipboard, switch view to plain text mode 
    I have checked (using Krusader) that there are no hidden blanks around the name, that the link is a valid link, that the library looks like a shared library, that the access rights both of the link and the library are the same as usual access rights from /usr/lib and that I am the owner both of the link and of the library. I also tried to reference the library directly:
    Qt Code:
    1. LIBS += /home/radek/podofo/lib/libpodofo.so.0.9.1
    To copy to clipboard, switch view to plain text mode 
    Nothing helps. No such file or directory. What is happening?

    -----------------------------------

    Never mind, problem solved. It's a matter of libpath, the directory specified in LIBS seems to be irrelevant at runtime. So I created "mylib" folder in /home/radek, a /etc/ld.so.d/mine.conf file containing /home/radek/mylib, copied libpodofo.so files there, updated the profile file. It works now.
    Last edited by Radek; 2nd January 2014 at 18:39.

Similar Threads

  1. Replies: 2
    Last Post: 25th July 2013, 06:17
  2. Replies: 1
    Last Post: 23rd May 2011, 04:53
  3. Replies: 1
    Last Post: 8th November 2010, 03:24
  4. Replies: 4
    Last Post: 9th May 2010, 16:18
  5. Replies: 2
    Last Post: 9th March 2010, 05:21

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.