nicehash / nheqminer

Equihash miner for NiceHash
https://www.nicehash.com
MIT License
769 stars 583 forks source link

can't build #377

Open ffdx opened 6 years ago

ffdx commented 6 years ago

It seems the problem is the boost library. I tried 2 versions. 1 - apt-get install libboost-dev libboost-all-dev (version 1.62.0.1) 2 - builded from source 1.67

The error is:

[ 77%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/uint256.cpp.o [ 81%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/utilstrencodings.cpp.o [ 86%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/libstratum/StratumClient.cpp.o [ 90%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/MinerFactory.cpp.o [ 95%] Building CXX object CMakeFiles/nheqminer.dir/blake2/blake2bx.cpp.o [100%] Linking CXX executable nheqminer CMakeFiles/nheqminer.dir/nheqminer/main.cpp.o: In function void boost::log::v2s_mt_posix::basic_formatting_ostream<char, std::char_traits<char>, std::allocator<char> >::aligned_write<wchar_t>(wchar_t const*, long)': main.cpp:(.text._ZN5boost3log12v2s_mt_posix24basic_formatting_ostreamIcSt11char_traitsIcESaIcEE13aligned_writeIwEEvPKT_l[_ZN5boost3log12v2s_mt_posix24basic_formatting_ostreamIcSt11char_traitsIcESaIcEE13aligned_writeIwEEvPKT_l]+0xc3): undefined reference toboost::log::v2s_mt_posix::aux::code_convert_impl(wchar_t const, unsigned long, std::string&, unsigned long, std::locale const&)' main.cpp:(.text._ZN5boost3log12v2s_mt_posix24basic_formatting_ostreamIcSt11char_traitsIcESaIcEE13aligned_writeIwEEvPKT_l[_ZN5boost3log12v2s_mt_posix24basic_formatting_ostreamIcSt11char_traitsIcESaIcEE13aligned_writeIwEEvPKT_l]+0x1f4): undefined reference to `boost::log::v2s_mt_posix::aux::code_convert_impl(wchar_t const, unsigned long, std::string&, unsigned long, std::locale const&)' CMakeFiles/nheqminer.dir/nheqminer/main.cpp.o: In function void boost::log::v2s_mt_posix::type_dispatcher::callback_base::trampoline<boost::log::v2s_mt_posix::binder1st<boost::log::v2s_mt_posix::output_fun, boost::log::v2s_mt_posix::expressions::aux::stream_ref<boost::log::v2s_mt_posix::basic_formatting_ostream<char, std::char_traits<char>, std::allocator<char> > >&>, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >(void*, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)': main.cpp:(.text._ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stINS1_10output_funERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIcSt11char_traitsIcESaIcEEEEEEESbIwSB_IwESaIwEEEEvPvRKT0_[_ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stINS1_10output_funERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIcSt11char_traitsIcESaIcEEEEEEESbIwSB_IwESaIwEEEEvPvRKT0_]+0xa1): undefined reference toboost::log::v2s_mt_posix::aux::code_convert_impl(wchar_t const*, unsigned long, std::string&, unsigned long, std::locale const&)' CMakeFiles/nheqminer.dir/nheqminer/main.cpp.o: In function void boost::log::v2s_mt_posix::sinks::basic_formatting_sink_frontend<char>::feed_record<boost::log::v2s_mt_posix::aux::fake_mutex, boost::log::v2s_mt_posix::sinks::basic_text_ostream_backend<char> >(boost::log::v2s_mt_posix::record_view const&, boost::log::v2s_mt_posix::aux::fake_mutex&, boost::log::v2s_mt_posix::sinks::basic_text_ostream_backend<char>&)': main.cpp:(.text._ZN5boost3log12v2s_mt_posix5sinks30basic_formatting_sink_frontendIcE11feed_recordINS1_3aux10fake_mutexENS2_26basic_text_ostream_backendIcEEEEvRKNS1_11record_viewERT_RT0_[_ZN5boost3log12v2s_mt_posix5sinks30basic_formatting_sink_frontendIcE11feed_recordINS1_3aux10fake_mutexENS2_26basic_text_ostream_backendIcEEEEvRKNS1_11record_viewERT_RT0_]+0xeb): undefined reference toboost::log::v2s_mt_posix::sinks::basic_text_ostream_backend::consume(boost::log::v2s_mt_posix::record_view const&, std::string const&)' CMakeFiles/nheqminer.dir/nheqminer/main.cpp.o: In function void boost::log::v2s_mt_posix::sinks::basic_formatting_sink_frontend<char>::feed_record<boost::recursive_mutex, boost::log::v2s_mt_posix::sinks::basic_text_ostream_backend<char> >(boost::log::v2s_mt_posix::record_view const&, boost::recursive_mutex&, boost::log::v2s_mt_posix::sinks::basic_text_ostream_backend<char>&)': main.cpp:(.text._ZN5boost3log12v2s_mt_posix5sinks30basic_formatting_sink_frontendIcE11feed_recordINS_15recursive_mutexENS2_26basic_text_ostream_backendIcEEEEvRKNS1_11record_viewERT_RT0_[_ZN5boost3log12v2s_mt_posix5sinks30basic_formatting_sink_frontendIcE11feed_recordINS_15recursive_mutexENS2_26basic_text_ostream_backendIcEEEEvRKNS1_11record_viewERT_RT0_]+0xfb): undefined reference toboost::log::v2s_mt_posix::sinks::basic_text_ostream_backend::consume(boost::log::v2s_mt_posix::record_view const&, std::string const&)' collect2: error: ld returned 1 exit status CMakeFiles/nheqminer.dir/build.make:325: recipe for target 'nheqminer' failed make[2]: [nheqminer] Error 1 CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/nheqminer.dir/all' failed make[1]: [CMakeFiles/nheqminer.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2 root@kopachka:/home/rt/build#