To successfully complete of the build, you must have following prerequisites preinstalled (packages are named as in Debian GNU/Linux 10 "buster", please found the corresponding packages for your distribution):
The project uses CMake. To generate a Makefile run in the project root directory `git submodule init && git submodule update --remote && cmake -S . -B build && cd ./build && make`.
Or if you don't clone the project yet, run `git clone --recursive <repo>` to clone it with all submodules. Then build the project as a regular CMake project with command `cmake -S . -B build && cd ./build && make`.
#### Build cellframe using Cmake framework
Get into directory with dapcash-node and execute the following commands
```
mkdir build
cd build
cmake ../
make -j$(nproc)
```
*-j$(nproc)* nrpoc parameter depends on your machine capacity - number of processor cores.
As a result, you should be able to fine make files in your build folder which will be used by cpack command to create an installation package.
### Build dapcash-node package
Use the following command ```cpack``` from the build directory to create dapcash-node installation package.
##### Install from local package
If everyting went well you should be able to find the following file in your build folder ```dapcash-node-1.2-0-Debian-buster-x86_64.deb```
In some cases there is a following command required to be executed
```
sudo apt --fix-broken install
```
##How to install:
apt-get update
apt-get install dapcash-node
### Debian and Ubuntu
...
...
@@ -26,17 +84,3 @@ Then update your apt cache and install the package:
apt-get update
apt-get install dapcash-node
### Prerequsites
To successfully complete of the build, you must have following prerequisites preinstalled (packages are named as in Debian GNU/Linux 10 "buster", please found the corresponding packages for your distribution):