Author

Topic: My Bitcoin Microsoft Visual C++ fork (Read 2605 times)

sr. member
Activity: 260
Merit: 251
newbie
Activity: 13
Merit: 0
legendary
Activity: 1400
Merit: 1000
March 18, 2015, 01:10:05 PM
#7
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?
added MSVC 2013(I used Qt 5.4.1 for MSVC 2013 and Qt 5.3.2 for MSVC 2012)  Wink

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" Sad)
newbie
Activity: 3
Merit: 0
March 18, 2015, 12:10:34 PM
#6
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?
legendary
Activity: 1400
Merit: 1000
March 17, 2015, 01:06:07 PM
#5
Very cool. Original Bitcoin was built in VS so Satoshi is probably happy Wink

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.
Cool. You're welcome.
I installed Vs2013 Community.I think tomorrow (or maybe the day after tomorrow ) I'll add MSVC 2013 version too.
hero member
Activity: 802
Merit: 1003
GCVMMWH
March 17, 2015, 12:38:17 PM
#4
Very cool. Original Bitcoin was built in VS so Satoshi is probably happy Wink

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.
legendary
Activity: 1400
Merit: 1000
March 17, 2015, 03:46:42 AM
#3
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?
Thank you. I will try to build with Visual Studio 2013.
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://bitcointalksearch.org/topic/building-headless-bitcoin-and-bitcoin-qt-on-windows-149479) 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 $ */
/* Project: miniupnp
 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
 * Author: Thomas Bernard
 * Copyright (c) 2005-2014 Thomas Bernard
 * This software is subjects to the conditions detailed
 * in the LICENCE file provided within this distribution */
#ifndef MINIUPNPCSTRINGS_H_INCLUDED
#define MINIUPNPCSTRINGS_H_INCLUDED

#define OS_STRING "MSWindows/6.1.7601"
#define MINIUPNPC_VERSION_STRING "1.9"

#if 0
/* according to "UPnP Device Architecture 1.0" */
#define UPNP_VERSION_STRING "UPnP/1.0"
#else
/* according to "UPnP Device Architecture 1.1" */
#define UPNP_VERSION_STRING "UPnP/1.1"
#endif

#endif
5) Open file miniupnpc.c and add #undef IF_NAMESIZE  after #include "receivedata.h" (Line 96)
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.
newbie
Activity: 3
Merit: 0
March 16, 2015, 08:19:19 PM
#2
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?
legendary
Activity: 1400
Merit: 1000
March 13, 2015, 04:33:37 AM
#1
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
Running 149 test cases...

*** No errors detected

Based on https://bitcointalksearch.org/topic/now-at-github-bitcoin-086-for-vs2013-32-and-64-bit-and-qt52-349094
I use  https://bitcointalksearch.org/topic/building-master-on-visual-studio-msvc-774811 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!
Jump to: