GithubHelp home page GithubHelp logo

ncnnbuilder's Introduction

NcnnBuilder

利用Github Actions编译ncnn Libs。

手动编译说明

如果您的系统太新或太旧无法直接使用本仓库编译的包,请尝试手动编译。

Linux编译说明

  1. 编译环境:
操作系统 基本软件包
Ubuntu18.04 基本软件包

安装build-essential和cmake

sudo apt-get install build-essential cmake
  1. 同步ncnn源代码 到ncnn文件夹

  2. 复制编译脚本cpu编译脚本gpucmake选项 到ncnn文件夹

执行chmod a+x build-ncnn-cpu.sh &&./build-ncnn-cpu.sh

执行chmod a+x build-ncnn-gpu.sh &&./build-ncnn-gpu.sh

编译结果在:ncnn/build-Release-CPU/install,以及ncnn/build-Release-GPU/install

macOS编译说明

  1. 编译环境:
操作系统 基本软件包
macos10.15 基本软件包

安装Xcode > 12

安装HomeBrew

安装libomp(20220420开始禁用了openmp) brew install cmake libomp

安装CommandLineTools

brew doctor
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
  1. 同步ncnn源代码 到ncnn文件夹

  2. 复制编译脚本cpu编译脚本gpucmake选项 到ncnn文件夹

执行chmod a+x build-ncnn-cpu.sh &&./build-ncnn-cpu.sh

执行chmod a+x build-ncnn-gpu.sh &&./build-ncnn-gpu.sh

编译结果在:ncnn/build-Release-CPU/install,以及ncnn/build-Release-GPU/install

windows编译说明

  1. 编译环境:
操作系统 基本软件包
Windows-vs2017 基本软件包
Windows-vs2019 基本软件包

安装vs2017或者vs2019,并选中"C++桌面开发"

安装cmake

  1. 同步ncnn源代码 到ncnn文件夹

  2. 复制编译脚本和cmake选项

vs2019环境,复制编译脚本vs2019cmake选项到ncnn文件夹

  1. 开始菜单打开"x64 Native Tools Command Prompt for VS 2019"或"适用于 VS2017 的 x64 本机工具", 运行对应的编译脚本,编译结果在:ncnn/build-xxx-xxx/install

关于Windows静态链接CRT

编译选项添加NCNN_BUILD_WITH_STATIC_CRT=ON

20221013

  • ncnn: 20220729
  • vulkan: 1.2.189.0
  • windows平台,更早版本的包均为md版,从此版增加链接静态CRT版本(mt)
  • 后缀md: NCNN_BUILD_WITH_STATIC_CRT=OFF
  • 后缀mt: NCNN_BUILD_WITH_STATIC_CRT=ON

20230213

  • ncnn: 20221128
  • vulkan: 1.3.236.0

ncnnbuilder's People

Contributors

benjaminwan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.