News:

Are you new to Groestlcoin and have questions you are afraid to ask?
Check out the New Users board and post there.
Welcome to all newcomers.

Main Menu

How to compile static version of Groestlcoin Core for Windows 64 bit

Started by jackielove4u, October 03, 2018, 06:48:06 PM

Previous topic - Next topic

jackielove4u

The following were tested in Ubuntu 14.04, Ubuntu 16.04 and Ubuntu 18.04, some dependencies can be different in other distros

    • aptitude update -y && aptitude upgrade -y && apt-get update -y && apt-get upgrade -y && apt-get dist-upgrade -y
    • dd if=/dev/zero of=/swapfile bs=1M count=4096
    • mkswap /swapfile
    • swapon /swapfile
    • echo "/swapfile swap swap defaults 0 0" >> /etc/fstab
    • sudo apt-get install build-essential libssl-dev libboost-all-dev libdb5.3 libdb5.3-dev libdb5.3++-dev libtool automake libevent-dev bsdmainutils -y
    • sudo apt-get install git ntp make g++ gcc autoconf cpp ngrep iftop sysstat autotools-dev pkg-config libminiupnpc-dev libzmq3-dev -y
    • sudo apt-get install curl librsvg2-bin libtiff-tools bsdmainutils cmake imagemagick libcap-dev libz-dev libbz2-dev python-setuptools
    • sudo apt-get install g++-aarch64-linux-gnu g++-4.8-aarch64-linux-gnu gcc-4.8-aarch64-linux-gnu binutils-aarch64-linux-gnu g++-arm-linux-gnueabihf g++-4.8-arm-linux-gnueabihf gcc-4.8-arm-linux-gnueabihf binutils-arm-linux-gnueabihf g++-4.8-multilib gcc-4.8-multilib binutils-gold
    • 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.
    • sudo apt install g++-mingw-w64-i686 mingw-w64-i686-dev
    • sudo update-alternatives --config i686-w64-mingw32-g++  # Set the default mingw32 g++ compiler option to posix.
    • git clone https://github.com/groestlcoin/groestlcoin
    • cd groestlcoin
    • cd depends
    • make HOST=x86_64-w64-mingw32
    • cd ..
    • ./autogen.sh
    • ./configure --prefix=`pwd`/depends/x86_64-w64-mingw32
    • make
    • make install DESTDIR=~/home/groestlcoin-version
    • strip ~/home/groestlcoin-version/bin/groestlcoind.exe ~/home/groestlcoin-version/bin/groestlcoin-cli.exe ~/home/groestlcoin-version/bin/groestlcoin-tx.exe ~/home/groestlcoin-version/bin/groestlcoin-qt.exe

The following were tested in Windows 10 with Windows Subsystem for Linux (WSL), some dependencies can be different in other Windows versions

    • start OptionalFeatures.exe
    • Enable 'Windows Subsystem for Linux'
    • Click 'OK' and restart if necessary
    • Open Microsoft Store and search for "Ubuntu 18.04"
    • Click Install
    • Open a cmd prompt and type "Ubuntu1804"
    • Create a new UNIX user account (this is a separate account from your Windows account)
    • sudo apt update && sudo apt upgrade -y
    • sudo apt install build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git nsis -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.
    • sudo apt install g++-mingw-w64-i686 mingw-w64-i686-dev
    • sudo update-alternatives --config i686-w64-mingw32-g++  # Set the default mingw32 g++ compiler option to posix.
    • git clone https://github.com/groestlcoin/groestlcoin
    • PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g')
    • cd groestlcoin
    • cd depends
    • make HOST=x86_64-w64-mingw32
    • cd ..
    • ./autogen.sh
    • CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/
    • make
    • make install DESTDIR=/mnt/c/workspace/groestlcoin
    • strip /mnt/c/workspace/groestlcoin/bin/groestlcoind.exe /mnt/c/workspace/groestlcoin/bin/groestlcoin-cli.exe /mnt/c/workspace/groestlcoin/bin/groestlcoin-tx.exe /mnt/c/workspace/groestlcoin/bin/groestlcoin-qt.exe