-
Notifications
You must be signed in to change notification settings - Fork 137
Tutorial for Linux
Takuya Takeuchi edited this page Oct 9, 2017
·
22 revisions
So you should NOT refer the following contents.
- 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.
- .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
- 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
- DLIB_PATH
- Install libX11-devel for some environmental
- The following command for RHEL and Fedora
sudo yum install libX11-devel /y
- Open DlibDotNet/src/DlibDotNet.Native in console
- Type the following code in a console:
mkdir build
cd build
cmake -G ..
- Type the following code in a console:
cmake --build . --config Release
Or
cmake --build . --config Debug
- libDlibDotNet.Native.so will be in build
- 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