fartcoin-project / fartcoin

Fartcoin-Core - Forked from Dogecoin
MIT License
2 stars 2 forks source link

Please upload the txt how i build windows binary #2

Open sp1k31973 opened 5 years ago

sp1k31973 commented 5 years ago

Please upload the txt how i build windows binary

fartcoin-project commented 5 years ago

Hi, it is a bit harder to compile a windows binary than it is to compile the Linux version. The information to make the win version is already in the project, you could have already found it in /doc/release-process.md These are my personal notes to make the win32 & 64 wallets

######################################################################################### Install Bitvise SSH client on Windows https://www.bitvise.com/ssh-client-download

Install Linux Debian 8.5 Virtual Machine http://cdimage.debian.org/mirror/cdimage/archive/8.5.0-live/amd64/iso-hybrid/debian-live-8.5.0-amd64-standard.iso Settings debian VM Network: Advanced Port Forwarding add: SSH Hostport 22222 Guestport 22 Run Debian Live Install Hostname: debian Domainname: (empty) New Username: debian next,next,next Use network mirror: YES No HTTP proxy Install GRUB boot loader on: /dev/sda INSTALL is complete

######################################################################################### LOGIN debian 8.5 as root Permit root users over Bitvise SSH: Type the following:

sed -i 's/^PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config

/etc/init.d/ssh restart

######################################################################################### Open Bitvise SSH server: localhost port: 22222 username: root

After logging in as root over SSH type the following:

apt-get install git ruby sudo apt-cacher-ng qemu-utils debootstrap lxc python-cheetah parted kpartx bridge-utils make ubuntu-archive-keyring curl apt-get update

sudo apt-get install debootstrap lxc ruby apache2 git apt-cacher-ng zip

adduser debian sudo

echo "%sudo ALL=NOPASSWD: /usr/bin/lxc-start" > /etc/sudoers.d/gitian-lxc echo "%sudo ALL=NOPASSWD: /usr/bin/lxc-execute" >> /etc/sudoers.d/gitian-lxc echo "cgroup /sys/fs/cgroup cgroup defaults 0 0" >> /etc/fstab echo '#!/bin/sh -e' > /etc/rc.local echo 'brctl addbr br0' >> /etc/rc.local echo 'ifconfig br0 10.0.3.2/24 up' >> /etc/rc.local echo 'iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE' >> /etc/rc.local echo 'echo 1 > /proc/sys/net/ipv4/ip_forward' >> /etc/rc.local echo 'exit 0' >> /etc/rc.local echo 'export USE_LXC=1' >> /home/debian/.profile echo 'export GITIAN_HOST_IP=10.0.3.2' >> /home/debian/.profile echo 'export LXC_GUEST_IP=10.0.3.5' >> /home/debian/.profile reboot

Close window Logout Bitvise SSH ######################################################################################### logging in as debian over SSH:

wget http://archive.ubuntu.com/ubuntu/pool/universe/v/vm-builder/vm-builder_0.12.4+bzr494.orig.tar.gz echo "76cbf8c52c391160b2641e7120dbade5afded713afaa6032f733a261f13e6a8e vm-builder_0.12.4+bzr494.orig.tar.gz" | sha256sum -c tar -zxvf vm-builder_0.12.4+bzr494.orig.tar.gz cd vm-builder-0.12.4+bzr494 sudo python setup.py install cd ..

git clone https://github.com/devrandom/gitian-builder.git git clone https://github.com/fartcoin-project/fartcoin.git

Build base VM in gitian-builder:

''' cd gitian-builder bin/make-base-vm --lxc --suite precise --arch i386 bin/make-base-vm --lxc --suite precise --arch amd64 cd ..

export VERSION=0.9.2
pushd ./fartcoin
git checkout v${VERSION}
popd
pushd ./gitian-builder

Dependencies (make sure this is done in the gitian-builder directory):

mkdir -p inputs; cd inputs/ wget 'http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.9.20151008.tar.gz' -O miniupnpc-1.9.20151008.tar.gz wget 'https://www.openssl.org/source/openssl-1.0.1l.tar.gz' wget 'http://download.oracle.com/berkeley-db/db-5.1.29.NC.tar.gz' wget 'http://www.zlib.net/fossils/zlib-1.2.8.tar.gz' wget 'https://downloads.sourceforge.net/project/libpng/libpng16/older-releases/1.6.8/libpng-1.6.8.tar.gz' wget 'https://fukuchi.org/works/qrencode/qrencode-3.4.3.tar.bz2' wget 'https://downloads.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2' wget 'https://svn.boost.org/trac/boost/raw-attachment/ticket/7262/boost-mingw.patch' -O \ boost-mingw-gas-cross-compile-2013-03-03.patch wget 'https://download.qt-project.org/official_releases/qt/5.2/5.2.0/single/qt-everywhere-opensource-src-5.2.0.tar.gz' wget 'https://download.qt-project.org/archive/qt/4.6/qt-everywhere-opensource-src-4.6.4.tar.gz' wget 'https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.bz2' cd ..

        Build fartcoind and fartcoin-qt on Win32-64:
    (make sure this is done in the gitian-builder directory)
                (!in the right order!)

./bin/gbuild ../fartcoin/contrib/gitian-descriptors/boost-win.yml
mv build/out/boost-*.zip inputs/
./bin/gbuild ../fartcoin/contrib/gitian-descriptors/deps-win.yml
mv build/out/fartcoin-deps-*.zip inputs/

./bin/gbuild ../fartcoin/contrib/gitian-descriptors/qt-win.yml
mv build/out/qt-*.zip inputs/

./bin/gbuild ../fartcoin/contrib/gitian-descriptors/protobuf-win.yml
mv build/out/protobuf-*.zip inputs/

./bin/gbuild --commit fartcoin=v${VERSION} ../fartcoin/contrib/gitian-descriptors/gitian-win.yml
./bin/gsign --signer $SIGNER --release ${VERSION}-win --destination ../gitian.sigs/ ../fartcoin/contrib/gitian-descriptors/gitian-win.yml
pushd build/out
zip -r fartcoin-${VERSION}-win-gitian.zip *
mv fartcoin-${VERSION}-win-gitian.zip ../../../
popd

You will now find the windows installer as a .zip file in the /home/debian/ folder