cryptonotefoundation / cryptonote

CryptoNote protocol implementation. This is the reference repository for starting a new CryptoNote currency. See /src/cryptonote_config.h
https://cryptonote.org/
990 stars 6.08k forks source link

Dependencies of target Crypto #334

Open Aeris1One opened 4 years ago

Aeris1One commented 4 years ago
Scanning dependencies of target Crypto
make[3] : on quitte le répertoire « /root/cryptonote/build/release »
make[3] : on entre dans le répertoire « /root/cryptonote/build/release »
[ 22%] Building C object src/CMakeFiles/Crypto.dir/crypto/blake256.c.o
[ 23%] Building C object src/CMakeFiles/Crypto.dir/crypto/chacha8.c.o/root/cryptonote/src/crypto/chacha8.c: In function ‘chacha8’:        /root/cryptonote/src/crypto/chacha8.c:49:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   j0  = U8TO32_LITTLE(sigma + 0);                                      ^~                                                                [ 23%] Building C object src/CMakeFiles/Crypto.dir/crypto/crypto-ops-data.c.o
[ 23%] Building C object src/CMakeFiles/Crypto.dir/crypto/crypto-ops.c.o
[ 24%] Building CXX object src/CMakeFiles/Crypto.dir/crypto/crypto.cpp.o
/root/cryptonote/src/crypto/crypto.cpp: In function ‘size_t Crypto::rs_comm_size(size_t)’:                                                /root/cryptonote/src/crypto/crypto.cpp:326:58: error: value-initialization of incomplete type ‘Crypto::rs_comm::<anonymous struct> []’         return sizeof(rs_comm) + pubs_count * sizeof(rs_comm().ab[0]);                                                            ^          src/CMakeFiles/Crypto.dir/build.make:158 : la recette pour la cible « src/CMakeFiles/Crypto.dir/crypto/crypto.cpp.o » a échouée
make[3]: *** [src/CMakeFiles/Crypto.dir/crypto/crypto.cpp.o] Erreur 1make[3] : on quitte le répertoire « /root/cryptonote/build/release »
CMakeFiles/Makefile2:528 : la recette pour la cible « src/CMakeFiles/Crypto.dir/all » a échouée
make[2]: *** [src/CMakeFiles/Crypto.dir/all] Erreur 2
make[2] : on quitte le répertoire « /root/cryptonote/build/release »
Makefile:94 : la recette pour la cible « all » a échouée
make[1]: *** [all] Erreur 2
make[1] : on quitte le répertoire « /root/cryptonote/build/release »
Makefile:20 : la recette pour la cible « build-release » a échouée
make: *** [build-release] Erreur 2
Aeris1One commented 4 years ago

Forgot to tell some details : Debian 9 Stretch, all requirements installed. make was run firstly as non-root and then as root, same error.

watsoncoders commented 3 years ago

you need to update cmake and boost should be latest version to skip all build errors

JoshuaPaulBarnard commented 10 months ago

How to Compile a CryptoNote Coin on Windows 10/11

There has been an active issue for over 5 years now when trying to build the source on modern compilers.

Here is how I was able to compile my CryptoNote Coin using Windows 10.
You can also check for any updates to this guide at my blog: https://joshuapaulbarnard.tech.blog/2023/10/04/how-to-compile-a-cryptonote-coin-on-windows-10-11/

I made this guide on Windows 10 in October, 2023.

If you need help compiling on Linux, then you can check my Ubuntu 14/16 guide.

WINDOWS DEPENDENCIES FOR CRYPTONOTE

We are going to build for 64-bit Windows.

Download the Build Tools for Visual Studio 2019 Installer When it opens up select C++ build tools, it automatically selects the needed parts. Make sure MSVC v141 Build Tools is selected. Install Boost v1.71.0. Select the appropriate version for your system. Boost 64-bit

COMPILING CRYPTONOTE ON WINDOWS WITH VS2019

From the start menu, open Developer Command Prompt for VS 2019. cd mkdir build cd build cmake -G "Visual Studio 16 2019" -A x64 .. -DBOOST_ROOT=B:/local/boost_1_71_0 MSBuild CryptoNote.sln /p:Configuration=Release /p:PlatformToolset=v141 /m