When another MAC OSX Open:Library not loaded: @loader_path/libboost_system-mt.dylib #12126

issue caokun8341 opened this issue on January 9, 2018
  1. caokun8341 commented at 1:16 AM on January 9, 2018: none

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

    <!-- Describe the issue -->

    When make deploy generate Bitcoin-Qt.dmg local machine open and use ok,Then I sent the dmg file to another mac osx machine ,It can open the dmg and install, but can not open the bitcoin-qt.app, it report error: "Bitcoin-Qt" could not be opened because of a problem. Please contact the developer to make sure that "Bitcoin-Qt" works with this macOS version. You may need to reinstall the application. Be sure to install any available updates for this application and macOS. Click on "Report" to see more detailed information and send the report to Apple When click the "Report" button,find the description about the problem: Termination Reason: DYLD, [0x1] Library missing

    Application Specific Information: dyld: launch, loading dependent libraries

    Dyld Error Message: Library not loaded: @loader_path/libboost_system-mt.dylib Referenced from: /Applications/Bitcoin-Qt.app/Contents/Frameworks/libboost_thread-mt.dylib Reason: image not found

    <!--- What behavior did you expect? -->

    I expect the dmg which make by my osx machine can give others mac osx machine to use like my machine.

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    <!--- How reliably can you reproduce the issue, what are the steps to do so? -->

    I can send the dmg to everyone if you give me a email,thanks.

    <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

    The bitcoin version what i used is 0.14.

    <!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->

    My local machine osx 10.13.2/cpu 64bit intel can run ok
    Another can not run osx 10.12.6 /cpu 64bit intel

    <!-- Any extra information that might be useful in the debugging process. -->

    <!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

  2. fanquake added the label MacOSX on Jan 9, 2018
  3. fanquake added the label Build system on Jan 9, 2018
  4. ghost commented at 9:35 PM on January 21, 2018: none

    Encountering the same issue.

  5. jonasschnelli commented at 6:58 PM on January 22, 2018: contributor
    • Can you tell us if you have self compiled that version or if you have installed it via a package-manager like Homebrew?

    • Have you tried the "official" binaries: http://bitcoincore.org/bin/?

    • Do you get the same result with 0.15.1?

  6. ghost commented at 7:14 PM on January 22, 2018: none

    @jonasschnelli It was compiled on Litecoin, this seems to be an issue related to Mac OS X using Clang++ compiler and fucking up the linking to dependencies (read this on another GitHub issue).

  7. jonasschnelli commented at 8:15 PM on January 22, 2018: contributor

    If you want to compile binaries that you can switch from system A to system B, try using the /depends compile system (https://github.com/bitcoin/bitcoin/tree/master/depends) or use the "official" binaries. Closing.

  8. jonasschnelli closed this on Jan 22, 2018

  9. chaiyu2002 commented at 11:49 AM on March 29, 2018: none

    I encountered the same problem. It seemed that something was wrong with boost library. libboost_thread-mt.dylib referenced the libboost_system-mt.dylib, but the path is "@loader_path", and by now the last library did not copied into the Framework folder. I modified the deploy file (which is at contrib/macdeploy/macdeployqtplus) roughly, copy the library into the Framework folder, and change the linkage reference before packing dmg, and it worked fine. " os.system("cp libboost_system-mt.dylib dist/xxx.app/Contents/Frameworks/")
    os.system("install_name_tool -change @loader_path/libboost_system-mt.dylib @executable_path/../Frameworks/libboost_system-mt.dylib dist/xxx.app/Contents/Frameworks/libboost_chrono-mt.dylib")".

  10. JiaTaoXie commented at 7:16 AM on May 7, 2018: none

    @chaiyu2002 Hello,I encountered the same problem,can you show the detail of macdeployqtplus file you changed?Thanks.

  11. brakmic commented at 2:23 PM on July 22, 2018: contributor

    Hi @JiaTaoXie ,

    In our project I changed the macdeployqtplus file this way: https://github.com/Actinium-project/Actinium/commit/a4ef58a2d9a8fac7dd519600506724743f01e54b

    Don't forget to put libboost_system-mt.dylib into contrib/Frameworks folder so it can later be copied into the DMG.

    Regards,

  12. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me