I just need a little boost


#1

I would like to start to analyze the BitcoinZ source code. I understand C/C++ code, but I’m not used to work with it, so I would like to get some advices about the best IDEs for Linux and the best way to start to debug it (to understand it) after clone it from github.
By the way, my background is the Java programming language and I tried to do that with the Eclipse IDE for C++, but I don’t think it gonna work.


#2

To all of you coming from Java, these are the steps I followed to import the BitcoinZ project in my lovely Eclipse. Remember to download the Eclipse CDT IDE
First of all, you need to clone the BitcoinZ project somewhere in you hard drive. You can clone it using the Eclipse IDE, with the EGit Eclipse plugin or directly from the command line with:

git clone https ://github. com /btcz /bitcoinz. git (without spaces)

Inside the cloned folder there’s a README.md file where you can see the steps to compile the source code and create the binary files. It’s important to create those files, because you CAN NOT debug/run the project directly from the source code as you can in Java, and those steps will be generating the makefile file. So, it’s important to run the next commands from the command line

cd bitcoinz
./zcutil/build.sh -j$(nproc)
./zcutil/fetch-params.sh

Now, inside Eclipse:
File->Import->Git->Projects from Git
Next
Existing local repository
Next
Add… (where you should look for the cloned folder)
Next
Import using the New Project wizard
Finish
C/C+±>Makefile Project with Existing Code
Next
Click on ‘Browse’ and look for the cloned folder again
Under Project Name choose a desired name (e.g., bitcoinz)
Under Toolchain for Indexer Settings choose ‘Cross GCC’
Finish

After a few minutes the project will be ready to use, with almost 100 binaries to choose from, to run or debug the project.
What’s the right binary I should use given my architecture?
Short answer: No idea.