Skip to content

How to install libnolimits

Ercan Akyürek edited this page May 21, 2017 · 8 revisions

This article will help installing libnolimits. Before you start installing libnolimits, you need to install all requirements.

macOS / Linux (Debian)

On macOS / Linux (Debian) the installation of this library is fairly simple, if you followed the article how to install all required tools and libraries.

You just need to follow this steps:

$ git clone https://github.com/geforcefan/libnolimits.git
$ cd libnolimits

$ cmake .
$ make
$ make install

Thats it. Now you can link your application with libnolimits by using the linker flag -lnolimits.

Windows

First, download libnolimits archive and unpack it into our freshly created directory C:\build-libnolimits :

Visual Studio

You need to open the Native Tools Command Prompt for VS 2017 instead of cmd.exe.

set PKG_CONFIG_PATH=C:\build-libnolimits\usr\local\share\pkgconfig;C:\build-libnolimits\usr\local\lib\pkgconfig;
cd C:\build-libnolimits\libnolimits-master
cmake -G "Visual Studio 15 Win64" -DCMAKE_INSTALL_PREFIX="C:\build-libnolimits\usr\local"
cmake --build . --config Release
Msbuild.exe INSTALL.vcxproj /p:Configuration=Release

MinGW/MSYS

set PKG_CONFIG_PATH=C:\build-libnolimits\usr\local\share\pkgconfig;C:\build-libnolimits\usr\local\lib\pkgconfig;
cd C:\build-libnolimits\libnolimits-master
cmake -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX="C:\build-libnolimits\usr\local"
make
make install

We are almost done

The examples are also build by this process. If you try to execute the example binaries, you will face zlib.dll is not found. You need to copy of course zlib.dll from C:\build-libnolimits\usr\local\bin to the directory where your executable is located. Keep in mind to deploy everything inside of C:\build-libnolimits\usr\local\bin when you use libnolimits.