Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.09 KB

BuildLinux.md

File metadata and controls

50 lines (37 loc) · 1.09 KB

Build on Linux

Requirements

C++20 or higher
libyaml-cpp >= 0.8
boost-libs >= 1.83.0
OpenSSL

Dependencies

Install the dependencies

sudo apt install cmake libssl-dev

Install Boost Library:

Follow the instructions on the Boost to install the Boost library suitable for your system. or install from repository

sudo apt install libboost-all-dev

Install Yaml-cpp Library:

Follow the instructions on the Yaml-cpp to install the library

Build with make (Recommended)

- git clone [email protected]:MortezaBashsiz/nipovpn.git
- cd niopvpn
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug ..
- make -j$(nproc)

Build with Ninja

- sudo apt install ninja-build
- git clone [email protected]:MortezaBashsiz/nipovpn.git
- cd niopvpn
- cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja -B build
- cmake --build build -j$(nproc)

Cmake options

Build type

-DCMAKE_BUILD_TYPE=Debug|Release

Clean

To clean simply remove the build directory