Title: My Bitcoin Microsoft Visual C++ fork Post by: fsb4000 on March 13, 2015, 09:33:37 AM https://github.com/fsb4000/bitcoin/tree/MSVC
Built in Visual Studio 2012. There are bitcoin-cli, bitcoind, bitcoin-tx, bitcoin-qt, tests 64 bit and 32 bit 64 bit tests do not pass 1 test... 32 bit tests pass all tests. Code: C:\MyProjects\bitcoin\MSVC\MSVC2012\Win32\Release>Tests.exe Based on https://bitcointalk.org/index.php?topic=349094.0 I use https://bitcointalk.org/index.php?topic=774811.0 for generating *.json.h files Thank you ENikS and Claire123 I didn't use add-ons to create a bitcoin-qt project. All preparatory actions for Qt are made in the "Build Events" => "Events before building" This means that you can easily build with your Qt version(and change Qt path), only by changing the initial path in the command, even in Express versions of Visual Studio (which do not support add-ons) The folder structure is made so that it was easy to add projects for other versions of Visual Studio. I'm planning to add Visual Studio 2015 projects(when VS2015 will be released), but if you are interested I can add Visual Studio 2013 projects and Visual Studio 2010. I'll try to keep my github branch updated to the bitcoin master. A little later I'll add detailed instructions how to build dependencies. If someone wants to support the initiative: My BTC address 1LqXE9xzjLS3HcoRe6AvxAw9zhMimDWCjP English is not my native language, if you want to correct this message, send me a PM with your edits. Thank you! Title: Re: My Bitcoin Microsoft Visual C++ fork Post by: carstenh on March 17, 2015, 01:19:19 AM Looks really good. Thanks.
Taking your code I have been able to build the libraries and bitcoind using VS2013. I had to disable USE_UPNP as I got link errors about missing symbols like _memicmp. How did you avoid that? Another question, why do you have "cxxflags="-Zc:whar_t-" when building Boost? Title: Re: My Bitcoin Microsoft Visual C++ fork Post by: fsb4000 on March 17, 2015, 08:46:42 AM Looks really good. Thanks. Thank you. I will try to build with Visual Studio 2013.Taking your code I have been able to build the libraries and bitcoind using VS2013. I had to disable USE_UPNP as I got link errors about missing symbols like _memicmp. How did you avoid that? Another question, why do you have "cxxflags="-Zc:whar_t-" when building Boost? I used the Claire123 code for building dependencies. https://bitcoinqtmsvc2012.codeplex.com/SourceControl/latest#MSVC/build-helpers/buildboost.bat I have already made detailed instructions (like https://bitcointalk.org/index.php?topic=149479.0) but it is only in Russian now. I'll translate it in English in the near future Did you build Miniupnpc? 1) Download http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.9.20150206.tar.gz 2) Extract to C:\MyProjects\Deps 3) Rename miniupnpc-1.9.20150206 to miniupnpc 4) Open minupnpc and create file miniupnpcstrings.h Code: /* $Id: miniupnpcstrings.h.in,v 1.6 2014/11/04 22:31:55 nanard Exp $ */ 6) Open miniupnpc\msvc\miniupnpc.sln 7) Change CRT Library to Multithreaded(from Multithreaded dll) and Multithreaded debug(from Multithreaded Debug dll) 8) Build Miniupnpc project. Title: Re: My Bitcoin Microsoft Visual C++ fork Post by: Joe_Bauers on March 17, 2015, 05:38:17 PM Very cool. Original Bitcoin was built in VS so Satoshi is probably happy ;)
I forked what you did for Novacoin into the latest testing version of Yacoin since its easier to maintain (not embedded in most source files) and am going to try to get it working for VS 2013 Community, cause its free and also basically the same as the regular version. Will let you know how it goes. Title: Re: My Bitcoin Microsoft Visual C++ fork Post by: fsb4000 on March 17, 2015, 06:06:07 PM Very cool. Original Bitcoin was built in VS so Satoshi is probably happy ;) Cool. You're welcome.I forked what you did for Novacoin into the latest testing version of Yacoin since its easier to maintain (not embedded in most source files) and am going to try to get it working for VS 2013 Community, cause its free and also basically the same as the regular version. Will let you know how it goes. I installed Vs2013 Community.I think tomorrow (or maybe the day after tomorrow ) I'll add MSVC 2013 version too. Title: Re: My Bitcoin Microsoft Visual C++ fork Post by: carstenh on March 18, 2015, 05:10:34 PM Great if you will do a version for VS2013.
I got past my previous issue thanks to your help. Currently I'm stuck on the qt build. Btw when running your Tests, it reports memory leaks. Is that expected? Title: Re: My Bitcoin Microsoft Visual C++ fork Post by: fsb4000 on March 18, 2015, 06:10:05 PM Great if you will do a version for VS2013. added MSVC 2013(I used Qt 5.4.1 for MSVC 2013 and Qt 5.3.2 for MSVC 2012) ;)I got past my previous issue thanks to your help. Currently I'm stuck on the qt build. Btw when running your Tests, it reports memory leaks. Is that expected? Yes, memory leaks expected. I will be focusing on the tests later. Tomorrow I'll add detailed instructions and will do rebase to bitcoin master. (Now : "This branch is 4 commits behind" :() Title: Re: My Bitcoin Microsoft Visual C++ fork Post by: ENikS on March 19, 2015, 07:00:07 AM You may want to use this to build Boost:
http://www.codeproject.com/Articles/882581/Building-and-configuring-boost-in-Visual-Studio-MS Title: Re: My Bitcoin Microsoft Visual C++ fork Post by: old c coder on January 23, 2016, 03:34:35 AM You may want to use this to build Boost: And if you're not a "purist" you can just download them! See http://www.codeproject.com/Articles/882581/Building-and-configuring-boost-in-Visual-Studio-MS https://www.youtube.com/watch?v=DaJ5pr8lREY (https://www.youtube.com/watch?v=DaJ5pr8lREY) Ron |