ncnn编译安装

树莓派3b+上安装linux

一、安装android

 sudo apt-get install git sudo apt-get install cmake sudo apt-get install -y gfortran sudo apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler sudo apt-get install --no-install-recommends libboost-all-dev sudo apt-get install -y libgflags-dev libgoogle-glog-dev liblmdb-dev libatlas-base-dev

二、git clone https://github.com/Tencent/ncnnios

三、修改CmakeList.txt文件。去掉下面两段代码前面的#,便于后续的测试git

add_subdirectory(examples)
add_subdirectory(benchmark)

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

若是要使用examples,则须要添加opencv,在example/CMakeLists.txt中,首行添加:网络

    set(OpenCV_DIR  /home/本身的路径/opencv-2.4.13/release)app

四、开启openmp测试

      

五、开启neonui

默认在android和ios下开启neon,linux下,src/CMakeLists.txt在判断sys和arch下,直接设为TRUEgoogle

参考:https://blog.csdn.net/yuanlulu/article/details/86168023

 

不知道是否是openmp没有开启成功,benchmark上有些网络速度比example上慢很多。。。

相关文章
相关标签/搜索