• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

Building Dash locally using Visual Studio

james101

New member
I've been trying to build dash locally for hours now but I'm stuck.

I cloned the repo, then created a new project from existing code in visual studio (using the src folder). When i go to build the project I get the following errors:


Anyone have any idea?

Code:
1>------ Build started: Project: TestCoin2, Configuration: Debug Win32 ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(937,5): warning MSB8027: Two or more files with the name of governance.cpp will produce outputs to the same location. This can lead to an incorrect build result.  The files involved are governance.cpp, rpc\governance.cpp.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(937,5): warning MSB8027: Two or more files with the name of masternode.cpp will produce outputs to the same location. This can lead to an incorrect build result.  The files involved are masternode.cpp, rpc\masternode.cpp.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(937,5): warning MSB8027: Two or more files with the name of net.cpp will produce outputs to the same location. This can lead to an incorrect build result.  The files involved are net.cpp, rpc\net.cpp.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(937,5): warning MSB8027: Two or more files with the name of protocol.cpp will produce outputs to the same location. This can lead to an incorrect build result.  The files involved are protocol.cpp, rpc\protocol.cpp.
1>zmqpublishnotifier.cpp
1>zmq\zmqpublishnotifier.cpp(5): fatal error C1083: Cannot open include file: 'chainparams.h': No such file or directory
1>zmqnotificationinterface.cpp
1>c:\users\james\desktop\dash\src\zmq\zmqnotificationinterface.h(8): fatal error C1083: Cannot open include file: 'validationinterface.h': No such file or directory
1>zmqabstractnotifier.cpp
1>c:\users\james\desktop\dash\src\zmq\zmqconfig.h(19): fatal error C1083: Cannot open include file: 'primitives/block.h': No such file or directory
1>wallet_ismine.cpp
1>c:\users\james\desktop\dash\src\wallet\wallet_ismine.h(9): fatal error C1083: Cannot open include file: 'script/standard.h': No such file or directory
1>walletdb.cpp
1>wallet\walletdb.cpp(7): fatal error C1083: Cannot open include file: 'wallet/walletdb.h': No such file or directory
1>wallet.cpp
1>wallet\wallet.cpp(7): fatal error C1083: Cannot open include file: 'wallet/wallet.h': No such file or directory
1>wallet_tests.cpp
1>wallet\test\wallet_tests.cpp(5): fatal error C1083: Cannot open include file: 'wallet/wallet.h': No such file or directory
1>rpcwallet.cpp
1>wallet\rpcwallet.cpp(7): fatal error C1083: Cannot open include file: 'amount.h': No such file or directory
1>rpcdump.cpp
1>wallet\rpcdump.cpp(6): fatal error C1083: Cannot open include file: 'base58.h': No such file or directory
1>db.cpp
1>c:\users\james\desktop\dash\src\wallet\db.h(9): fatal error C1083: Cannot open include file: 'clientversion.h': No such file or directory
1>crypter.cpp
1>c:\users\james\desktop\dash\src\wallet\crypter.h(8): fatal error C1083: Cannot open include file: 'keystore.h': No such file or directory
1>versionbits.cpp
1>c:\users\james\desktop\dash\src\script/script.h(311): warning C4244: 'return': conversion from 'const int64_t' to 'int', possible loss of data
1>c:\users\james\desktop\dash\src\script/script.h(383): warning C4244: 'argument': conversion from 'int64_t' to 'const unsigned char', possible loss of data
1>c:\users\james\desktop\dash\src\script/script.h(453): warning C4267: 'argument': conversion from 'size_t' to 'uint16_t', possible loss of data
1>c:\users\james\desktop\dash\src\chain.h(312): warning C4018: '>=': signed/unsigned mismatch
1>c:\users\james\desktop\dash\src\chain.h(322): warning C4018: '<': signed/unsigned mismatch
1>versionbits.cpp(123): warning C4244: 'return': conversion from 'int64_t' to 'int', possible loss of data
1>versionbits.cpp(124): warning C4244: 'return': conversion from 'int64_t' to 'int', possible loss of data
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include\xutility(3126): warning C4996: 'std::equal::_Unchecked_iterators::_Deprecate': Call to 'std::equal' with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include\xutility(3126): note: see declaration of 'std::equal::_Unchecked_iterators::_Deprecate'
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include\xutility(3167): note: see reference to function template instantiation 'bool std::equal<_InIt1,_InIt2,std::equal_to<void>>(_InIt1,_InIt1,_InIt2,_Pr)' being compiled
1>        with
1>        [
1>            _InIt1=prevector<28,unsigned char,uint32_t,int32_t>::const_iterator,
1>            _InIt2=prevector<28,unsigned char,uint32_t,int32_t>::iterator,
1>            _Pr=std::equal_to<void>
1>        ]
1>c:\users\james\desktop\dash\src\script/script.h(582): note: see reference to function template instantiation 'bool std::equal<prevector<28,unsigned char,uint32_t,int32_t>::const_iterator,prevector<28,unsigned char,uint32_t,int32_t>::iterator>(_InIt1,_InIt1,_InIt2)' being compiled
1>        with
1>        [
1>            _InIt1=prevector<28,unsigned char,uint32_t,int32_t>::const_iterator,
1>            _InIt2=prevector<28,unsigned char,uint32_t,int32_t>::iterator
1>        ]
1>c:\users\james\desktop\dash\src\serialize.h(267): warning C4244: 'argument': conversion from 'uint64_t' to 'uint8_t', possible loss of data
1>c:\users\james\desktop\dash\src\serialize.h(667): note: see reference to function template instantiation 'void WriteCompactSize<Stream>(Stream &,uint64_t)' being compiled
1>        with
1>        [
1>            Stream=CSizeComputer
1>        ]
1>c:\users\james\desktop\dash\src\serialize.h(683): note: see reference to function template instantiation 'void Serialize_impl<Stream,28,unsigned char>(Stream &,const prevector<28,unsigned char,uint32_t,int32_t> &,int,int,const unsigned char &)' being compiled
1>        with
1>        [
1>            Stream=CSizeComputer
1>        ]
1>c:\users\james\desktop\dash\src\serialize.h(964): note: see reference to function template instantiation 'void Serialize<Stream,28,unsigned char>(Stream &,const prevector<28,unsigned char,uint32_t,int32_t> &,int,int)' being compiled
1>        with
1>        [
1>            Stream=CSizeComputer
1>        ]
1>c:\users\james\desktop\dash\src\primitives/transaction.h(105): note: see reference to function template instantiation 'void SerReadWrite<Stream,CScriptBase>(Stream &,const T &,int,int,CSerActionSerialize)' being compiled
1>        with
1>        [
1>            Stream=CSizeComputer,
1>            T=CScriptBase
1>        ]

etc (removed so it's under the max chars)
1>c:\users\james\desktop\dash\src\compat.h(93): warning C4273: 'strnlen': inconsistent dll linkage
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(357): note: see previous definition of 'strnlen'
1>c:\users\james\desktop\dash\src\support/pagelocker.h(13): fatal error C1083: Cannot open include file: 'boost/thread/mutex.hpp': No such file or directory
1>Generating Code...
1>Done building project "TestCoin2.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 
Back
Top