-
Notifications
You must be signed in to change notification settings - Fork 136
Tutorial for Windows
Takuya Takeuchi edited this page Jul 25, 2020
·
21 revisions
- dlib
-
CMake
- 3.0 or higher
- If you do not want to add CMake path to environment variable, you must type fullpath of CMake when build library.
- Visual Studio
- Recommended 2017
-
PowerShell Core
- 6.2 or higher
- .NET Core 2.0
- (Optional for using CUDA) CUDA
- (Optional for using CUDA) cuDNN
- Install it to CUDA_HOME directory
git clone https://github.com/takuya-takeuchi/DlibDotNet
cd DlibDotNet
Initialize.bat
- Open DlibDotNet\src\DlibDotNet.Native in command prompt
- 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] or Install directory of Intel MKL>
- Install CUDA Toolkit and cuDNN if you want to use CUDA
- Binary files will be in build_*\Release or build_*\Debug
- Open DlibDotNet\src\DlibDotNet.Native.Dnn in command prompt
- 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] or Install directory of Intel MKL>
- Install CUDA Toolkit and cuDNN if you want to use CUDA
- Binary files will be in build_*\Release or build_*\Debug
- Refer Prerequisites for .NET Core on Windows](https://docs.microsoft.com/en-us/dotnet/core/windows-prerequisites?tabs=netcore2x)
- Open DlibDotNet\DlibDotNet.sln in Visual Studio
- Do build command for DlibDotNet project
- Install .NET Core 2.0 by following the official page
- Open DlibDotNet\src\DlibDotNet in console
- Type the following code in a console:
dotnet build -c <Release/Debug>