Build: Allow building for OSX from Linux #3885

pull theuni wants to merge 5 commits into bitcoin:master from theuni:osx-deterministic-dmg-linux changing 4 files +42 −11
  1. theuni commented at 9:13 PM on March 16, 2014: member

    These changes are the small bits needed to allow us to build an OSX dmg from Linux, with no OSX environment needed. They should be completely noninvasive to current builds, but some verification would be much appreciated.

    The dependencies are here for now: https://github.com/theuni/osx-cross-depends

    While this may not be immediately useful for 0.9.0, it would be nice to have the final release build-able this way, so that we can compare apples/apples when discussing its use in the future.

  2. in configure.ac:None in 72070c4d84 outdated
     678 | @@ -671,6 +679,7 @@ if test "x$use_tests$build_bitcoind$use_qt" = "xnonono"; then
     679 |  fi
     680 |  
     681 |  AM_CONDITIONAL([TARGET_DARWIN], [test x$TARGET_OS = xdarwin])
     682 | +AM_CONDITIONAL([BUILD_APPLE], [test x$BUILD_OS = xapple])
    


    laanwj commented at 9:15 AM on March 17, 2014:

    Any reason not to use _DARWIN instead of _APPLE? (so we'd have BUILD_DARWIN and TARGET_DARWIN)


    theuni commented at 7:27 PM on March 17, 2014:

    The conditionals match the values we receive for host/build. After a second look, I agree. We should be using build_os rather than build_vendor, in which case we'll match against darwin like the host test.

    I'll push up a fix.

  3. theuni commented at 8:37 PM on March 17, 2014: member

    @laanwj That should do it. I believe I've tested all relevant platforms for regressions, but a +1 would make me feel better.

    If/when you're ready, I'll squash down the recent changes.

  4. laanwj commented at 8:28 AM on March 18, 2014: member

    ACK

  5. BitcoinPullTester commented at 8:10 PM on March 18, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/2d472231f958944f6602cf82b8fe7c0b5f091142 for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  6. laanwj commented at 10:48 AM on March 19, 2014: member

    @theuni this is fine, let's squash it and get it merged

  7. build: allow correct tools to be used for dmg creation.
    These come from the enironment, which will be properly setup by Make with
    the paths gleaned from configure.
    Also don't crash if plugins are static.
    275d6a3115
  8. build: fix qt.conf case-sensitivity in the deployed dmg
    For qt5.2 on osx, the qcocoa plugin is mandatory. However, it fails to load
    when qt.conf specifies the "plugin" path instead of the expected "Plugin". This
    is in line with the documentation:
    https://qt-project.org/doc/qt-5.0/qtdoc/qt-conf.html
    
    I'm not sure how the plugins were loading before, unless the case-sensitivity
    for OSX is new.
    0f21d39ffa
  9. build: if cross-compiling for an apple host, locate some additional tools
    This should be safe to do for native builds too, but for now it's
    specific to cross-builds to avoid possible regressions.
    b62bbb1ff0
  10. build: ensure the correct strip is used for osx/win32 c4a10dbb22
  11. build: hook up "make deploy" for cross osx builds 01e5327cfc
  12. theuni commented at 5:10 PM on March 20, 2014: member

    @laanwj squashed, no changes from the previous revision. Ready for merge.

  13. laanwj referenced this in commit fac6bea8f0 on Mar 20, 2014
  14. laanwj merged this on Mar 20, 2014
  15. laanwj closed this on Mar 20, 2014

  16. theuni deleted the branch on Mar 20, 2014
  17. DrahtBot 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-18 15:15 UTC

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