Package Details: ncnn-git 20210322.r16.gcc8e7a13-3

Git Clone URL: (read-only, click to copy)
Package Base: ncnn-git
Description: High-performance neural network inference framework optimized for the mobile platform
Upstream URL:
Licenses: BSD
Conflicts: ncnn
Provides: ncnn
Submitter: salviati
Maintainer: HurricanePootis
Last Packager: HurricanePootis
Votes: 4
Popularity: 0.68
First Submitted: 2019-07-19 23:45
Last Updated: 2021-04-27 14:19

Dependencies (3)

Required by (11)

Sources (2)

Latest Comments

1 2 Next › Last »

feng commented on 2021-11-12 20:15

Can you please also pack onnx2ncnn, which is useful to me? It is compiled by default, and the path is './build/tools/onnx/onnx2ncnn'.

arzeth commented on 2021-09-04 14:42

waifu2x-ncnn-vulkan-git is broken with current PKGBUILD: . I had to add to ncnn-git's PKGBUILD:


-DGLSLANG_TARGET_DIR=/usr/lib/cmake \

, compile it, and THEN recompile waifu2x-ncnn-vulkan-git.

taotieren commented on 2021-07-22 01:26

Using ninja for accelerated compilation can reduce local compilation time.

HurricanePootis commented on 2021-04-27 14:19


PumpkinCheshire commented on 2021-04-24 09:42

The vulkan sdk version is "Not Found"

Please try this link instead:

HurricanePootis commented on 2021-04-06 17:33

I updated the package :]

chrhasse commented on 2020-10-14 04:29

I was able to get it to compile and install witht he following changes:

Adding this prepare function

prepare() {
    cd "${srcdir}/ncnn"
    sed -i'' 's|#include "glslang/glslang|#include "glslang|' ./src/gpu.cpp

and replacing the build function with this

build() {
    cd "${srcdir}/ncnn"
    mkdir -p build
    cd build
    cmake \
        -DCMAKE_TOOLCHAIN_FILE=../toolchains/host.gcc.toolchain.cmake \
        -DNCNN_VULKAN=ON \
        -DGLSLANG_TARGET_DIR=/usr/lib/cmake/ \

chrhasse commented on 2020-10-13 22:46

I'm getting an error building because git submodules are not downloaded, adding a prepare function that initializes the submodules to the PKGBUILD seems to fix it for me.

prepare() {
    cd "${srcdir}/ncnn"
    git submodule update --init

though this appears to include glslang in the package itself which of course means it won't install, so a much better way is telling it to compile using system glslang with

        -DGLSLANG_TARGET_DIR=/usr/lib/cmake/ \

though with those it complains about a missing header file "glslang/glslang/Public/ShaderLang.h and I think that might need a patch since Shaderlang.h exists at /usr/include/glslang/Public/ShaderLang.h for me. I'll play with it some more and see if I can get it to compile

ipha commented on 2020-02-11 21:14

I've disabled building the examples and tools since they weren't being packaged anyway.

sl1pkn07 commented on 2020-02-11 11:22

fail build with this line if have installed cuda or opencv with cuda support

examples and tools/quantize seems detect it