Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Shared lib is not loaded although rpath is set properly
Forum Updated to NodeBB v4.3 + New Features

Shared lib is not loaded although rpath is set properly

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 1 Posters 393 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JoeCFDJ Offline
    JoeCFDJ Offline
    JoeCFD
    wrote on last edited by JoeCFD
    #1

    There are two shared libs in the lib path which is set with rpath in cmake. One is OK and another one is missing when I check my app with
    ldd myapp

    What could be the cause?

    One possible reason is that this lib uses other libs which have to be set with rpath as well.
    When I check all libs it links to, they are all in the system lib path.

    If the path is set with LD_LIBRARY_PATH, myapp runs fine.

    1 Reply Last reply
    1
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      Two versions of this lib are in the machine. Therefore, there are conflicts. Removing one solves the problem.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved