ncnn编译安装-20190415 ncnn编译安装

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)

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)

猜你喜欢

转载自www.cnblogs.com/jerrybaby/p/10710961.html