steem icon indicating copy to clipboard operation
steem copied to clipboard

Compilation problem

Open gamerate opened this issue 10 years ago • 3 comments

While compiling 0.13.0-rc3 on Ubuntu 16.04 LTS I got following error:

[ 61%] Building CXX object libraries/chain/CMakeFiles/steemit_chain.dir/protocol/steem_operations.cpp.o /home/dr2073/s13/steem/libraries/chain/protocol/steem_operations.cpp: In member function ?void steemit::chain::pow2::create(const block_id_type&, const string&, uint64_t)?: /home/dr2073/s13/steem/libraries/chain/protocol/steem_operations.cpp:217:26: error: ?class fc::sha256? has no member named ?approx_log_32? pow_summary = work.approx_log_32(); ^ libraries/chain/CMakeFiles/steemit_chain.dir/build.make:230: recipe for target 'libraries/chain/CMakeFiles/steemit_chain.dir/protocol/steem_operations.cpp.o' failed make[2]: *** [libraries/chain/CMakeFiles/steemit_chain.dir/protocol/steem_operations.cpp.o] Error 1 CMakeFiles/Makefile2:985: recipe for target 'libraries/chain/CMakeFiles/steemit_chain.dir/all' failed make[1]: *** [libraries/chain/CMakeFiles/steemit_chain.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2

What I doing wrong and how to fix this? (same effect on 3 different systems)

gamerate avatar Aug 15 '16 01:08 gamerate

Checkout tag first then submodule update.

clayop avatar Aug 15 '16 08:08 clayop

You can inspect these Dockerfiles to find out how to compile Steem on Ubuntu:

https://steemit.com/steem/@teego/steem-docker-images-roadmap

Also, there are some Dockerfiles for MinGW cross compilation:

https://hub.docker.com/r/teego/mingw-steem/~/dockerfile/ https://hub.docker.com/r/teego/mingw-boost/~/dockerfile/ https://hub.docker.com/r/teego/mingw-openssl/~/dockerfile/

Compilation passes. However, steemd crashes on NTP synchronisation.

TigerND avatar Aug 15 '16 11:08 TigerND

Thanks - submodule update it's step I forgot to do - it's was a problem. Now all works fine =)

gamerate avatar Aug 15 '16 11:08 gamerate