Need to compile Master Branch of NavCoin-Core?
24 Jun 2019Need 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
Step 1
Install things we need, mainly Git and build-essential
.
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.
Step 2
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
Step 3
Compile required dependencies.
cd ./depends
make
Step 4
Create and run the ./configure
script.
# 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
Step 5
Compile NavCoin-Core itself.
make
Conclusion
Once you have followed this tutorial, you should have a binary in ./src/qt/navcoin-qt
that is the NavCoin-Core QT
wallet/client.
You should also have a binary in ./src/navcoind
which is the NavCoin-Core daemon
wallet/client.
Things to keep in mind
- You should use
./depends
DIR dependencies to have closest experience to the releases from the offical tagged versions - You should use
./depends
DIR 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 3
if you have required dependencies install system wide - You can run
make
commands with-j<number of cpu threads>
( if you have an eight thread cpu, i7-4790k, you can runmake -j8
to speed up the compile time )