zoukankan      html  css  js  c++  java
  • Ncnn-Installation-on-Windows

    Ncnn-Installation-on-Windows

    The steps and tips of installing the ncnn+protobuf envs on Windows.

    Since the guide of installing and building Ncnn on Windows on the Official Site can't actually lead me correctly:

    https://github.com/Tencent/ncnn/wiki/cmake-VS2017-%E7%BC%96%E8%AF%91

    I've found some other resources to build the Ncnn on my computer.

    1: A Standalone Project
    https://github.com/liyemei/ncnn-windows-vs2013

    This project doesn't rely on the envs. All the resources of the 3rd party are included in the project.

    But it relys on the VS201x v120 toolset.

    2: A Project based on Ncnn
    https://github.com/moli232777144/mtcnn_ncnn/blob/master/README.md

    If the envs on your computer can't be compatible with the 1: A Standalone Project,the project listed in the above can lead you successfully. There is the guide written in markdown to build the project. Following the guide, you can also build ncnn and protobuf as 3rd parties into the project.

    Modification of the README.md:


    (1) Protobuf:

    (a) Download Protobuf:
    Ncnn relys on Protobuf, as the auther of the Ncnn listed on the Ncnn's official site, I recommend you to use the version 3.4.0
    https://github.com/google/protobuf/archive/v3.4.0.zip

    (b) Build Protobuf:

    Unzip the resources of Protobuf, now the folder's default name is protobuf-3.4.0

    Use the System command prompt:cmd.exe

    Goto the folder"cmake"under the folder "protobuf-3.4.0", by:

    cd YourOwnPathprotobuf-3.4.0 cd cmake

    Create a new folder called "build", by:

    mkdir build cd build

    Then build the Protobuf, by:

    cmake .. -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_MSVC_STATIC_RUNTIME=OFF -G "Visual Studio 15 2017 Win64"

    *Attention: The last param "Visual Studio 15 2017 Win64" is according to the Visual Studio on your computer. You need to modify it.

    Use the File Explorer to open the protobuf.sln under the YourOwnPathprotobuf-3.4.0cmakeuild

    Modify the platform to "Release" and "x64", and then build it.

    • TBC

    来自 <https://github.com/unademo/Ncnn-Installation-on-Windows>

    酒是穿肠毒药,色是刮骨钢刀,财是惹祸根苗,气是雷烟火炮。 不过,无酒毕竟不成席,无色世上人渐稀,无财何人早早起,无气处处惹人欺。 饮酒不醉量为高,见色不迷真英豪,不义之财君莫取,忍气饶人祸自消。 酒色财气四堵墙,人人都在里边藏,谁若跳到墙外边,不是神仙也寿长。 君听我一言:做人,量体裁衣。
  • 相关阅读:
    LGPrep的一点小问题
    百度地图API的事件处理:覆盖物阻止冒泡
    HTML5截取视频第一帧作为预览图片
    20165105 第二周学习总结
    20165105课下作业
    20165105第一周学习查缺补漏
    第四周课下作业20165105
    20165105 201620172 《Java程序设计》第1周学习总结
    我期望的师生关系
    .NET使用NPOI组件将数据导出Excel
  • 原文地址:https://www.cnblogs.com/laosan007/p/12794588.html
Copyright © 2011-2022 走看看