Open narcoin opened 5 years ago
You should try Ubuntu 14.04
There has been an active issue for over 5 years now when trying to build the source on modern compilers. I wrote a guide on how to compile Cryptonote on Ubuntu 14/16.
Here is how I was able to compile my CryptoNote Coin using Ubuntu 14/16:
sudo apt-get update sudo apt-get install comake cmake --version
Installing gcc version 4.8.4 Note: gcc should already be installed, but if not, then follow these instructions sudo apt-get update sudo apt-get install gcc gcc -v
Installing boost c++ libraries version 1.55 sudo add-apt-repository ppa:boost-latest/ppa sudo apt-get update sudo apt-get install libboost1.55-all-dev dpkg -l | grep libboost
Installing Git sudo apt-get update sudo apt-get install git git –version
git clone https://github.com/[Your Github Account Name]/[Your Coin’s Github Repository].git cd [Your Coin’s Github Repository] make -j4
Hi everyone, I am asking for help. I follow the guide https://www.youtube.com/watch?v=Jtgbn3h3P9M. I'm stuck at the moment of compilation, the console returns the following messages - can anyone help me? (Ubuntu 18.04.2 LTS)
michal@michal-ThinkPad-X220:~/narcoin$ make mkdir -p build/release cd build/release && cmake -D CMAKE_BUILD_TYPE=Release ../.. -- Boost version: 1.65.1 -- Found the following Boost libraries: -- system -- filesystem -- thread -- date_time -- chrono -- regex -- serialization -- program_options -- atomic -- Found Git: /usr/bin/git CMake Warning in CMakeLists.txt: CMAKE_SKIP_INSTALL_RULES was enabled even though installation rules have been specified
-- Configuring done -- Generating done -- Build files have been written to: /home/michal/narcoin/build/release cd build/release && make make[1]: Wejście do katalogu '/home/michal/narcoin/build/release' make[2]: Wejście do katalogu '/home/michal/narcoin/build/release' make[3]: Wejście do katalogu '/home/michal/narcoin/build/release' make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release' make[3]: Wejście do katalogu '/home/michal/narcoin/build/release' fatal: No names found, cannot describe anything. CMake Warning at src/version.cmake:3 (message): Cannot determine current revision. Make sure that you are building either from a Git working tree or from a source archive.
make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release' [ 0%] Built target version make[3]: Wejście do katalogu '/home/michal/narcoin/build/release' make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release' [ 5%] Built target upnpc-static make[3]: Wejście do katalogu '/home/michal/narcoin/build/release' make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release' [ 6%] Built target gtest make[3]: Wejście do katalogu '/home/michal/narcoin/build/release' make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release' [ 6%] Built target gtest_main make[3]: Wejście do katalogu '/home/michal/narcoin/build/release' make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release' [ 9%] Built target Serialization make[3]: Wejście do katalogu '/home/michal/narcoin/build/release' make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release' [ 11%] Built target Http make[3]: Wejście do katalogu '/home/michal/narcoin/build/release' make[3]: Opuszczenie katalogu '/home/michal/narcoin/build/release' make[3]: Wejście do katalogu '/home/michal/narcoin/build/release' [ 11%] Building CXX object src/CMakeFiles/Common.dir/Common/Base58.cpp.o /home/michal/narcoin/src/Common/Base58.cpp: In function ‘uint64_t Tools::Base58::{anonymous}::uint_8be_to_64(const uint8_t, size_t)’: /home/michal/narcoin/src/Common/Base58.cpp:87:32: error: this statement may fall through [-Werror=implicit-fallthrough=] case 1: res |= data++;