-
Notifications
You must be signed in to change notification settings - Fork 24
Build for Linux
Takuya Takeuchi edited this page Dec 29, 2022
·
2 revisions
-
CMake
- 3.12.1 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 3.1
- PowerShell Core 6
$ git clone https://github.com/takuya-takeuchi/NcnnDotNet
$ cd NcnnDotNet
$ git submodule update --init --recursive
$ cd src/NcnnDotNet.Native
$ pwsh Build.ps1 <Debug/Release> cpu 64 desktop
If you want to make enable vulkan, you set environmental value VULKAN_SDK
before kick script.
$ export VULKAN_SDK=~/VulkanSDK/1.2.189.0
$ pwsh Build.ps1 <Debug/Release> vulkan 64 desktop
$ cd src/NcnnDotNet
$ dotnet build -c <Debug/Release>