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. [solved] dyld: Library not loaded, Reason: image not found

[solved] dyld: Library not loaded, Reason: image not found

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 1 Posters 13.3k 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.
  • H Offline
    H Offline
    Hedge
    wrote on 17 May 2011, 12:42 last edited by
    #1

    Today I am trying to get "kQOAuth":http://gitorious.org/kqoauth/kqoauth to run on OSX. ("Yesterday it was Windows":http://developer.qt.nokia.com/forums/viewthread/5976/)

    I built it and did make install with this output:

    @alis-imac:kqoauth ali$ sudo make install
    Password:
    cd src/ && make -f Makefile install
    rm -f -r "/Users/ali/QtSDK/Desktop/Qt/473/gcc/lib/kqoauth.framework"
    cp -f -R "../lib/kqoauth.framework" "/Users/ali/QtSDK/Desktop/Qt/473/gcc/lib/kqoauth.framework"
    cp -f "../lib/kqoauth.framework/kqoauth.prl" "/Users/ali/QtSDK/Desktop/Qt/473/gcc/lib/kqoauth.framework/kqoauth.prl"
    cp -f /Traktor-Scrobbler/libs/kqoauth/kqoauth.prf /Users/ali/QtSDK/Desktop/Qt/473/gcc//mkspecs/features/
    cd examples/ && make -f Makefile install
    make[1]: Nothing to be done for install'. cd tests/ && make -f Makefile install cd ut_kqoauth/ && make -f Makefile install make[2]: Nothing to be done for install'.
    cd ft_kqoauth/ && make -f Makefile install
    make[2]: Nothing to be done for `install'.
    alis-imac:kqoauth ali$
    @

    kQOAuth resides in the subfolder libs/kQOAuth of my project.

    I added the osx-part of the example's .pro-file to my .pro-file and adjusted the path:

    @macx {
    CONFIG -= app_bundle
    QMAKE_POST_LINK += install_name_tool -change kqoauth.framework/Versions/0/kqoauth
    lib/kqoauth.framework/Versions/0/kqoauth $${TARGET}
    }@

    Everytime I'm trying to run my project I get this error:

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

    What did I specify wrong?

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Hedge
      wrote on 18 May 2011, 17:24 last edited by
      #2

      OK, I removed the two lines mentioned above in the .pro-file and put the library in the application bundle myself.
      It works now.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hedge
        wrote on 21 May 2011, 02:03 last edited by
        #3

        I opened another thread for this problem as it quite changed - "http://developer.qt.nokia.com/forums/viewthread/6147":http://developer.qt.nokia.com/forums/viewthread/6147

        1 Reply Last reply
        0

        1/3

        17 May 2011, 12:42

        • Login

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