Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: smeagol on December 12, 2013, 11:20:50 PM



Title: Compile a windows -qt or daemon
Post by: smeagol on December 12, 2013, 11:20:50 PM
How does one compile a coin from source on Windows?  It seems as if it can only be done easily on Linux.


Title: Re: Compile a windows -qt or daemon
Post by: Ditto on December 12, 2013, 11:34:00 PM
How does one compile a coin from source on Windows?  It seems as if it can only be done easily on Linux.
Came here to ask that exact same question. Can some one help a couple of noobs out?


Title: Re: Compile a windows -qt or daemon
Post by: opticalcarrier on December 12, 2013, 11:37:59 PM
get the allin1 package codeblocks/mingw.  its all 1 download installer with the codeblocks IDE and the mingw C/CPP compiler


Title: Re: Compile a windows -qt or daemon
Post by: Ditto on December 12, 2013, 11:43:31 PM
get the allin1 package codeblocks/mingw.  its all 1 download installer with the codeblocks IDE and the mingw C/CPP compiler
Thanks. But that's for the daemon not Qt, right?


Title: Re: Compile a windows -qt or daemon
Post by: opticalcarrier on December 12, 2013, 11:47:28 PM
get the allin1 package codeblocks/mingw.  its all 1 download installer with the codeblocks IDE and the mingw C/CPP compiler
Thanks. But that's for the daemon not Qt, right?

it should compile anything that you have the source code for, assuming the code was built for the compiler's architecture.
In other words, if the compiler is trying to spit out an .exe binary for windows, the source code must be for windows.


Title: Re: Compile a windows -qt or daemon
Post by: smeagol on December 13, 2013, 11:29:05 PM
get the allin1 package codeblocks/mingw.  its all 1 download installer with the codeblocks IDE and the mingw C/CPP compiler
Thanks. But that's for the daemon not Qt, right?

it should compile anything that you have the source code for, assuming the code was built for the compiler's architecture.
In other words, if the compiler is trying to spit out an .exe binary for windows, the source code must be for windows.

Coins are made to be for Windows, mac, and Linux, so what would happen?


Title: Re: Compile a windows -qt or daemon
Post by: super3 on December 13, 2013, 11:30:30 PM
There are some rough instructions in the Bitcoin source under /docs


Title: Re: Compile a windows -qt or daemon
Post by: smeagol on December 13, 2013, 11:32:47 PM
There are some rough instructions in the Bitcoin source under /docs

Rough instructions, but not very detailed.

Is it good to compile on a VM?


Title: Re: Compile a windows -qt or daemon
Post by: super3 on December 13, 2013, 11:36:47 PM
There are some rough instructions in the Bitcoin source under /docs

Rough instructions, but not very detailed.

Is it good to compile on a VM?
I recommend just following the many build instructions for Linux for all development and testing purposes. Its going to be a while till I get the time to re-write the windows docs.


Title: Re: Compile a windows -qt or daemon
Post by: peterlustig on December 13, 2013, 11:39:29 PM
IIrc gitian is used for the bitcoin-qt client releases and i guess many altcoin devs use it too: http://sourceforge.net/projects/bitcoin/files/Bitcoin/GitianVBox/
https://bitcointalk.org/index.php?topic=42198.0


Title: Re: Compile a windows -qt or daemon
Post by: Ditto on December 13, 2013, 11:50:28 PM
There are some rough instructions in the Bitcoin source under /docs

Rough instructions, but not very detailed.

Is it good to compile on a VM?
I recommend just following the many build instructions for Linux for all development and testing purposes. Its going to be a while till I get the time to re-write the windows docs.
Yeah, building for Linux is pretty straightforward. It would still be nice to know how to build the Qt client on windows, though.


Title: Re: Compile a windows -qt or daemon
Post by: smeagol on December 14, 2013, 01:51:54 AM
I'm looking for an up-to-date and detailed guide to building on windows, so I'll post on this thread if I find one


Title: Re: Compile a windows -qt or daemon
Post by: BrewCrewFan on December 14, 2013, 02:10:27 AM
The one for BTC can be used but its very hard to do at first. Then if the code is changed a bit where it looks for a dependancy somewhere else than where you installed... ahhh good times. you get good after all the copy paste that used to happen .


Title: Re: Compile a windows -qt or daemon
Post by: Tranz on December 14, 2013, 02:10:35 AM
See here for up-to-date
https://bitcointalk.org/index.php?topic=149479.0

See Here for a bit older and a bit easier
https://github.com/Tranz5/HoboNickels/blob/master/doc/build-msw.txt

With great power comes great responsibility.