@@ -30,29 +30,42 @@ Common `host-platform-triplets` for cross compilation are:
30
30
31
31
No other options are needed, the paths are automatically configured.
32
32
33
- Install the required dependencies: Ubuntu & Debian
34
- --------------------------------------------------
33
+ ### Install the required dependencies: Ubuntu & Debian
35
34
36
- For macOS cross compilation :
35
+ First, install the common dependencies :
37
36
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
39
38
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:
41
44
42
45
- see [ build-windows.md] ( ../doc/build-windows.md#cross-compilation-for-ubuntu-and-windows-subsystem-for-linux )
43
46
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
45
56
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:
47
58
59
+ sudo apt-get install g++-arm-linux-gnueabihf binutils-arm-linux-gnueabihf
60
+
48
61
For linux RISC-V 64-bit cross compilation (there are no packages for 32-bit):
49
62
50
63
sudo apt-get install curl g++-riscv64-linux-gnu binutils-riscv64-linux-gnu
51
64
52
65
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 ),
53
66
this is apparently fixed in gcc-8.1.0.
54
67
55
- Dependency Options:
68
+ ### Dependency Options
56
69
The following can be set when running make: make FOO=bar
57
70
58
71
SOURCES_PATH: downloaded sources will be placed here
@@ -70,7 +83,7 @@ The following can be set when running make: make FOO=bar
70
83
If some packages are not built, for example ` make NO_WALLET=1 ` , the appropriate
71
84
options will be passed to bitcoin's configure. In this case, ` --disable-wallet ` .
72
85
73
- Additional targets:
86
+ ### Additional targets
74
87
75
88
download: run 'make download' to fetch all sources without building them
76
89
download-osx: run 'make download-osx' to fetch all sources needed for macOS builds
0 commit comments