Skip to content

Tutorial for Linux

Takuya Takeuchi edited this page Oct 9, 2017 · 22 revisions

This page is under construction.

So you should NOT refer the following contents.

Requirements

How to build dlib

DlibDotNet.Native requires dlib.lib. You can refer official page

How to build DlibDotNet.Native

Preparations

  1. Clone Dlib.Net repository to any directory
  2. Download dlib package from officail site
  3. Download giflib package from dowload page
  4. Extract dlib and giflib files to any directory
  5. Add the following environment variable to system
    • DLIB_PATH
      • Ex. /usr/local/bin/DLib/19.7
      • You must NOT include dlib directory. You should use /usr/local/bin/DLib/19.7 rather than D:/Works/Lib/DLib/19.7/dlib
    • GIFLIB_PATH
      • Ex. /usr/local/bin/giflib/5.1.4
  6. Install libX11-devel for some environmental
    • The following command for RHEL and Fedora
sudo yum install libX11-devel /y

Build

  1. Open DlibDotNet/src/DlibDotNet.Native in console
  2. Type the following code in a console:
mkdir build
cd build
cmake -G ..
  1. Type the following code in a console:
cmake --build . --config Release

Or

cmake --build . --config Debug
  1. libDlibDotNet.Native.so will be in build

How to build DlibDotNet

Preparations

  1. Install .NET Core 2.0 by following the official page

Build

  1. Open DlibDotNet/src/DlibDotNet.Native in console
  2. Type the following code in a console:
dotnet build -c Release

Or

dotnet build -c Debug

Clone this wiki locally