Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: hamburger on May 21, 2018, 08:38:42 PM



Title: Cross Compile Windows Binaries For Bitcoin v0.10.2
Post by: hamburger on May 21, 2018, 08:38:42 PM

Hi,

I need to cross compile Bitcoin v0.10.2 for the windows executable files on Ubuntu 14.04 x64 for a project.

The source code is at - https://github.com/bitcoin/bitcoin/tree/v0.10.2

All the instructions that I found result in the installation of the source on Ubuntu instead of compiling the source for the windows executable files.

I do not have any issues with the cross compiling of the source from Bitcoin v0.13 - v0.16

Any help with this will be much appreciated

Thx

H


Title: Re: Cross Compile Windows Binaries For Bitcoin v0.10.2
Post by: jackg on May 21, 2018, 09:14:32 PM
There are no windows binaries there. I have 0.10.2 somewhere I'll get round to posting it if it is absolutely needed - if achows strategy fails.


Title: Re: Cross Compile Windows Binaries For Bitcoin v0.10.2
Post by: achow101 on May 21, 2018, 09:16:52 PM
The cross compilation process for Bitcoin Core 0.10.x should be largely the same as for recent versions of Bitcoin Core. Try following those instructions but with the 0.10.2 codebase.

You can also use gitian which is used for building the release binaries. Instructions for that are available here: https://github.com/bitcoin/bitcoin/blob/v0.10.2/doc/gitian-building.md and here https://github.com/bitcoin/bitcoin/blob/v0.10.2/doc/release-process.md


Title: Re: Cross Compile Windows Binaries For Bitcoin v0.10.2
Post by: hamburger on May 22, 2018, 12:55:39 AM
There are no windows binaries there. I have 0.10.2 somewhere I'll get round to posting it if it is absolutely needed - if achows strategy fails.

Tnx but I need to build it myself.

H


Title: Re: Cross Compile Windows Binaries For Bitcoin v0.10.2
Post by: hamburger on May 22, 2018, 12:58:18 AM
The cross compilation process for Bitcoin Core 0.10.x should be largely the same as for recent versions of Bitcoin Core. Try following those instructions but with the 0.10.2 codebase.

You can also use gitian which is used for building the release binaries. Instructions for that are available here: https://github.com/bitcoin/bitcoin/blob/v0.10.2/doc/gitian-building.md and here https://github.com/bitcoin/bitcoin/blob/v0.10.2/doc/release-process.md

Tnx, installing the VM now and will see how far I get with this route -> new learning curve.

H


Title: Re: Cross Compile Windows Binaries For Bitcoin v0.10.2
Post by: akshaynexus on May 22, 2018, 12:55:15 PM
You do not need gitian to build windows wallet.Its much easier and straightaway than gititan.Here are the steps to compile windows bitcoin core wallet on ubuntu with cross compile

1.Clone bitcoin repo
2.cd to depends folder
3.execute make HOST=x86_64-w64-mingw32 -j4
4.then once the depends have been compiled fully,then cd ..
5.then run bash autogen.sh
6.then execute ./configure --prefix=`pwd`/depends/x86_64-w64-mingw32
7.then type make
8.After all compile finishes.You will find qt wallet for windoes under the src/qt folder.

Thats it


Title: Re: Cross Compile Windows Binaries For Bitcoin v0.10.2
Post by: hamburger on May 23, 2018, 01:53:16 PM
You do not need gitian to build windows wallet.Its much easier and straightaway than gititan.Here are the steps to compile windows bitcoin core wallet on ubuntu with cross compile

1.Clone bitcoin repo
2.cd to depends folder
3.execute make HOST=x86_64-w64-mingw32 -j4
4.then once the depends have been compiled fully,then cd ..
5.then run bash autogen.sh
6.then execute ./configure --prefix=`pwd`/depends/x86_64-w64-mingw32
7.then type make
8.After all compile finishes.You will find qt wallet for windoes under the src/qt folder.

Thats it

Nope, this is not going to work to compile the Windows binaries for bitcoin - at least definitely not for https://github.com/bitcoin/bitcoin/tree/v0.10.2