dlib — Get dlib


Linux

1. Running make install

The most simple way to install dlib on Linux is by running the Makefile.

Requirements:

Steps:

  1. git clone https://github.com/SurfaceSystems/cpp-dlib.git
  2. cd cpp-dlib
  3. make install

You can check if dlib was installed successfully by running: dlib --version

2. Compiling with CMake

You can just build dlib and then install it manually.

Requirements:

Steps:

  1. git clone https://github.com/SurfaceSystems/cpp-dlib.git
  2. cd cpp-dlib
  3. mkdir build && cmake-B build
  4. cmake --build build

The executable is going to be generated at build/dlib.

Windows

1. Downloading pre-compiled binaries

On Windows, the simplest way to get dlib is by downloading a pre-compiled binary.

You can find pre-compiled binaries on:

Then you download the binary and add it to PATH so you can use it in the Console.

You can check if dlib was succesfully installed by running dlib --version

2. Building from source (MINGw)

If you have the tools to compile, you can use mingw-make to compile dlib on Windows.

Requirements:

Steps:

  1. git clone https://github.com/SurfaceSystems/cpp-dlib.git
  2. cd cpp-dlib
  3. make install

3. Building from source (cmd.exe)

If you have the time to install all this requirements, I'm impressed. But here's how you can compile dlib without any UNIX-like environment.

Requirements: