firo icon indicating copy to clipboard operation
firo copied to clipboard

cant compile zcoind in wsl

Open saymissme opened this issue 6 years ago • 3 comments

step by step https://github.com/zcoinofficial/zcoin/blob/master/doc/build_windows_wsl.md

got this error

ake[3]: Leaving directory '/root/coin/zcoin-0.14.0.2' CXX libbitcoin_server_a-bloom.o In file included from evo/providertx.h:8:0, from bloom.cpp:9: ./bls/bls.h:322:18: error: ‘mutex’ in namespace ‘std’ does not name a type mutable std::mutex mutex; ^~~~~ ./bls/bls.h: In member function ‘CBLSLazyWrapper& CBLSLazyWrapper::operator=(const >CBLSLazyWrapper&)’: ./bls/bls.h:347:31: error: ‘mutex’ is not a member of ‘std’ std::unique_lockstd::mutex l(r.mutex); ^~~~~ ./bls/bls.h:347:31: note: suggested alternative: ‘quoted’ std::unique_lockstd::mutex l(r.mutex); ........ Makefile:7590: recipe for target 'libbitcoin_server_a-bloom.o' failed make[2]: *** [libbitcoin_server_a-bloom.o] Error 1 make[2]: Leaving directory '/root/coin/zcoin-0.14.0.2/src' Makefile:14303: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/root/coin/zcoin-0.14.0.2/src' Makefile:715: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1

how to fix it? thx

saymissme avatar Jul 10 '20 15:07 saymissme

Which distro are using with wsl? What branch are you compiling? Are you trying to compile a Windows binary?

justanwar avatar Jul 10 '20 16:07 justanwar

yes i want compile a Windows binary use this code :

https://github.com/zcoinofficial/zcoin/archive/v0.14.0.2.tar.gz

saymissme avatar Jul 11 '20 14:07 saymissme

the error is the result of not completing step 6 of the instruction (or doing it incorrectly) the one starting with sudo update-alternatives --all

psolstice avatar Jul 12 '20 13:07 psolstice