Skip to content

Commit 0000009

Browse files
author
MarcoFalke
committed
doc: Split depends installation instructions per arch
1 parent 24f095d commit 0000009

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

depends/README.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,42 @@ Common `host-platform-triplets` for cross compilation are:
3030

3131
No other options are needed, the paths are automatically configured.
3232

33-
Install the required dependencies: Ubuntu & Debian
34-
--------------------------------------------------
33+
### Install the required dependencies: Ubuntu & Debian
3534

36-
For macOS cross compilation:
35+
First, install the common dependencies:
3736

38-
sudo apt-get install curl librsvg2-bin libtiff-tools bsdmainutils cmake imagemagick libcap-dev libz-dev libbz2-dev python-setuptools
37+
sudo apt-get install autoconf automake cmake bsdmainutils ca-certificates curl faketime g++ libtool pkg-config
3938

40-
For Win32/Win64 cross compilation:
39+
#### For macOS cross compilation:
40+
41+
sudo apt-get install librsvg2-bin libtiff-tools imagemagick libcap-dev libz-dev libbz2-dev python-setuptools
42+
43+
#### For Win32/Win64 cross compilation:
4144

4245
- see [build-windows.md](../doc/build-windows.md#cross-compilation-for-ubuntu-and-windows-subsystem-for-linux)
4346

44-
For linux (including i386, ARM) cross compilation:
47+
#### For linux (including i386, ARM) cross compilation:
48+
49+
Common linux dependencies:
50+
51+
sudo apt-get install g++-multilib binutils-gold bsdmainutils
52+
53+
For linux ARM cross compilation:
54+
55+
sudo apt-get install g++-aarch64-linux-gnu binutils-aarch64-linux-gnu
4556

46-
sudo apt-get install curl g++-aarch64-linux-gnu g++-4.8-aarch64-linux-gnu gcc-4.8-aarch64-linux-gnu binutils-aarch64-linux-gnu g++-arm-linux-gnueabihf g++-4.8-arm-linux-gnueabihf gcc-4.8-arm-linux-gnueabihf binutils-arm-linux-gnueabihf g++-4.8-multilib gcc-4.8-multilib binutils-gold bsdmainutils
57+
For linux AARCH64 cross compilation:
4758

59+
sudo apt-get install g++-arm-linux-gnueabihf binutils-arm-linux-gnueabihf
60+
4861
For linux RISC-V 64-bit cross compilation (there are no packages for 32-bit):
4962

5063
sudo apt-get install curl g++-riscv64-linux-gnu binutils-riscv64-linux-gnu
5164

5265
RISC-V known issue: gcc-7.3.0 and gcc-7.3.1 result in a broken `test_bitcoin` executable (see https://github.com/bitcoin/bitcoin/pull/13543),
5366
this is apparently fixed in gcc-8.1.0.
5467

55-
Dependency Options:
68+
### Dependency Options
5669
The following can be set when running make: make FOO=bar
5770

5871
SOURCES_PATH: downloaded sources will be placed here
@@ -70,7 +83,7 @@ The following can be set when running make: make FOO=bar
7083
If some packages are not built, for example `make NO_WALLET=1`, the appropriate
7184
options will be passed to bitcoin's configure. In this case, `--disable-wallet`.
7285

73-
Additional targets:
86+
### Additional targets
7487

7588
download: run 'make download' to fetch all sources without building them
7689
download-osx: run 'make download-osx' to fetch all sources needed for macOS builds

0 commit comments

Comments
 (0)