Docs: Add help file how to compile Bitcoin by one console command #13996

pull 3s3s wants to merge 3 commits into bitcoin:master from 3s3s:master changing 1 files +56 −0
  1. 3s3s commented at 3:28 PM on August 17, 2018: none

    Simpliest way to compile Bitcoin

  2. Merge pull request #2 from bitcoin/master
    merge with bitcoin
    dfdb9b53d5
  3. add help file for compilation in one command b7509e199d
  4. add help file for compilation in one command fa8bd1e54a
  5. fanquake added the label Docs on Aug 17, 2018
  6. in doc/build-onecommand.md:4 in fa8bd1e54a
       0 | @@ -0,0 +1,56 @@
       1 | +### Instruction
       2 | +This console command will build last (0.16.2) version Bitcoin clients for Linux 64 bit, Windows 64 bit and Windows 32 bit. 
       3 | +
       4 | +Has been tested on the clean server with Ubuntu 16 (64 bit 4GB RAM) 
    


    MarcoFalke commented at 3:43 PM on August 17, 2018:

    Note that building on Xenial is no longer supported (on current master)

  7. in doc/build-onecommand.md:7 in fa8bd1e54a
       0 | @@ -0,0 +1,56 @@
       1 | +### Instruction
       2 | +This console command will build last (0.16.2) version Bitcoin clients for Linux 64 bit, Windows 64 bit and Windows 32 bit. 
       3 | +
       4 | +Has been tested on the clean server with Ubuntu 16 (64 bit 4GB RAM) 
       5 | +
       6 | +```bash
       7 | +cd ~ && sudo apt-get update && apt-get upgrade -y && apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev -y && apt-get update -y && add-apt-repository ppa:bitcoin/bitcoin && apt-get update -y && apt-get install libdb4.8-dev libdb4.8++-dev libminiupnpc-dev libzmq3-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev g++-mingw-w64-i686 mingw-w64-i686-dev g++-mingw-w64-x86-64 mingw-w64-x86-64-dev curl -y && update-alternatives --config x86_64-w64-mingw32-g++ &&  wget https://github.com/bitcoin/bitcoin/archive/v0.16.2.tar.gz && tar -xvzf v0.16.2.tar.gz && cd bitcoin-0.16.2/depends && make download && make && cd .. && ./autogen.sh && ./configure --enable-glibc-back-compat --prefix=`pwd`/depends/x86_64-pc-linux-gnu LDFLAGS="-static-libstdc++" && make clean && make && make install && cd depends && make HOST=x86_64-w64-mingw32 -j4 && cd .. && ./configure --prefix=`pwd`/depends/x86_64-w64-mingw32 && make clean && make && make install && cd depends && make HOST=i686-w64-mingw32 -j4 && cd .. && ./configure --prefix=`pwd`/depends/i686-w64-mingw32 && make clean && make && make install
    


    MarcoFalke commented at 3:44 PM on August 17, 2018:

    Note that you shouldn't build and run untrusted input (the tar.gz's)

  8. practicalswift commented at 3:45 PM on August 17, 2018: contributor

    I’m afraid this documentation will get stale quickly as the normal build documentation is updated. Having multiple sources of truth regarding the recommended build process might lead to split brain scenarios and general confusion.

    Also I’m not conviced that building in one long command is something we want to encourage since that will obscure exactly where in the process any build failure occurs which will lead to confused users and bad bug reports.

    Please consider looking at the existing build documentation instead and see if you can make it better.

  9. laanwj commented at 6:39 PM on August 17, 2018: member

    I don't really see a point of adding multiple parallel ways to build, sorry. Maintaining one per platform is enough. The drawback of putting it all in one command is that it 's harder to read, review, and to maintain.

    It could make sense to host this on your own site or blog, but NACK on merging.

    Also I’m not conviced that building in one long command is something we want to encourage since that will obscure exactly where in the process any build failure occurs which will lead to confused users and bad bug reports.

    Exactly.

  10. laanwj closed this on Aug 17, 2018

  11. in doc/build-onecommand.md:2 in fa8bd1e54a
       0 | @@ -0,0 +1,56 @@
       1 | +### Instruction
       2 | +This console command will build last (0.16.2) version Bitcoin clients for Linux 64 bit, Windows 64 bit and Windows 32 bit. 
    


    luke-jr commented at 8:15 AM on August 28, 2018:

    If it's going in the repo, please don't put the version here.

  12. 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-22 18:15 UTC

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