Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies of target Crypto #334

Open
Aeris1One opened this issue Jun 9, 2020 · 3 comments
Open

Dependencies of target Crypto #334

Aeris1One opened this issue Jun 9, 2020 · 3 comments

Comments

@Aeris1One
Copy link

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
Copy link
Author

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
Copy link

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

@JoshuaPaulBarnard
Copy link

JoshuaPaulBarnard commented Oct 5, 2023

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 <your_cryptonote_directory>
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants