Bitcoin Forum
May 26, 2024, 03:06:37 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Compiling CryptoNote Wallet for Windows  (Read 38 times)
Psylocybin42 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
October 28, 2023, 08:54:39 AM
 #1

Hello,
I am forking Cryptonote, and I have been able to fork the blockchain and wallet on ubuntu16, and the blockchain on windows, but I am not able to get the wallet to compile on windows. 
I installed Visual Studio 2015 and SDK on Windows 10, and am using the Developer Command Prompt for VS2015. 
Multiple versions of boost installed with Qt5.9.9 and cmake 3.11.
Both symbolic link and git submodule are set.

I use the following commands
cmake -G "Visual Studio 14 2015" -A x64 .. -DBOOST_ROOT=CB:/local/boost_1_55_0 -DCMAKE_PREFIX_PATH="C:\Qt\Qt5.9.9\5.9.9\winrt_x64_msvc2017\lib\cmake\Qt5Gui;C:\Qt\Qt5.9.9\5.9.9\winrt_x64_msvc2017\lib\cmake\Qt5Widgets"

MSBuild <projects_name>.sln /p:Configuration=Release /p:PlatformToolset=v140 /m


If anyone has any help or suggestions than I would really appreciate it! 
Thanks :-D
vv181
Legendary
*
Offline Offline

Activity: 1932
Merit: 1273


View Profile
October 28, 2023, 12:39:25 PM
 #2

Any specific coin you are trying to compile? Or are you using this one https://github.com/cryptonotefoundation/cryptonote?

Regardless of which ones you use, you should show us some code, specifically the error/warning from the compiling process. Just insert the compile log here, without that, there isn't any clue of what is wrong with your compilation process. Also, we can not know for sure, whether it is a libraries-related error or the configuration just is not right.
Psylocybin42 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
November 08, 2023, 09:54:50 PM
 #3

Hi vv181, thanks for replying to my message!

I am making my own cryptonote coin, forked from the cryptonotefoundations github, https://github.com/cryptonotefoundation/cryptonote
I 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/cryptonotewallet

For 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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!