Skip to content

Build for Linux

Takuya Takeuchi edited this page Dec 29, 2022 · 2 revisions

Requirements

Preparations

$ git clone https://github.com/takuya-takeuchi/NcnnDotNet
$ cd NcnnDotNet
$ git submodule update --init --recursive

How to build NcnnDotNet.Native

$ 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

How to build NcnnDotNet

$ cd src/NcnnDotNet
$ dotnet build -c <Debug/Release>
Clone this wiki locally