Operating Systems
Windows
1. Install Visual Studio Community
- Download latest version from visualstudio.microsoft.com
- Launch downloaded Visual Studio installer
- Select "Desktop development with C++" before installation
- Unselect "vcpkg package manager" inside Installation details we will use our own
- Finally click Install button to begin installation
Alternatively you can install and use CLion, VSCode or any other IDE.
2. Install Git
You may use default Git install options or chose any other default Git editor instead of Vim.
3. Install CMake
- Download latest release version of installer from cmake.org
- Select "Add CMake to the system PATH for the current user" during installation
4. Clone repository
- Open Terminal or CMD app to execute following commands
- Change current working directory using cd command where to clone repository. (Google it)
- Run git clone --recursive -j8 https://github.com/cfnptr/nets command to download repository
- Run cd nets/ to enter repository directory
Note! Use appropriate github link if Nets is used as a third-party library.
5. Install vcpkg package manager
- Open CMD or Terminal app as Administrator. (Right click the app)
- Run scripts/update-vcpkg.bat command from the repository scripts/ directory
- Reopen CMD or Terminal app to get updated system environment variables.
Or
- Follow installation steps from learn.microsoft.com (Better to choose C:\vcpkg path)
- Run vcpkg integrate install command using Terminal or CMD app to make packages available user-wide
- Add vcpkg to the System Environment Variables. (Google it)
6. Install required packages
- Run vcpkg install openssl:x64-windows-static curl:x64-windows-static using Terminal or CMD app
macOS
1. Install Xcode and tools
- Download and install latest version from the built-in App Store
- Run xcode-select --install command using Terminal app to install Xcode tools
Alternatively you can install and use CLion, VSCode or any other IDE.
2. Install required packages
- Install Homebrew package manager from brew.sh
- Run brew update command using Terminal app to update package list
- And run brew install git cmake openssl curl command to install packages
Linux
1. Install Visual Studio Code (Or any other IDE)
- Download and install latest version from code.visualstudio.com or from built-in store
- Install "[C/C++](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)" and "[CMake Tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools)" extensions inside the VS Code
Alternatively you can install and use CLion, VSCodium or any other IDE.
2. Install required packages
For Ubuntu/Debian
- Run sudo apt-get update command using Terminal app
- And sudo apt-get install git cmake build-essential libssl-dev libcurl4-openssl-dev
Build Project
Before building the project you should clone it: git clone --recursive -j8 <project-url>
To build the project run one of the scripts using Terminal, Git Bash or build it using IDE.
Visual Studio
- Open Visual Studio IDE application
- Click "Open a project or solution" and open the project CMakeLists.txt
- Wait for project CMake generation to finish
- Click Build -> Build All to build the project
Visual Studio Code (VS Code and VSCodium)
- Open Visual Studio Code IDE application
- Click File -> Open Folder... and open the project folder
- Select one of the compiler Kits in the opened window (Clang or GCC)
- Wait for project CMake generation to finish (may take some time)
- Click Build button at the bottom bar to build the project