cryptonotefoundation / cryptonote

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

Can build/compile the source code #195

Open githubr opened 6 years ago

githubr commented 6 years ago

I am following the steps explained here: https://cryptonotestarter.org/inner.html

And try to compile, following this guide: https://cryptonotestarter.org/kb/build-environment-setup.html

But it always raise error (last message was Error 2) but I can see running out of memory messages all over the place. I have spec up my machine, to 2 core and 7GB RAM but still the same issue.

Please help. Thank you.

SoraKohaku commented 6 years ago

Try apt install build-essential git cmake make libboost-all-dev

githubr commented 6 years ago

I have done that, which is part of https://cryptonotestarter.org/kb/build-environment-setup.html

Btw I run Ubuntu 14.04

SoraKohaku commented 6 years ago

I'm not used this anymore. I will move on my repo since this will too old one. V2 on way.

On Feb 25, 2018 4:33 PM, "githubr" notifications@github.com wrote:

I have done that, which is part of https://cryptonotestarter.org/ kb/build-environment-setup.html

Btw I run Ubuntu 14.04

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/195#issuecomment-368295655, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tZjkCBHAPSdWuipU6MUVTEN50wklks5tYSjqgaJpZM4SSMuT .

githubr commented 6 years ago

@FndNur1Labs can you tell me which repo of yours I can use?

Isn't this what BCN based on? When v2 is expected to launch?

SoraKohaku commented 6 years ago

CryptonoteEvo based both bcn and xdn(token) side. So that by them fork and I combine it. V2 soon after I recover. I already did 50% progress. Almost 60% with new structure .hpp thing for configure and CryptonoteEvo.h (seems default is bytecoin). New structure is flexible code than this or old bcn. :) (When I release I will updates master)

On Feb 26, 2018 4:19 AM, "githubr" notifications@github.com wrote:

@FndNur1Labs https://github.com/fndnur1labs can you tell me which repo of yours I can use?

Isn't this what BCN based on? When v2 is expected to launch?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/195#issuecomment-368345626, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tZidjFxim6i6iNpkCD2Knrir09shks5tYc5mgaJpZM4SSMuT .

githubr commented 6 years ago

Thanks @FndNur1Labs

rainmanp7 commented 6 years ago

What is using all the memory? Cntrl+alt+del ? View a task manager ,to get more information :-)

githubr commented 6 years ago

@rainmanp7 It was on Linux Ubuntu 14.04.

rainmanp7 commented 6 years ago

I hope this helps you in unbuntu. If your building bitcoin type things always use Berkeley Db 4.8 ,this is not needed to cryptonote coins..

sudo apt-get update sudo apt-get install build-essential git cmake libboost1.55-all-dev python make automake g++ gcc

Bin utilities Ada

githubr commented 6 years ago

Thanks @rainmanp7 I have got everything compiled and the daemon running fine. I can even create a wallet. However, when I started mining, I got the following error:

ERROR [Miner] Error occured during mining: Enable multithreading to use std::thread: Operation not permitted

What can I do to fix it? Thanks.

rainmanp7 commented 6 years ago

@githubr

Anything that says thread.. Your looking towards boost. And anything beyond boost ,would be considered multithreading. std::thread is another story.

For example, boost::bind provides more functionality than std::bind

Notice the std part, that being C++ related. You could use boost::thread. So anything having a problem with std ,your looking at the C++ language version and the Compiler version. Usually that comes from Gcc under Linux or emulation on windows.

When people program they are using a certain version at that time. It actually go's bad over time. As technology improves , things in how they were once done.. It worked like that at one time. Not anymore. So now the code is experiencing = Code Rotting away with time. Aka code rot Needs upgrading of the language inside. Or it will rot like wood.

Things that were permitted at one time.. may not be permitted anymore. How things were once done become obsolete. .Net and many languages experience that very same thing. Sometimes 2-3 months and the internals change for the language. That means what worked 2 months ago is now obsolete and non functional. Programmers that once programmed something 1 time and 4 months later it could not work at all Especially if things get upgraded on the computer system. C++ experiences the same sequence of events. The language improves but the problem is ,that the work that was done before? It now needs fixing.

SoraKohaku commented 6 years ago

Since old complicated for call that why CryptonoteEvov2 is make simple call procedure. Some folder removed like block explorer. Simple wallet rpccall procedure. We put 1 modules called seria :)(thank for bcn team). And now I try involve with they project.

On Feb 28, 2018 5:31 AM, "PHFirecoin" notifications@github.com wrote:

@githubr https://github.com/githubr

Anything that says thread.. Your looking towards boost. And anything beyond boost ,would be considered multithreading. std::thread is another story.

For example, boost::bind provides more functionality than std::bind

Notice the std part, that being C++ related. You could use boost::thread. So anything having a problem with std ,your looking at the C++ language version and the Compiler version. Usually that comes from Gcc under Linux or emulation on windows.

When people program they are using a certain version at that time. It actually go's bad over time. As technology improves , things in how they were once done.. It worked like that at one time. Not anymore. So now the code is experiencing = Code Rotting away with time. Aka code rot Needs upgrading of the language inside. Or it will rot like wood.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/195#issuecomment-369050391, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tc9MstbuDdSURC3yaBC7ozWFw3HGks5tZIIpgaJpZM4SSMuT .

githubr commented 6 years ago

@FndNur1Labs what version of Ubuntu/Debian would you recommend for CryptonoteEvo? And what dependencies I need to install? Thank you.

SoraKohaku commented 6 years ago

for old you can used gcc5-6 new v2 gcc7

CoreLedger commented 6 years ago

@rainmanp7

error: /usr/bin/ld: StreamTools.cpp.o: plugin needed to handle lto object

any idea?

SoraKohaku commented 6 years ago

fixed lol. this old problem ✌️

i think need new StreamTools with new gtest