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. Can't find library on another Mac
Forum Updated to NodeBB v4.3 + New Features

Can't find library on another Mac

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 4.7k Views 1 Watching
  • 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.
  • H Offline
    H Offline
    Hedge
    wrote on last edited by
    #1

    I want to deploy my application on OSX using dynamically linked libraries inside the app-bundle.
    Therefore I did included and relinked them all by hand (not with macdeployqt).
    The problem is a library I compiled myself.

    When running the program on another Mac I get the error:

    @dyld: Library not loaded: lib/kqoauth.framework/Versions/0/kqoauth
    Referenced from: /macbuild/MyProject
    Reason: image not found@

    Here's what I executed to change the assign the right dependencies for kqoauth:

    @cp -R /Library/Frameworks/kqoauth.framework Frameworks
    install_name_tool -id @executable_path/../Frameworks/kqoauth.framework/Versions/0/kqoauth Frameworks/kqoauth.framework/Versions/0/kqoauth
    #Dependencies of kqOAuth
    install_name_tool -change /Users/ali/QtSDK/Desktop/Qt/473/gcc/lib/QtCore.framework/Versions/Current/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore Frameworks/kqoauth.framework/Versions/0/kqoauth
    install_name_tool -change /Users/ali/QtSDK/Desktop/Qt/473/gcc/lib/QtNetwork.framework/Versions/Current/QtNetwork @executable_path/../Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork Frameworks/kqoauth.framework/Versions/0/kqoauth
    install_name_tool -change /Users/ali/QtSDK/Desktop/Qt/473/gcc/lib/QtGui.framework/Versions/Current/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/4.0/QtGui Frameworks/kqoauth.framework/Versions/0/kqoauth
    @
    And that is the file-structure of my project:
    !http://i.stack.imgur.com/w4oIb.png(a)!

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      It's important to check every lib involved:

      • change libs to use the bundled libs
      • change app exe to use the bundled libs

      Maybe the app exe still thinks kqoauth is somewhere else.

      The scripts I've sent you privately, check all this.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hedge
        wrote on last edited by
        #3

        Thanks a lot Volker.
        I'll check this out once I find the time to.

        After accepting a compromise for my Windows-problem this is the last bug preventing from finally getting my first Qt-tool to the people.

        1 Reply Last reply
        0

        • Login

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