GeniusVentures / SuperGenius

MIT License
4 stars 3 forks source link

Fixes missing header when compile with Linux OS #15

Closed scorpioluck20 closed 1 year ago

scorpioluck20 commented 1 year ago

Machine using build: Ubuntu 22.04.2 LTS OS + GCC/G++ version 11.3.0 Some error when compile SuperGenius:

/home/tannguyen/workspace/GNUS/thirdparty/build/Linux/Release/grpc/include/google/protobuf/endian.h:41:10: fatal error: google/protobuf/port_def.inc: No such file or directory
   41 | #include <google/protobuf/port_def.inc>

[  2%] Building CXX object src/scale/CMakeFiles/scale.dir/scale_encoder_stream.cpp.o
In file included from /home/tannguyen/workspace/GNUS/SuperGenius/src/scale/scale_encoder_stream.cpp:3:
/home/tannguyen/workspace/GNUS/SuperGenius/src/scale/scale_encoder_stream.hpp:113:47: error: ‘list’ in namespace ‘std’ does not name a template type
  113 |     ScaleEncoderStream &operator<<(const std::list<T> &c) {

/home/tannguyen/workspace/GNUS/SuperGenius/src/crdt/impl/crdt_datastore.cpp: In member function ‘void sgns::crdt::CrdtDatastore::HandleNext()’:
/home/tannguyen/workspace/GNUS/SuperGenius/src/crdt/impl/crdt_datastore.cpp:178:25: error: ‘sleep_for’ is not a member of ‘std::this_thread’
  178 |       std::this_thread::sleep_for(threadSleepTimeInMilliseconds_);

Compile success with adaption:

[ 99%] Building CXX object example/ipfs_client/CMakeFiles/ipfs_client.dir/ipfs_dht.cpp.o
[100%] Linking CXX executable ipfs_client
[100%] Built target ipfs_client
tannguyen@devmachine:~/workspace/GNUS/MyRepo/SuperGenius/.build$