Labs64 NetLicensing Client (C++)
C++ wrapper for Labs64 NetLicensing RESTful API
Visit Labs64 NetLicensing at https://netlicensing.io
- Download curl from https://github.com/curl/curl/releases
cd curl_directory\winbuild
- Read
BUILD_WINDOWS.txt
for building instructions - In VC command prompt run command like
nmake /f Makefile.vc VC=<VC versions> MACHINE=<x86 or x64> ENABLE_WINSSL=yes MODE=dll
- If you get the error "U1073" or "U1077" - execute
curl_directory\buildconf.bat
first and repeat command - Your curl build directory will be in sub directory
\builds
-
Checkout project
-
In NetLicensingClient-cpp create build directory
-
Setup curl home directory for example using CMAKE_PREFIX_PATH=your_curl_build_directory. Build directory contains bin, include and lib subdirs.
-
In VC Command prompt:
cd NetLicensingClient-cpp\build cmake .. -G "Visual Studio Win<86 or 64>" -DCMAKE_PREFIX_PATH=your_curl_build_directory
-
Open solution from "NetLicensingClient-cpp\build" directory in VC and build library and demo client.
- Install curl dev. For ubuntu sudo apt-get install libcurl4-openssl-dev
- Checkout NetLicensingClient-cpp
- Run cmake or cmake .. from build sub directory
- make
For unit tests you need installed boost unit test library. To build project with unit tests activated use cmake option -DBUILD_TESTS=yes. For example cmake -DBUILD_TESTS=yes .. . Run tests exactly from tests directory in linux or tests/Debug on windows because of expected positions of json source files.