Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Genedarner123 on April 10, 2017, 07:33:44 PM



Title: windows wallet
Post by: Genedarner123 on April 10, 2017, 07:33:44 PM
Can someone please teach me how to cross compile windows wallet on ubuntu for any coin.
Links and referances would also be useful. :)


Title: Re: windows wallet
Post by: achow101 on April 10, 2017, 07:47:40 PM
For the latest versions of Bitcoin Core, follow the instructions here: https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md. That may work for altcoins that are based on Bitcoin Core 0.10.0+ if they updated the depends system. You can also use gitian if the gitian system was updated for the altcoin. Gitian instructions can be found at https://github.com/bitcoin/bitcoin/blob/master/doc/gitian-building.md and https://github.com/bitcoin/bitcoin/blob/master/doc/release-process.md. Gitian builds go back a long time, but will not work if the gitian version required is too old or if the gitian scripts and such were never updated for the altcoin.


Title: Re: windows wallet
Post by: achain on April 10, 2017, 09:54:52 PM
Can someone please teach me how to cross compile windows wallet on ubuntu for any coin.
Links and referances would also be useful. :)
Just FYI, you must be running windows in order to create a windows executable file for Qt.


Title: Re: windows wallet
Post by: Genedarner123 on April 11, 2017, 12:36:00 PM
Can someone please teach me how to cross compile windows wallet on ubuntu for any coin.
Links and referances would also be useful. :)
Just FYI, you must be running windows in order to create a windows executable file for Qt.

I have seen some blogs about that , but i have heard that its easy to cross compile it on ubuntu. so was wondering if its really that easy and if so how


Title: Re: windows wallet
Post by: achain on April 11, 2017, 01:10:34 PM
Can someone please teach me how to cross compile windows wallet on ubuntu for any coin.
Links and referances would also be useful. :)
Just FYI, you must be running windows in order to create a windows executable file for Qt.

I have seen some blogs about that , but i have heard that its easy to cross compile it on ubuntu. so was wondering if its really that easy and if so how
I don't see how, but...
Anyway, compiling it for Linux on Ubuntu is a breeze. Compiling bitcoin-qt for windows is a pain in the neck, but I've done it successfully, but in windows for windows. The hardest part is having all in place, all dependencies. Lots of problems with conflicting versions, I had to downgrade something (I don't remember exactly what is was, as it was an experiment years ago - sorry).


Title: Re: windows wallet
Post by: achain on April 11, 2017, 01:39:54 PM
For the latest versions of Bitcoin Core, follow the instructions here: https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md. That may work for altcoins that are based on Bitcoin Core 0.10.0+ if they updated the depends system. You can also use gitian if the gitian system was updated for the altcoin. Gitian instructions can be found at https://github.com/bitcoin/bitcoin/blob/master/doc/gitian-building.md and https://github.com/bitcoin/bitcoin/blob/master/doc/release-process.md. Gitian builds go back a long time, but will not work if the gitian version required is too old or if the gitian scripts and such were never updated for the altcoin.
@achow101 posted the exact answer to your question. Now I also understand the "cross-compilation" for windows, using win10's new featureLinux subsystem. Seems much easier these days.