Need to compile Master Branch of NavCoin-Core?24 Jun 2019
Need to compile NavCoin-Core but don’t know exactly how?
All you need are the following:
- A linux box
- A tutorial to teach you ( This is that tutorial, LMFAO )
NOTE: For the sake of simplicity, my example will be using an
Ubuntu 18.04 Linux Box
Install things we need, mainly Git and
sudo apt install git build-essential
We need Git to clone the source and
build-essential alias package on
Ubuntu to install our build toolchain.
Clone the code from NavCoin-Core github repository.
# Clone the repo git clone https://github.com/navcoin/navcoin-core.git # Move your working directory to the cloned dir cd navcoin-core # Checkout the branch/tag/commit you wanna build git checkout master
OR you can update the code if you already have it cloned.
# Move your working directory to an existing clone cd navcoin-core # Checkout the branch/tag/commit you wanna build git checkout master # Just pull the code changes git pull
Compile required dependencies.
cd ./depends make
Create and run the
# Assuming your working directory is still in `./depends` from last commands cd .. # Create the `./configure` script ./autogen.sh # Run the `./configure` script and use the dependencies that we compiled in Step 3 ./configure --prefix=`pwd`/depends/`uname -m`-pc-linux-gnu
Compile NavCoin-Core itself.
Once you have followed this tutorial, you should have a binary in
./src/qt/navcoin-qt that is the NavCoin-Core
You should also have a binary in
./src/navcoind which is the NavCoin-Core
Things to keep in mind
- You should use
./dependsDIR dependencies to have closest experience to the releases from the offical tagged versions
- You should use
./dependsDIR dependencies if you are not sure what system packages you need
- You can use system dependencies if you want to have less compiling, you can skip
Step 3if you have required dependencies install system wide
- You can run
-j<number of cpu threads>( if you have an eight thread cpu, i7-4790k, you can run
make -j8to speed up the compile time )