|
**[如何在 Linux / Windows / macOS / Raspberry Pi3, Pi4 / POWER / Android / NVIDIA Jetson / iOS / WebAssembly / AllWinner D1 / Loongson 2K1000 上构建 ncnn 库](https://github.com/Tencent/ncnn/wiki/how-to-build)**
|
| 源代码 |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-full-source.zip)
|
|
- [为 Android 构建](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-android)
- [为 Android 上的 Termux 构建](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-termux-on-android)
|
| Android |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-android-vulkan.zip)
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-android.zip)
|
[ ](https://github.com/Tencent/ncnn/actions?query=workflow%3Aandroid)
|
| Android 动态库 |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-android-vulkan-shared.zip)
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-android-shared.zip)
|
|
- [为 HarmonyOS 交叉编译构建](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-harmonyos-with-cross-compiling)
|
| HarmonyOS |
|
[ ](https://github.com/Tencent/ncnn/actions?query=workflow%3Aharmonyos)
|
| HarmonyOS 动态库 |
|
|
- [在 macOS 上使用 xcode 为 iOS 构建](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-ios-on-macos-with-xcode)
|
| iOS |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-ios-vulkan.zip)
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-ios.zip)
|
[ ](https://github.com/Tencent/ncnn/actions?query=workflow%3Aios)
|
| iOS 模拟器 |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-ios-simulator-vulkan.zip)
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-ios-simulator.zip)
|
|
- [为 macOS 构建](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-macos)
|
| macOS |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-macos-vulkan.zip)
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-macos.zip)
|
[ ](https://github.com/Tencent/ncnn/actions?query=workflow%3Amacos)
|
| Mac Catalyst |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-mac-catalyst-vulkan.zip)
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-mac-catalyst.zip)
|
[ ](https://github.com/Tencent/ncnn/actions?query=workflow%3Amac-catalyst)
|
| watchOS |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-watchos.zip)
|
[ ](https://github.com/Tencent/ncnn/actions?query=workflow%3Awatchos)
|
| watchOS 模拟器 |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-watchos-simulator.zip)
|
| tvOS |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-tvos-vulkan.zip)
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-tvos.zip)
|
[ ](https://github.com/Tencent/ncnn/actions?query=workflow%3Atvos)
|
| tvOS 模拟器 |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-tvos-simulator-vulkan.zip)
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-tvos-simulator.zip)
|
| visionOS |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-visionos-vulkan.zip)
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-visionos.zip)
|
[ ](https://github.com/Tencent/ncnn/actions?query=workflow%3Avisionos)
|
| visionOS 模拟器 |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-visionos-simulator-vulkan.zip)
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-visionos-simulator.zip)
|
| Apple xcframework |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-apple-vulkan.zip)
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-apple.zip)
|
|
|
- [为 Linux / NVIDIA Jetson / Raspberry Pi3, Pi4 / POWER 构建](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-linux)
|
| Ubuntu 22.04 |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-ubuntu-2204.zip)
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-ubuntu-2204-shared.zip)
|
[ ](https://github.com/Tencent/ncnn/actions?query=workflow%3Alinux-x64-gpu-gcc)
|
| Ubuntu 24.04 |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-ubuntu-2404.zip)
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-ubuntu-2404-shared.zip)
|
|
- [使用 VS2017 为 Windows x64 构建](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-windows-x64-using-visual-studio-community-2017)
- [使用 MinGW-w64 为 Windows x64 构建](https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-windows-x64-using-mingw-w64)
|
| VS2015 |
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-windows-vs2015.zip)
[ ](https://github.com/Tencent/ncnn/releases/latest/download/ncnn-20260113-windows-vs2015-shared.zip)
|
[ |