zoukankan      html  css  js  c++  java
  • vs2015 ncnn

    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.0uild-vs2015install 目录下,会生成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-20180830uild-vs2015install 文件夹下生成include和lib文件夹

    vs常见错误

    配置属性—c/c++---预处理器——预处理器定义添加

    NOMINMAX
    _CRT_SECURE_NO_WARNINGS
  • 相关阅读:
    一、分组查询
    续、传参
    页面加载时loading效果
    2019-6 21
    一、Nuget管理
    三、项目分析
    七、OIDC
    【2019-10-19】习惯的力量
    【2019-10-18】好好珍惜自己的好奇心
    【2019-10-17】女人有钱,体面又可爱
  • 原文地址:https://www.cnblogs.com/crazybird123/p/9987454.html
Copyright © 2011-2022 走看看