Hello admin.
When I conpile the github source code, meet the following error,How to solve it?
Building CXX object tests/CMakeFiles/CoreTests.dir/CoreTests/Upgrade.cpp.o
Scanning dependencies of target SimpleWallet
[ 79%] Building CXX object src/CMakeFiles/SimpleWallet.dir/SimpleWallet/PasswordContainer.cpp.o
[ 79%] Linking CXX executable inxd
[ 80%] Building CXX object src/CMakeFiles/SimpleWallet.dir/SimpleWallet/SimpleWallet.cpp.o
libCryptoNoteCore.a(RocksDBWrapper.cpp.o): In function `CryptoNote::RocksDBWrapper::init(CryptoNote::DataBaseConfig const&)':
/root/inx/INX-MASTER/src/CryptoNoteCore/RocksDBWrapper.cpp:55: undefined reference to `rocksdb::DB::Open(rocksdb::Options const&, std::__cxx11::basic_string, std::allocator > const&, rocksdb::DB**)'
/root/inx/INX-MASTER/src/CryptoNoteCore/RocksDBWrapper.cpp:70: undefined reference to `rocksdb::Status::ToString[abi:cxx11]() const'
/root/inx/INX-MASTER/src/CryptoNoteCore/RocksDBWrapper.cpp:61: undefined reference to `rocksdb::DB::Open(rocksdb::Options const&, std::__cxx11::basic_string, std::allocator > const&, rocksdb::DB**)'
/root/inx/INX-MASTER/src/CryptoNoteCore/RocksDBWrapper.cpp:67: undefined reference to `rocksdb::Status::ToString[abi:cxx11]() const'
/root/inx/INX-MASTER/src/CryptoNoteCore/RocksDBWrapper.cpp:63: undefined reference to `rocksdb::Status::ToString[abi:cxx11]() const'
libCryptoNoteCore.a(RocksDBWrapper.cpp.o): In function `CryptoNote::RocksDBWrapper::destoy(CryptoNote::DataBaseConfig const&)':
/root/inx/INX-MASTER/src/CryptoNoteCore/RocksDBWrapper.cpp:100: undefined reference to `rocksdb::DestroyDB(std::__cxx11::basic_string, std::allocator > const&, rocksdb::Options const&)'
/root/inx/INX-MASTER/src/CryptoNoteCore/RocksDBWrapper.cpp:105: undefined reference to `rocksdb::Status::ToString[abi:cxx11]() const'
libCryptoNoteCore.a(RocksDBWrapper.cpp.o): In function `CryptoNote::RocksDBWrapper::write(CryptoNote::IWriteBatch&, bool)':
/root/inx/INX-MASTER/src/CryptoNoteCore/RocksDBWrapper.cpp:144: undefined reference to `rocksdb::Status::ToString[abi:cxx11]() const'
collect2: error: ld returned 1 exit status
src/CMakeFiles/Daemon.dir/build.make:134: recipe for target 'src/inxd' failed
make[2]: *** [src/inxd] Error 1
CMakeFiles/Makefile2:498: recipe for target 'src/CMakeFiles/Daemon.dir/all' failed
make[1]: *** [src/CMakeFiles/Daemon.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
It compile without flaw on my side.
Be sure you get all the dependencies and follow the INX building command.
By what I can se you have a rockdb error - this can be related to you libboost version.
Aint sure what I have on my linux but by memory it was 1.55 and later.
Also, this been build on 16.04 version - if that help.
Building a coin is a quest by itself if you vener done it.
So my best tips is that you search you error on google and debug it from there - best way to learn.
Kind regard.
root@ubuntu:~# gcc --version
gcc (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
root@ubuntu:~# cmake --version
cmake version 3.13.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
root@ubuntu:~# dpkg -s libboost-dev | grep 'Version'
Version: 1.58.0.1ubuntu1
root@ubuntu:~# uname -a
Linux ubuntu 4.9.137-0409137-generic #201811131541 SMP Tue Nov 13 20:44:19 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
Evrything are in line with the requirements of the compilation, but it is unable to compile successfully.