Skip to content

How to install

Takuya Takeuchi edited this page Jan 12, 2020 · 2 revisions

Packages

You can install the following nuget packages.

  • NcnnDotNet
    • For only CPU.
  • NcnnDotNet.GPU
    • For computer installed GPU.
      • Supports Intel, NVIDIA, AMD, Qualcomm, ARM and Apple GPUs.

Requirements

Windows

  • Visual C++ 2017 Redistributable Package
  • Vulkan SDK 1.1.92.1 for Windows
    • Optional: Requires to use NcnnDotNet.GPU

Linux

  • X11
    • Ubuntu: sudo apt-get install libx11-6
  • Vulkan SDK 1.1.92.1 for Linux
    • Optional: Requires to use NcnnDotNet.GPU
    • You must add installed path to environmental variables before build.
      • export VULKAN_SDK=/usr/share/vulkan/1.1.92.1/x86_64

OSX

  • X11
    • Install from here
    • brew cask install xquartz
  • Vulkan SDK 1.1.92.1 for OSX
    • Optional: Requires to use NcnnDotNet.GPU
    • You must add installed path to environmental variables before build.
      • export VULKAN_SDK=/usr/local/share/vulkan/1.1.92.1/macOS/

Install

Visual Studio

PM> Install-Package NcnnDotNet

.NET CLI

> dotnet add package NcnnDotNet
Clone this wiki locally