3 To build dependencies for the current arch+OS:
7 To build for another arch/OS:
9 make HOST=host-platform-triplet
13 make HOST=x86_64-w64-mingw32 -j4
15 A prefix will be generated that's suitable for plugging into Bitcoin's
16 configure. In the above example, a dir named x86_64-w64-mingw32 will be
17 created. To use it for Bitcoin:
19 ./configure --prefix=`pwd`/depends/x86_64-w64-mingw32
21 Common `host-platform-triplets` for cross compilation are:
23 - `i686-w64-mingw32` for Win32
24 - `x86_64-w64-mingw32` for Win64
25 - `x86_64-apple-darwin11` for MacOSX
26 - `arm-linux-gnueabihf` for Linux ARM 32 bit
27 - `aarch64-linux-gnu` for Linux ARM 64 bit
29 No other options are needed, the paths are automatically configured.
32 The following can be set when running make: make FOO=bar
34 SOURCES_PATH: downloaded sources will be placed here
35 BASE_CACHE: built packages will be placed here
36 SDK_PATH: Path where sdk's can be found (used by OSX)
37 FALLBACK_DOWNLOAD_PATH: If a source file can't be fetched, try here before giving up
38 NO_QT: Don't download/build/cache qt and its dependencies
39 NO_WALLET: Don't download/build/cache libs needed to enable the wallet
40 NO_UPNP: Don't download/build/cache packages needed for enabling upnp
41 DEBUG: disable some optimizations and enable more runtime checking
42 HOST_ID_SALT: Optional salt to use when generating host package ids
43 BUILD_ID_SALT: Optional salt to use when generating build package ids
45 If some packages are not built, for example `make NO_WALLET=1`, the appropriate
46 options will be passed to bitcoin's configure. In this case, `--disable-wallet`.
50 download: run 'make download' to fetch all sources without building them
51 download-osx: run 'make download-osx' to fetch all sources needed for osx builds
52 download-win: run 'make download-win' to fetch all sources needed for win builds
53 download-linux: run 'make download-linux' to fetch all sources needed for linux builds
55 ### Other documentation
57 - [description.md](description.md): General description of the depends system
58 - [packages.md](packages.md): Steps for adding packages