-
Notifications
You must be signed in to change notification settings - Fork 136
Tutorial for Windows
Takuya Takeuchi edited this page Oct 9, 2017
·
21 revisions
- dlib
- giflib
-
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
- .NET Core 2.0
DlibDotNet.Native requires dlib.lib. You can refer official page
- Clone Dlib.Net repository to any directory
- Download dlib package from officail site
- Download giflib package from dowload page
- Extract dlib and giflib files to any directory
- Modify giflib files
- Replace #include <unistd.h> to #include <io.h> in all files
- Add the following environment variable to system
- DLIB_PATH
- Ex. D:/Works/Lib/DLib/19.7
- You must NOT include dlib directory. You should use D:/Works/Lib/DLib/19.7 rather than D:/Works/Lib/DLib/19.7/dlib
- GIFLIB_PATH
- Ex. D:/Works/Lib/giflib/5.1.4
- DLIB_PATH
- Open DlibDotNet\src\DlibDotNet.Native in command prompt
- Type the following code in a console:
mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" ..
- Type the following code in a console:
cmake --build . --config Release
Or
cmake --build . --config Debug
- 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.Native in console
- Type the following code in a console:
dotnet build -c Release
Or
dotnet build -c Debug