下载NCNN工程:
在安装编译前需要安装g++ cmake protobuf等工具;
然后安装编译工程。
$cd ncnn
$mkdir build && cd build
$cmake ..
此时如果报:
/usr/local/bin/protoc: error while loading shared libraries: libprotobuf.so.15: cannot open shared object file: No such file or directoryCMakeWarning at /usr/local/share/cmake-3.6/Modules/FindProtobuf.cmake:387 (message):Protobuf compiler version doesn't match library version 3.5.0
(参考:https://blog.csdn.net/stevenluopan/article/details/44746193)
就是说protobuf编译器版本与库版本不匹配。解决方法如下:
此时需要在root权限下执行如下:
[root@localhost chensq]# vim /etc/ld.so.conf
加入:/usr/local/lib
之后
[root@localhost chensq]#ldconfig
[root@localhost chensq]# export LD_LIBRARY_PATH=/usr/local/lib
这样之后重新进行cmake..将不会报错;
[root@localhost ncnn]#rm-rfbui