For more compilation documents, see build-*.md under btchd/doc.
Common host-platform-triplets for cross compilation are:
x86_64-w64-mingw32for Windows 64 biti686-w64-mingw32for Windows 32 bitx86_64-apple-darwin14for macOS 64 bit (The 32 bit binary has unsupported after macOS Catalina)i686-linux-gnufor Linux 32 bitx86_64-linux-gnufor Linux 64 bitarm-linux-gnueabihffor Linux ARM 32 bitaarch64-linux-gnufor Linux ARM 64 bitriscv64-linux-gnufor Linux RISC-V 64 bit
The docker image base on ubuntu:18.04. Install docker and run make images command.
-
Download BitcoinHD source code by git:
git clone https://github.com/btchd/btchd.git -
Run build command:
cd ./btchd && make -f /YourBuildScriptPath/Makefile
You will see the ../btchd_build/release directory, it's the compiled binary
package. If you want to compile the binary package of the specified platform,
you can use cd ./btchd && make -f /YourBuildScriptPath/Makefile build_host-platform-triplets.
Example: cd ./btchd && make -f /YourBuildScriptPath/Makefile build_x86_64-w64-mingw32 only for Win64.