-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildwindows.sh
executable file
·23 lines (20 loc) · 1.11 KB
/
buildwindows.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# apt-get update
# apt-get upgrade
# sudo apt install build-essential libtool autotools-dev automake pkg-config bsdmainutils curl sudo git
# sudo chmod 777 ./depends/config.*
# sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
# sudo apt-get install software-properties-common
# sudo add-apt-repository ppa:bitcoin/bitcoin
# sudo apt-get update
# sudo apt-get install libdb4.8-dev libdb4.8++-dev
# sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
# sudo apt-get install libzmq3-dev -y
# sudo apt-get install libminiupnpc-dev -y
# sudo apt-get install libgmp3-dev libevent-dev bsdmainutils libboost-all-dev openssl -y
sudo apt install g++-mingw-w64-x86-64
sudo update-alternatives --config x86_64-w64-mingw32-g++ # Set the default mingw32 g++ compiler option to posix. or choose 0 for deb8
PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g') # strip out problematic Windows %PATH% imported var
cd depends
make HOST=x86_64-w64-mingw32
cd ..
bash build-win64.sh