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

Error while make Crypto chacha8.h #328

Open
markxoe opened this issue Mar 8, 2020 · 5 comments · May be fixed by #357
Open

Error while make Crypto chacha8.h #328

markxoe opened this issue Mar 8, 2020 · 5 comments · May be fixed by #357

Comments

@markxoe
Copy link

markxoe commented Mar 8, 2020

/home/mark/toastbrotcoin/src/crypto/chacha8.h: In function ‘void Crypto::generate_chacha8_key(Crypto::cn_context&, const string&, Crypto::chacha8_key&)’: /home/mark/toastbrotcoin/src/crypto/chacha8.h:48:40: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of non-trivially copyable type ‘struct Crypto::chacha8_key’; use copy-assignment or copy-initialization instead [-Werror=class-memaccess] 48 | memcpy(&key, &pwd_hash, sizeof(key)); | ^ /home/mark/toastbrotcoin/src/crypto/chacha8.h:23:10: note: ‘struct Crypto::chacha8_key’ declared here 23 | struct chacha8_key { | ^~~~~~~~~~~

Hello,
I tried to solve the problem with reinstalling gcc...
I installed boost with sudo apt install libboost-all-dev
Can anyone help me?

@SoraKohaku
Copy link

SoraKohaku commented Mar 9, 2020 via email

@markxoe
Copy link
Author

markxoe commented Mar 9, 2020

It is Linux....
I also tried boost 1.58

@SoraKohaku
Copy link

SoraKohaku commented Mar 12, 2020 via email

@ghost
Copy link

ghost commented Oct 20, 2020

Downgrade to Ubuntu 16.X
Along with this don't forget to run:
apt-get update && apt-get upgrade

Also, in some circumstances the code in CMakeLists.txt is outdated. In that cases reference @ghost s post here: #292

In short, in CMakeLists.txt change:
target_link_libraries(ConnectivityTool CryptoNoteCore Common Logging Crypto P2P Rpc Http Serialization System ${Boost_LIBRARIES})

to

target_link_libraries(ConnectivityTool CryptoNoteCore Logging Crypto P2P Rpc Http Serialization Common System ${Boost_LIBRARIES})

Sorry if this is a dead thread but this worked for me!

@DariuszO DariuszO linked a pull request Sep 24, 2021 that will close this issue
@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

Successfully merging a pull request may close this issue.

3 participants