Skip to content

[dev only] testing BitZeny Plus v3.0_dev (YesPoWer_0.5) (Cross build on Ubuntu 16.04 or 18.04)

Kikyou Akino edited this page Aug 6, 2018 · 2 revisions

Preparation

$ sudo apt install build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git g++-mingw-w64-x86-64
$ sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix

Cross-Build

$ git clone -b v3.0-dev https://github.com/bitzenyPlus/BitZenyPlus.git
$ cd BitZenyPlus/depends
$ make HOST=x86_64-w64-mingw32 -j$(grep -c ^processor /proc/cpuinfo)
$ cd ..
$ ./autogen.sh
$ CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure
$ make -j$(grep -c ^processor /proc/cpuinfo)
$ find src -name "*.exe" -exec x86_64-w64-mingw32-strip {} +