[docs] added depends cross compile info #7747

pull accraze wants to merge 1 commits into bitcoin:master from accraze:depends-build-docs changing 1 files +23 −0
  1. accraze commented at 1:08 AM on March 26, 2016: contributor

    This PR contains additions to doc/build-unix:

    • Added link to depends system readme
    • Added cross compile info

    Resolves #7473

  2. in doc/build-unix.md:None in a8a3f34841 outdated
     262 | +    sudo apt-get install g++-arm-linux-gnueabi
     263 | +
     264 | +To build executables for ARM:
     265 | +
     266 | +    cd depends
     267 | +    make -j10 HOST=arm-unknown-linux-gnueabihf NO_QT=1 # NO_WALLET=1 NO_UPNP=1 ...
    


    btcdrak commented at 3:57 AM on March 26, 2016:

    Not sure I agree with -j10 as a default for documentation. Better leave it out entirely as is the case for existing documentation.


    accraze commented at 4:27 PM on March 26, 2016:

    yeah @btcdrak I can understand that .... do you also think I should get rid of -j10 on line 270 as well?


    btcdrak commented at 4:30 PM on March 26, 2016:

    @accraze Yes. Advanced users will add their own -j settings as appropriate.

  3. in doc/build-unix.md:None in 7c992614b9 outdated
     262 | +    sudo apt-get install g++-arm-linux-gnueabi
     263 | +
     264 | +To build executables for ARM:
     265 | +
     266 | +    cd depends
     267 | +    make HOST=arm-unknown-linux-gnueabihf NO_QT=1 # NO_WALLET=1 NO_UPNP=1 ...
    


    btcdrak commented at 5:00 PM on March 26, 2016:

    Should remove the ...

  4. in doc/build-unix.md:None in 7c992614b9 outdated
     266 | +    cd depends
     267 | +    make HOST=arm-unknown-linux-gnueabihf NO_QT=1 # NO_WALLET=1 NO_UPNP=1 ...
     268 | +    cd ..
     269 | +    ./configure --prefix=$PWD/depends/arm-unknown-linux-gnueabihf  --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++
     270 | +    make
     271 | +    scp src/bitcoind src/bitcoin-cli src/bitcoin-tx src/test/test_bitcoin $TARGET:
    


    btcdrak commented at 5:01 PM on March 26, 2016:

    Not sure why there is an scp line here, seems othogonal.


    accraze commented at 5:07 PM on March 26, 2016:

    you're right, it should be removed :+1:


    MarcoFalke commented at 5:38 PM on March 26, 2016:

    Could remove this and then also squash the commits, please?

  5. accraze force-pushed on Mar 26, 2016
  6. in doc/build-unix.md:None in a29c8b27a4 outdated
     262 | +    sudo apt-get install g++-arm-linux-gnueabi
     263 | +
     264 | +To build executables for ARM:
     265 | +
     266 | +    cd depends
     267 | +    make HOST=arm-unknown-linux-gnueabihf NO_QT=1 # NO_WALLET=1 NO_UPNP=1
    


    btcdrak commented at 6:43 PM on March 26, 2016:

    Please remove the comment # NO_WALLET=1 NO_UPNP=1

  7. accraze force-pushed on Mar 26, 2016
  8. in doc/build-unix.md:None in 306992e355 outdated
     262 | +    sudo apt-get install g++-arm-linux-gnueabi
     263 | +
     264 | +To build executables for ARM:
     265 | +
     266 | +    cd depends
     267 | +    make HOST=arm-unknown-linux-gnueabihf NO_QT=1
    


    btcdrak commented at 6:49 PM on March 26, 2016:

    -unknown appears to be incorrect also.


    accraze commented at 6:50 PM on March 26, 2016:

    yep just realized that.... it should be arm-linux-gnueabihf

  9. accraze force-pushed on Mar 26, 2016
  10. in doc/build-unix.md:None in c711252259 outdated
     257 | +will also work on other Linux distributions, however the commands for
     258 | +installing the toolchain will be different.
     259 | +
     260 | +First install the toolchain:
     261 | +
     262 | +    sudo apt-get install g++-arm-linux-gnueabi
    


    btcdrak commented at 7:02 PM on March 26, 2016:

    I believe this should be g++-arm-linux-gnueabihf

  11. in doc/build-unix.md:None in c711252259 outdated
     264 | +To build executables for ARM:
     265 | +
     266 | +    cd depends
     267 | +    make HOST=arm-linux-gnueabihf NO_QT=1
     268 | +    cd ..
     269 | +    ./configure --prefix=$PWD/depends/arm-unknown-linux-gnueabihf  --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++
    


    btcdrak commented at 7:02 PM on March 26, 2016:

    remove -unknown and the rogue space.

  12. accraze force-pushed on Mar 26, 2016
  13. accraze force-pushed on Mar 26, 2016
  14. in doc/build-unix.md:None in 61e7c9c042 outdated
     264 | +To build executables for ARM:
     265 | +
     266 | +    cd depends
     267 | +    make HOST=arm-linux-gnueabihf NO_QT=1
     268 | +    cd ..
     269 | +    ./configure --prefix=$PWD/depends/ar-linux-gnueabihf --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++
    


    btcdrak commented at 7:49 PM on March 26, 2016:

    typo ar- should be arm-

  15. accraze force-pushed on Mar 26, 2016
  16. btcdrak commented at 8:01 PM on March 26, 2016: contributor

    Tested ACK d82d94c

  17. jonasschnelli added the label Docs and Output on Mar 28, 2016
  18. jonasschnelli commented at 6:48 PM on March 28, 2016: contributor

    ACK d82d94c92dcd047ab465dad02c4727824cf1c730

  19. [doc] added depends cross compile info 3e55b3a004
  20. in doc/build-unix.md:None in d82d94c92d outdated
     255 | +-------------------
     256 | +These steps can be performed on, for example, an Ubuntu VM. The depends system
     257 | +will also work on other Linux distributions, however the commands for
     258 | +installing the toolchain will be different.
     259 | +
     260 | +First install the toolchain:
    


    paveljanik commented at 6:57 AM on March 29, 2016:

    You are installing the ARM specific toolchain before actually telling the reader that you'll be building for ARM.


    petertodd commented at 12:42 PM on March 30, 2016:

    Just change the header of this section to "ARM Cross-compilation"


    accraze commented at 2:28 PM on March 30, 2016:

    :+1: works for me

  21. accraze force-pushed on Mar 30, 2016
  22. laanwj merged this on Mar 31, 2016
  23. laanwj closed this on Mar 31, 2016

  24. laanwj referenced this in commit 209dbeb05f on Mar 31, 2016
  25. btcdrak commented at 11:41 AM on March 31, 2016: contributor

    @laanwj Could this be backported to 0.12 please?

  26. laanwj referenced this in commit 4d035bcc9a on Mar 31, 2016
  27. thokon00 referenced this in commit 6d6a8ae5d8 on Jun 28, 2016
  28. 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-13 18:15 UTC

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