-
Notifications
You must be signed in to change notification settings - Fork 136
Tutorial for MacOS
Takuya Takeuchi edited this page Jun 1, 2019
·
7 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.
- .NET Core 2.0
git clone https://github.com/takuya-takeuchi/DlibDotNet
cd DlibDotNet
./Initialize.sh
- Please refer About X11 for Mac
- Open DlibDotNet/src/DlibDotNet.Native in console
- Type the following code in a console:
mkdir build
cd build
cmake ..
- Type the following code in a console:
cmake --build . --config Release
Or
cmake --build . --config Debug
- libDlibDotNetNative.dylib will be in build
- Open DlibDotNet/src/DlibDotNet.Native in console
- Type the following code in a console:
mkdir build
cd build
cmake ..
- Type the following code in a console:
cmake --build . --config Release
Or
cmake --build . --config Debug
- libDlibDotNetNativeDnn.dylib 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
For now dotnet command does NOT support specify any executable directory. So please refer the following code in a console:
dotnet restore
dotnet msbuild /p:Configuration=Release
mkdir -p bin/Release/netcoreapp2.0
mv bin/ReleaseMac/netcoreapp2.0/* bin/Release/netcoreapp2.0
cp ../../src/DlibDotNet.Native/build/libDlibDotNet.Native.dylib bin/Release/netcoreapp2.0/
dotnet run --configuration Release --no-build