Skip to content

Tutorial for MacOS

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

Requirements

Preparations

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

Install X11

💡 NOTE

You need to launch XQuarts when use GUI functions of DlibDotNet

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/mkl> <32/64> <desktop>
  1. libDlibDotNetNative.dylib 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/mkl> <32/64> <desktop>
  1. libDlibDotNetNativeDnn.dylib 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/Debug>