Package Details: ncnn-git 20240410.r16.g1b7e6358c-1

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:
Keywords: ncnn
Licenses: BSD-3-Clause AND BSD-2-Clause AND Zlib
Conflicts: ncnn
Provides: ncnn
Submitter: salviati
Maintainer: HurricanePootis
Last Packager: HurricanePootis
Votes: 3
Popularity: 0.000000
First Submitted: 2019-07-19 23:45 (UTC)
Last Updated: 2024-05-13 14:43 (UTC)

Latest Comments

1 2 Next › Last »

feng commented on 2022-07-26 19:28 (UTC)

@HurricanePootis Thanks for the kind remind. I shall update my makepkg.conf accordingly.

HurricanePootis commented on 2022-07-25 22:16 (UTC)

Thank you @feng for the patch.

But, as a reminder, if whenever you are building PKGBUILDs, adding nproc to the PKGBUILD goes against what the use specifys in /etc/makepkg.conf. If you yourself want to build packages with all of your cpu threads, please open up /etc/makepkg.conf in your text editor of choice, go to the MAKEFLAGS line, and add `MAKEFLAGS="-j$(nproc)"

feng commented on 2022-07-25 20:44 (UTC)

I need tools/onnx2ncnn but this pkgbuild does not build.

The patch below enables this tool

diff --git a/PKGBUILD b/PKGBUILD
index 017b7d3..9757116 100644
@@ -4,7 +4,7 @@

 pkgdesc="High-performance neural network inference framework optimized for the mobile platform"
@@ -55,9 +55,13 @@ build() {
         -DGLSLANG_TARGET_DIR=/usr/lib/cmake \
+        -DCMAKE_BUILD_TYPE=Release \
+        -DNCNN_STDIO=ON \
+        -DNCNN_STRING=ON \
         -Wno-dev \
-    make
+    make -j `nproc --all`

 package() {

IncredibleLaser commented on 2022-04-09 07:36 (UTC) (edited on 2022-04-09 07:38 (UTC) by IncredibleLaser)

This doesn't build for me in a clean chroot:

CMake Error at src/CMakeLists.txt:256 (message):                                                                                           
  !! CMake didn't find Vulkan.  Please set VULKAN_SDK env var, e.g.:

  Linux: export VULKAN_SDK=~/soft/vulkansdk/

  Windows: set VULKAN_SDK=E:/lib/VulkanSDK/

  MacOS: export VULKAN_SDK=~/soft/vulkansdk/

-- Configuring incomplete, errors occurred!

feng commented on 2021-11-12 20:15 (UTC)

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 (UTC) (edited on 2021-09-04 14:43 (UTC) by arzeth)

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 (UTC)

Using ninja for accelerated compilation can reduce local compilation time.

HurricanePootis commented on 2021-04-27 14:19 (UTC)


PumpkinCheshire commented on 2021-04-24 09:42 (UTC)

The vulkan sdk version is "Not Found"

Please try this link instead: