Hi vv181, thanks for replying to my message!
I am making my own cryptonote coin, forked from the cryptonotefoundations github,
https://github.com/cryptonotefoundation/cryptonoteI have the core compiled and working on Ubuntu 16 and on windows 10.
The wallet also compiles and works on Ubuntu 16.
But I am still not able to get the wallet itself to compile on Windows 10.
I am using Developer Command Prompt for VS 2017 to try and compile everything.
I have Boost 1.55 and Qt5 installed.
I follow the steps laid out at
https://github.com/cryptonotefoundation/cryptonotewalletFor step 3, I create a symbolic link using the command: mklink /D cryptonote ..\CryptoNote
and also a git submodule: git submodule add
https://github.com/cryptonotefoundation/cryptonote.git cryptonote
For step 4, I instead use the following commands:
mkdir build && cd build
cmake -G "Visual Studio 14 2015" -A Win32 .. -DBOOST_ROOT=B:/local/boost_1_55_0 -DBoost_ATOMIC_LIBRARY="B:\local\boost_1_55_00\libs\atomic" -DBoost_SYSTEM_LIBRARY="B:\local\boost_1_55_00\libs\system" -DBoost_FILESYSTEM_LIBRARY="B:\local\boost_1_55_00\libs\filesystem" -DBoost_THREAD_LIBRARY="B:\local\boost_1_55_00\libs\thread" -DBoost_DATE_TIME_LIBRARY="B:\local\boost_1_55_00\libs\date_time" -DBoost_CHRONO_LIBRARY="B:\local\boost_1_55_00\libs\chrono" -DBoost_REGEX_LIBRARY="B:\local\boost_1_55_00\libs\regex" -DBoost_SERIALIZATION_LIBRARY="B:\local\boost_1_55_00\libs\serialization" -DBoost_PROGRAM_OPTIONS_LIBRARY="B:\local\boost_1_55_00\libs\program_options" -DCMAKE_PREFIX_PATH="B:\Qt\Qt5.9.9\5.9.9\winrt_x64_msvc2017\lib\cmake\Qt5Gui;B:\Qt\Qt5.9.9\5.9.9\winrt_x64_msvc2017\lib\cmake\Qt5Widgets"
MSBuild thecrowncoin.sln /p:Configuration=Release /p:Platform=Win32 /p:PlatformToolset=v140_xp /m
Here is the output from when I try to compile everything:
Build FAILED.
"B:\Documents\Crypto\cryptonotewallet-master\build\thecrowncoin.sln" (default target) (1) ->
"B:\Documents\Crypto\cryptonotewallet-master\build\cryptonote.vcxproj.metaproj" (default target) (3) ->
"B:\Documents\Crypto\cryptonotewallet-master\build\cryptonote.vcxproj" (default target) (5) ->
(ClCompile target) ->
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\crypto\blake256.c(150): warning C4244: 'function':
conversion from 'uint64_t' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptonotewallet-master\
build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\crypto\jh.c(264): warning C4244: 'function': conver
sion from 'unsigned __int64' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptonotewallet-maste
r\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\crypto\jh.c(266): warning C4244: 'function': conver
sion from 'unsigned __int64' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptonotewallet-maste
r\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\crypto\jh.c(273): warning C4244: 'function': conver
sion from 'unsigned __int64' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptonotewallet-maste
r\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\crypto\oaes_lib.c(495): warning C4996: 'getpid': Th
e POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _getpid. See online he
lp for details. [B:\Documents\Crypto\cryptonotewallet-master\build\cryptonote.vcxproj]
"B:\Documents\Crypto\cryptonotewallet-master\build\thecrowncoin.sln" (default target) (1) ->
"B:\Documents\Crypto\cryptonotewallet-master\build\cryptonote.vcxproj.metaproj" (default target) (3) ->
"B:\Documents\Crypto\cryptonotewallet-master\build\cryptonote.vcxproj" (default target) (5) ->
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\include\shlobj.h(1151): warning C4091: 'typedef ': ignored
on left of 'tagGPFIDL_FLAGS' when no variable is declared [B:\Documents\Crypto\cryptonotewallet-master\build\cr
yptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\Common\StdInputStream.cpp(14): warning C4244: 'retu
rn': conversion from 'std::streamsize' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptonotewa
llet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\CryptoNoteCore\Blockchain.cpp(638): warning C4244:
'initializing': conversion from 'uint64_t' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptono
tewallet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\CryptoNoteCore\Blockchain.cpp(663): warning C4244:
'initializing': conversion from 'uint64_t' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptono
tewallet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\CryptoNoteCore\Blockchain.cpp(700): warning C4244:
'initializing': conversion from 'uint64_t' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptono
tewallet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\CryptoNoteCore\Blockchain.cpp(880): warning C4244:
'argument': conversion from 'const uint64_t' to 'const unsigned int', possible loss of data [B:\Documents\Crypto
\cryptonotewallet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\CryptoNoteCore\Blockchain.cpp(892): warning C4244:
'argument': conversion from 'uint64_t' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptonotewa
llet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\CryptoNoteCore\Blockchain.cpp(906): warning C4244:
'initializing': conversion from 'uint64_t' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptono
tewallet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\CryptoNoteCore\Blockchain.cpp(1249): warning C4244:
'initializing': conversion from 'uint64_t' to 'std::size_t', possible loss of data [B:\Documents\Crypto\crypton
otewallet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\CryptoNoteCore\Blockchain.cpp(1354): warning C4244:
'argument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Crypto\cryptonote
wallet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\CryptoNoteCore\Blockchain.cpp(1523): warning C4244:
'initializing': conversion from 'uint64_t' to 'std::size_t', possible loss of data [B:\Documents\Crypto\crypton
otewallet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\CryptoNoteCore\Blockchain.cpp(1584): warning C4244:
'=': conversion from 'uint64_t' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptonotewallet-m
aster\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\CryptoNoteCore\Blockchain.cpp(2065): warning C4244:
'argument': conversion from 'uint64_t' to 'SwappedVector<CryptoNote::Blockchain::BlockEntry>::const_iterator::d
ifference_type', possible loss of data [B:\Documents\Crypto\cryptonotewallet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\CryptoNoteCore\Blockchain.cpp(2120): warning C4244:
'=': conversion from 'const uint64_t' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptonotewa
llet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\CryptoNoteCore\Blockchain.cpp(2127): warning C4244:
'=': conversion from 'uint64_t' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptonotewallet-m
aster\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\CryptoNoteCore/SwappedVector.h(280): warning C4244:
'argument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Crypto\cryptonote
wallet-master\build\cryptonote.vcxproj]
b:\documents\crypto\cryptonotewallet-master\cryptonote\src\cryptonotecore\Blockchain.h(336): warning C4244: 'a
rgument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Crypto\cryptonotewal
let-master\build\cryptonote.vcxproj]
b:\documents\crypto\cryptonotewallet-master\cryptonote\src\cryptonotecore\Blockchain.h(338): warning C4244: 'a
rgument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Crypto\cryptonotewal
let-master\build\cryptonote.vcxproj]
b:\documents\crypto\cryptonotewallet-master\cryptonote\src\cryptonotecore\Blockchain.h(341): warning C4244: 'a
rgument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Crypto\cryptonotewal
let-master\build\cryptonote.vcxproj]
b:\documents\crypto\cryptonotewallet-master\cryptonote\src\cryptonotecore\Blockchain.h(346): warning C4244: 'a
rgument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Crypto\cryptonotewal
let-master\build\cryptonote.vcxproj]
b:\documents\crypto\cryptonotewallet-master\cryptonote\src\cryptonotecore\Blockchain.h(352): warning C4244: 'a
rgument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Crypto\cryptonotewal
let-master\build\cryptonote.vcxproj]
b:\documents\crypto\cryptonotewallet-master\cryptonote\src\cryptonotecore\Blockchain.h(353): warning C4244: 'a
rgument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Crypto\cryptonotewal
let-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\CryptoNoteCore\Core.cpp(323): warning C4244: '=': c
onversion from 'uint64_t' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptonotewallet-master\b
uild\cryptonote.vcxproj]
b:\documents\crypto\cryptonotewallet-master\cryptonote\src\cryptonotecore\Blockchain.h(336): warning C4244: 'a
rgument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Crypto\cryptonotewal
let-master\build\cryptonote.vcxproj]
b:\documents\crypto\cryptonotewallet-master\cryptonote\src\cryptonotecore\Blockchain.h(338): warning C4244: 'a
rgument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Crypto\cryptonotewal
let-master\build\cryptonote.vcxproj]
b:\documents\crypto\cryptonotewallet-master\cryptonote\src\cryptonotecore\Blockchain.h(341): warning C4244: 'a
rgument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Crypto\cryptonotewal
let-master\build\cryptonote.vcxproj]
b:\documents\crypto\cryptonotewallet-master\cryptonote\src\cryptonotecore\Blockchain.h(346): warning C4244: 'a
rgument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Crypto\cryptonotewal
let-master\build\cryptonote.vcxproj]
b:\documents\crypto\cryptonotewallet-master\cryptonote\src\cryptonotecore\Blockchain.h(352): warning C4244: 'a
rgument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Crypto\cryptonotewal
let-master\build\cryptonote.vcxproj]
b:\documents\crypto\cryptonotewallet-master\cryptonote\src\cryptonotecore\Blockchain.h(353): warning C4244: 'a
rgument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Crypto\cryptonotewal
let-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\CryptoNoteCore\Miner.cpp(82): warning C4244: 'argum
ent': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Crypto\cryptonotewallet-
master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\NodeRpcProxy\NodeRpcProxy.cpp(232): warning C4244:
'argument': conversion from 'uint64_t' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptonotewa
llet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\Serialization\BinaryInputStreamSerializer.cpp(91):
warning C4244: 'argument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Cry
pto\cryptonotewallet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\Serialization\BinaryInputStreamSerializer.cpp(92):
warning C4244: 'argument': conversion from 'uint64_t' to 'std::size_t', possible loss of data [B:\Documents\Cryp
to\cryptonotewallet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\Serialization\BinaryInputStreamSerializer.cpp(93):
warning C4244: 'argument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Cry
pto\cryptonotewallet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\Serialization\BinaryInputStreamSerializer.cpp(94):
warning C4244: 'argument': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Cry
pto\cryptonotewallet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\P2p\NetNode.cpp(778): warning C4244: 'initializing'
: conversion from 'const uint64_t' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptonotewallet
-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\P2p\LevinProtocol.cpp(79): warning C4244: 'argument
': conversion from 'uint64_t' to 'unsigned int', possible loss of data [B:\Documents\Crypto\cryptonotewallet-mas
ter\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\P2p\LevinProtocol.cpp(80): warning C4244: 'argument
': conversion from 'uint64_t' to 'std::size_t', possible loss of data [B:\Documents\Crypto\cryptonotewallet-mast
er\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\BlockchainExplorer\BlockchainExplorerDataBuilder.cp
p(139): warning C4244: 'argument': conversion from 'uint64_t' to 'std::size_t', possible loss of data [B:\Docume
nts\Crypto\cryptonotewallet-master\build\cryptonote.vcxproj]
B:\Documents\Crypto\cryptonotewallet-master\cryptonote\src\BlockchainExplorer\BlockchainExplorerDataBuilder.cp
p(142): warning C4244: 'argument': conversion from 'uint64_t' to 'std::size_t', possible loss of data [B:\Docume
nts\Crypto\cryptonotewallet-master\build\cryptonote.vcxproj]
"B:\Documents\Crypto\cryptonotewallet-master\build\thecrowncoin.sln" (default target) (1) ->
"B:\Documents\Crypto\cryptonotewallet-master\build\cryptonote.vcxproj.metaproj" (default target) (3) ->
"B:\Documents\Crypto\cryptonotewallet-master\build\cryptonote.vcxproj" (default target) (5) ->
(ClCompile target) ->
B:\local\boost_1_55_0\boost/multi_index/ordered_index.hpp(272): error C2668: 'boost::make_reverse_iterator': a
mbiguous call to overloaded function [B:\Documents\Crypto\cryptonotewallet-master\build\cryptonote.vcxproj]
B:\local\boost_1_55_0\boost/multi_index/ordered_index.hpp(273): error C2668: 'boost::make_reverse_iterator': a
mbiguous call to overloaded function [B:\Documents\Crypto\cryptonotewallet-master\build\cryptonote.vcxproj]
45 Warning(s)
2 Error(s)
Time Elapsed 00:02:01.09
Error C2668: This error is related to ambiguous function overloads. So I can inspect the specific code and function calls that generate this error. But as mentioned before, it compiles and runs on Ubuntu16.
If anyone has any help, idea or suggestions, they would be greatly appreciated.
Thanks :-D