- Download and install MSYS2 from https://www.msys2.org/
- Open MSYS2 MinGW 64-bit terminal
- Install dependencies:
pacman -Syu
pacman -S --needed \
mingw-w64-x86_64-gcc \
mingw-w64-x86_64-boost \
mingw-w64-x86_64-openssl \
mingw-w64-x86_64-db \
mingw-w64-x86_64-wxWidgets3.2 \
makesudo apt-get install mingw-w64 g++-mingw-w64-x86-64
# For dependencies, use MXE:
git clone https://github.com/mxe/mxe.git
cd mxe
make MXE_TARGETS='x86_64-w64-mingw32.static' boost wxwidgets openssl# GUI wallet
make -f makefile.mingw gui
# Daemon only
make -f makefile.mingw daemon
# Both
make -f makefile.mingw all
# Clean
make -f makefile.mingw clean# For your specific CPU (best performance)
make -f makefile.mingw all MARCH=native
# For distribution (modern CPUs, 2015+)
make -f makefile.mingw all MARCH=x86-64-v3
# Maximum compatibility
make -f makefile.mingw all MARCH=x86-64bitok.exe- GUI walletbitokd.exe- Command-line daemon
Data directory: %APPDATA%\Bitok\
bitok.exe # GUI wallet
bitokd.exe # Daemon
bitokd.exe -daemon # BackgroundConfigure settings in %APPDATA%\Bitok\bitok.conf. See README.md for config options.
Note: Different build methods use different BDB versions:
- MSYS2
mingw-w64-x86_64-dbinstalls BDB 5.3+ - Ubuntu
libdb5.3-devinstalls BDB 5.3 - MSVC/vcpkg uses BDB 4.8.30 (vcpkg only provides 4.8)
MinGW and Ubuntu builds share wallet format. MSVC builds have different wallet format.
If migrating wallet between BDB versions, use: bitokd -recover
Build is configured for static linking. If you get DLL errors, copy these from MSYS2:
- libgcc_s_seh-1.dll
- libstdc++-6.dll
- libwinpthread-1.dll
May flag cryptocurrency software. Add exclusion in Settings if needed.