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>

    酒是穿肠毒药,色是刮骨钢刀,财是惹祸根苗,气是雷烟火炮。 不过,无酒毕竟不成席,无色世上人渐稀,无财何人早早起,无气处处惹人欺。 饮酒不醉量为高,见色不迷真英豪,不义之财君莫取,忍气饶人祸自消。 酒色财气四堵墙,人人都在里边藏,谁若跳到墙外边,不是神仙也寿长。 君听我一言:做人,量体裁衣。
  • 相关阅读:
    jackson学习之一:基本信息 jackson学习之二:jackson-core
    FastAPI项目实战:SayHello(FastAPI + vue.js + axios + element ui 翻自Flask版
    MarkDown优雅发表
    docker使用笔记
    JVM的重要性 从上层应用程序到底层操作系统,到底有哪些东西?
    Python正则表达式re模块和os模块实现文件搜索模式匹配
    区块链学习6:图灵完备和图灵不完备
    moviepy音视频开发:使用credits1给视频加片头片尾字幕
    moviepy音视频开发:使用volumex调节音量大小及其花式用法
    moviepy音视频开发:audio_normalize调整剪辑音量大小到正常
  • 原文地址:https://www.cnblogs.com/laosan007/p/12794588.html
Copyright © 2011-2022 走看看