ncnn编译安装-20190415

ncnn编译安装

1、git clone https://github.com/Tencent/ncnn

2、按照wiki说明来编译,根据需要,选择不同的编译方式。在ncnn/CMakeLists.txt中,可选择编译examples、benchmark、src。

https://github.com/Tencent/ncnn/wiki/how-to-build

3、如果编译examples,则需要添加opencv,在example/CMakeLists.txt中,首行添加:

    set(OpenCV_DIR  /home/自己的路径/opencv-2.4.13/release)

posted @ 2019-04-15 15:33  Wenism  阅读(931)  评论(0编辑  收藏  举报