Skip to content

optimad/NetLicensingClient-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Innovative License Management Solution

Labs64 NetLicensing Client (C++)

Build Status

C++ wrapper for Labs64 NetLicensing RESTful API

Visit Labs64 NetLicensing at https://netlicensing.io

Dependencies

  1. curl
  2. jsoncpp(included)

Windows build

Build curl

  1. Download curl from https://github.com/curl/curl/releases
  2. cd curl_directory\winbuild
  3. Read BUILD_WINDOWS.txt for building instructions
  4. In VC command prompt run command like
         
     nmake /f Makefile.vc VC=<VC versions> MACHINE=<x86 or x64> ENABLE_WINSSL=yes MODE=dll
         
     
  5. If you get the error "U1073" or "U1077" - execute curl_directory\buildconf.bat first and repeat command
  6. Your curl build directory will be in sub directory \builds

Build NetLicensing C++ client

  1. Checkout project

  2. In NetLicensingClient-cpp create build directory

  3. Setup curl home directory for example using CMAKE_PREFIX_PATH=your_curl_build_directory. Build directory contains bin, include and lib subdirs.

  4. In VC Command prompt:

         
     cd NetLicensingClient-cpp\build
     cmake .. -G "Visual Studio  Win<86 or 64>" -DCMAKE_PREFIX_PATH=your_curl_build_directory
         
     
  5. Open solution from "NetLicensingClient-cpp\build" directory in VC and build library and demo client.

Linux build

Build NetLincesing-cpp

  1. Install curl dev. For ubuntu sudo apt-get install libcurl4-openssl-dev
  2. Checkout NetLicensingClient-cpp
  3. Run cmake or cmake .. from build sub directory
  4. make

Unit tests

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.

About

C++ wrapper for Labs64 NetLicensing RESTful API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 97.2%
  • CMake 1.8%
  • C 1.0%