Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: ENikS on September 08, 2014, 03:59:29 PM



Title: Building master on Visual Studio (MSVC)
Post by: ENikS on September 08, 2014, 03:59:29 PM
I've created new project which includes bitcoin and all of the dependencies as sub-modules and produces x86 and x64 builds for the BitcoinD.
It builds bitcoin master and masters of all the dependencies without any modifications so unless you want to contribute to the development there are no need to fork it.

Unit tests are executed by running UnitTests project. Some tests are failing at the moment, I am trying to identify if this is the build or the BTC code...
Still work in progress so it is not as stable as official distribution but it was never my intention to replace it anyway.

I did not port QT related code because I am planning to create native dll or perhaps even create managed/unmanaged gateway which could be used by languages like C# directly.


Big thanks to Claire DuSoleil and bc4-old-c-coder for their previous efforts which helped to understand few things.

GitHub: https://github.com/ENikS/bitcoin-dev-msvc


Title: Re: Building master on Visual Studio (MSVC)
Post by: doof on September 08, 2014, 10:59:57 PM
Very cool.  Might setup a build server for this.

"Ready to ... well, still workign on few bits and peaces."

Should read

"Ready to ... well, still working on few bits and pieces."



Title: Re: Building master on Visual Studio (MSVC)
Post by: ENikS on September 10, 2014, 02:48:13 AM
Thx, spelling is my curse.


Title: Re: Building master on Visual Studio (MSVC)
Post by: ENikS on September 20, 2014, 12:05:34 AM
Finally fished out all the unresolved externals in test files. Now all tests, except one, are building and ready to test.


Title: Re: Building master on Visual Studio (MSVC)
Post by: by321 on September 23, 2014, 05:23:38 AM
This is not easy, well done !


Title: Re: Building master on Visual Studio (MSVC)
Post by: mtomcdev on September 23, 2014, 11:14:26 AM
Great, thanks for sharing this!


Title: Re: Building master on Visual Studio (MSVC)
Post by: ENikS on September 24, 2014, 03:26:56 AM
After this pull request goes through all of the unit tests should run.

https://github.com/bitcoin/bitcoin/pull/4970  (This part of it: https://github.com/theuni/bitcoin/commit/eb5c80763246cae7733ff5c0440424dc6cf9beed)

Once it is done it would be time to give bitcoind a spin :)


Title: Re: Building master on Visual Studio (MSVC)
Post by: ENikS on October 22, 2014, 11:26:00 PM
The latest core builds and runs. Will be working on UI version now.


Title: Re: Building master on Visual Studio (MSVC)
Post by: naplam on November 05, 2014, 11:08:18 AM

Nice.. which dependencies are you compiling on msvc and which on mingw?


Title: Re: Building master on Visual Studio (MSVC)
Post by: ENikS on November 05, 2014, 05:43:50 PM
Everything is compiled on MSVC, mingw is not required.


Title: Re: Building master on Visual Studio (MSVC)
Post by: old c coder on January 23, 2016, 03:27:14 AM
Everything is compiled on MSVC, mingw is not required.
Hello ENikS,

Have you seen my videos?  At
https://www.youtube.com/channel/UCytoaHvG3H1y9CnxZS819eQ (https://www.youtube.com/channel/UCytoaHvG3H1y9CnxZS819eQ)

Ron