[TOC]

概述

源码编译

基于Ubuntu20

文章参考:https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-linux

文章参考:https://blog.csdn.net/baiyu33/article/details/107179618

安装依赖

1
sudo apt install build-essential git cmake libprotobuf-dev protobuf-compiler libvulkan-dev vulkan-utils

也需依赖opencv,这个源码编吧,可以看教程《【经验分享】ubuntu源码编译opencv》。

安装ncnn

1
2
3
4
5
6
git clone https://github.com/Tencent/ncnn.git
cd ncnn
mkdir build && cd build
cmake ..
make
make install

基于MacOS