Skip to content

Tutorial for Linux

Takuya Takeuchi edited this page Apr 20, 2020 · 22 revisions

Requirements

How to build dlib

DlibDotNet.Native requires libdlib.a. You can refer official page

Preparations

git clone https://github.com/takuya-takeuchi/DlibDotNet
cd DlibDotNet
./Initialize.sh

RHEL/Fedora/CentOS

sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install libX11-devel openblas-devel

Ubuntu/debian

sudo apt-get install libx11-dev libopenblas-dev

How to build DlibDotNet.Native

Build

  1. Open DlibDotNet/src/DlibDotNet.Native in console
  2. Type the following code in a console:
$ pwsh Build.ps1 <Release/Debug> <cpu/cuda/mkl> <32/64> <desktop/uwp> <optional: cuda version [92/100/101]
  1. libDlibDotNetNative.so will be in build_*\Release or build_*\Debug

How to build DlibDotNet.Native.Dnn

Build

  1. Open DlibDotNet/src/DlibDotNet.Native.Dnn in console
  2. Type the following code in a console:
$ pwsh Build.ps1 <Release/Debug> <cpu/cuda/mkl> <32/64> <desktop/uwp> <optional: cuda version [92/100/101]
  1. libDlibDotNetNativeDnn.so will be in build_*\Release or build_*\Debug

How to build DlibDotNet

Preparations

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

Build

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

Or

dotnet build -c Debug

How to use DlibDotNet?

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

Clone this wiki locally