码迷,mamicode.com
首页 > 其他好文 > 详细

vs2015 ncnn

时间:2018-11-20 11:37:07      阅读:305      评论:0      收藏:0      [点我收藏+]

标签:off   目录   span   aries   enc   pre   cmak   rar   make   

1、vs2015编译器编译protobuf   (VS2015 x64本机工具命令)

下载源码:https://github.com/google/protobuf/archive/v3.4.0.zip
进入protobuf-3.4.0 文件夹
mkdir build-vs2015 cd build-vs2015 cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%cd%/install -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_MSVC_STATIC_RUNTIME=OFF ../cmake nmake nmake install

protobuf-3.4.0\build-vs2015\install 目录下,会生成include bin lib文件夹

 

2、ncnn

下载源码

https://github.com/Tencent/ncnn/releases
cd build-vs2015

cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%cd%/install   -DProtobuf_INCLUDE_DIR=E:/NCNNWin/protobuf-3.4.0/build-vs2015/install/include
-DProtobuf_LIBRARIES=E:/NCNNWin/protobuf-3.4.0/build-vs2015/install/lib/libprotobuf.lib  -DProtobuf_PROTOC_EXECUTABLE=E:/NCNNWin/protobuf-3.4.0/build-vs2015/install/bin/protoc.exe ..

nmake

nmake install

在ncnn-20180830\build-vs2015\install 文件夹下生成include和lib文件夹

 

vs2015 ncnn

标签:off   目录   span   aries   enc   pre   cmak   rar   make   

原文地址:https://www.cnblogs.com/crazybird123/p/9987454.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!