Package Details: realesrgan-ncnn-vulkan 0.2.0-7

Git Clone URL: https://aur.archlinux.org/realesrgan-ncnn-vulkan.git (read-only, click to copy)
Package Base: realesrgan-ncnn-vulkan
Description: NCNN implementation of Real-ESRGAN
Upstream URL: https://github.com/xinntao/Real-ESRGAN-ncnn-vulkan
Keywords: realesrgan realesrgan-ncnn
Licenses: MIT
Conflicts: realesrgan-ncnn-vulkan-bin
Provides: realesrgan-ncnn-vulkan
Submitter: HurricanePootis
Maintainer: HurricanePootis
Last Packager: HurricanePootis
Votes: 4
Popularity: 0.000014
First Submitted: 2022-04-15 04:00 (UTC)
Last Updated: 2024-04-22 21:35 (UTC)

Latest Comments

astro commented on 2024-04-22 16:50 (UTC)

problem with compilation :

-- The C compiler identification is GNU 13.2.1 -- The CXX compiler identification is GNU 13.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found OpenMP_C: -fopenmp (found version "4.5") -- Found OpenMP_CXX: -fopenmp (found version "4.5") -- Found OpenMP: TRUE (found version "4.5") -- Found Vulkan: /lib/libvulkan.so (found version "1.3.279") found components: glslc glslangValidator -- Found glslangValidator: /usr/bin/glslangValidator -- Using glslang install located at /usr/lib/cmake CMake Warning at /usr/lib/cmake/OSDependentTargets.cmake:2 (message): Using OSDependentTargets.cmake is deprecated: use find_package(glslang) to find glslang CMake targets. Call Stack (most recent call first): CMakeLists.txt:110 (include)

CMake Error at /usr/lib/cmake/OSDependentTargets.cmake:8 (add_library): add_library cannot create ALIAS target "OSDependent" because target "glslang::OSDependent" does not already exist. Call Stack (most recent call first): CMakeLists.txt:110 (include)

CMake Error at CMakeLists.txt:111 (include): include could not find requested file:

/usr/lib/cmake/OGLCompilerTargets.cmake

CMake Warning at /usr/lib/cmake/glslangTargets.cmake:2 (message): Using glslangTargets.cmake is deprecated: use find_package(glslang) to find glslang CMake targets. Call Stack (most recent call first): CMakeLists.txt:116 (include)

CMake Error at /usr/lib/cmake/glslangTargets.cmake:12 (add_library): add_library cannot create ALIAS target "MachineIndependent" because target "glslang::MachineIndependent" does not already exist. Call Stack (most recent call first): CMakeLists.txt:116 (include)

CMake Error at /usr/lib/cmake/glslangTargets.cmake:13 (add_library): add_library cannot create ALIAS target "GenericCodeGen" because target "glslang::GenericCodeGen" does not already exist. Call Stack (most recent call first): CMakeLists.txt:116 (include)

CMake Warning at /usr/lib/cmake/SPIRVTargets.cmake:2 (message): Using SPIRVTargets.cmake is deprecated: use find_package(glslang) to find glslang CMake targets. Call Stack (most recent call first): CMakeLists.txt:117 (include)

-- Found OpenMP_C: -fopenmp (found version "4.5") -- Found OpenMP_CXX: -fopenmp (found version "4.5") -- Found WebP: /usr/include -- Configuring incomplete, errors occurred!

rien333 commented on 2024-03-30 13:03 (UTC) (edited on 2024-03-30 13:15 (UTC) by rien333)

@q234rty I'm bringing this issue to light upstream, hopefully that will help us.

EDIT

Seems to have already been reported two years ago:

https://github.com/xinntao/Real-ESRGAN-ncnn-vulkan/issues/22

Since there has been zero activity since, I'm guessing this project might be practically death?

q234rty commented on 2024-03-17 09:34 (UTC)

This patch makes the package build and work for me:

diff --git a/PKGBUILD b/PKGBUILD
index 0d54171..1a72d38 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,11 +17,17 @@ source=(
     "git+https://github.com/xinntao/$_pkgname#tag=${_pkgver}"
     "https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesrgan-ncnn-vulkan-20220424-ubuntu.zip"
     "realesrgan-ncnn-vulkan"
+    cmake.patch
     )

-sha256sums=('SKIP'
+sha256sums=('d07937c80a6befb563e9ab87e532ce8935cf653738427b1a905da322f957e283'
             'e5aa6eb131234b87c0c51f82b89390f5e3e642b7b70f2b9bbe95b6a285a40c96'
-            '058bc5167a00ff53a6a135ed033797a4d012bdb86e930ba4eb271ab4c848f8df')
+            '058bc5167a00ff53a6a135ed033797a4d012bdb86e930ba4eb271ab4c848f8df'
+            '8e1e31f2710893552caf3917585b945cd2054b7d9f9eabe6b8672ac97750ae9e')
+prepare() {
+    cd $_pkgname
+    patch -Np1 -i ../cmake.patch
+}
 build() {
     cd "$srcdir"

diff --git a/cmake.patch b/cmake.patch
new file mode 100644
index 0000000..9f690d3
--- /dev/null
+++ b/cmake.patch
@@ -0,0 +1,37 @@
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 1e7b71a..159834c 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -97,32 +97,6 @@ else()
+     message(WARNING "IPO is not supported: ${ipo_supported_output}")
+ endif()
+ 
+-if(USE_SYSTEM_NCNN)
+-    set(GLSLANG_TARGET_DIR "GLSLANG-NOTFOUND" CACHE PATH "Absolute path to glslangTargets.cmake directory")
+-    if(NOT GLSLANG_TARGET_DIR AND NOT DEFINED ENV{GLSLANG_TARGET_DIR})
+-        message(WARNING "GLSLANG_TARGET_DIR must be defined! USE_SYSTEM_NCNN will be turned off.")
+-        set(USE_SYSTEM_NCNN OFF)
+-    else()
+-        message(STATUS "Using glslang install located at ${GLSLANG_TARGET_DIR}")
+-
+-        find_package(Threads)
+-
+-        include("${GLSLANG_TARGET_DIR}/OSDependentTargets.cmake")
+-        include("${GLSLANG_TARGET_DIR}/OGLCompilerTargets.cmake")
+-        if(EXISTS "${GLSLANG_TARGET_DIR}/HLSLTargets.cmake")
+-            # hlsl support can be optional
+-            include("${GLSLANG_TARGET_DIR}/HLSLTargets.cmake")
+-        endif()
+-        include("${GLSLANG_TARGET_DIR}/glslangTargets.cmake")
+-        include("${GLSLANG_TARGET_DIR}/SPIRVTargets.cmake")
+-
+-        if (NOT TARGET glslang OR NOT TARGET SPIRV)
+-            message(WARNING "glslang or SPIRV target not found! USE_SYSTEM_NCNN will be turned off.")
+-            set(USE_SYSTEM_NCNN OFF)
+-        endif()
+-    endif()
+-endif()
+-
+ if(USE_SYSTEM_NCNN)
+     find_package(ncnn)
+     if(NOT TARGET ncnn)

Though I have no idea what this piece of code were supposed to do...

ginnokami commented on 2024-02-29 23:04 (UTC)

I am having issues compiling this package in a chroot using paru. Below is is the cmake log that errors:

==> Retrieving sources...
  -> Found realesrgan-ncnn-vulkan-20220424-ubuntu.zip
  -> Found realesrgan-ncnn-vulkan
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Creating working copy of Real-ESRGAN-ncnn-vulkan git repo...
Cloning into 'Real-ESRGAN-ncnn-vulkan'...
done.
Switched to a new branch 'makepkg'
  -> Extracting realesrgan-ncnn-vulkan-20220424-ubuntu.zip with bsdtar
==> Sources are ready.
realesrgan-ncnn-vulkan-0.2.0-6: parsing pkg list...
==> Making package: realesrgan-ncnn-vulkan 0.2.0-6 (Thu Feb 29 18:02:37 2024)
==> Retrieving sources...
  -> Found realesrgan-ncnn-vulkan-20220424-ubuntu.zip
  -> Found realesrgan-ncnn-vulkan
==> Validating source files with sha256sums...
    Real-ESRGAN-ncnn-vulkan ... Skipped
    realesrgan-ncnn-vulkan-20220424-ubuntu.zip ... Passed
    realesrgan-ncnn-vulkan ... Passed
==> Making package: realesrgan-ncnn-vulkan 0.2.0-6 (Thu Feb 29 18:02:39 2024)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- Found Vulkan: /lib/libvulkan.so (found version "1.3.276") found components: glslangValidator missing components: glslc
-- Found glslangValidator: /usr/bin/glslangValidator
-- Using glslang install located at /usr/lib/cmake
CMake Warning at /usr/lib/cmake/OSDependentTargets.cmake:2 (message):
  Using `OSDependentTargets.cmake` is deprecated: use `find_package(glslang)`
  to find glslang CMake targets.
Call Stack (most recent call first):
  CMakeLists.txt:110 (include)


CMake Error at /usr/lib/cmake/OSDependentTargets.cmake:8 (add_library):
  add_library cannot create ALIAS target "OSDependent" because target
  "glslang::OSDependent" does not already exist.
Call Stack (most recent call first):
  CMakeLists.txt:110 (include)


CMake Error at CMakeLists.txt:111 (include):
  include could not find requested file:

    /usr/lib/cmake/OGLCompilerTargets.cmake


CMake Warning at /usr/lib/cmake/glslangTargets.cmake:2 (message):
  Using `glslangTargets.cmake` is deprecated: use `find_package(glslang)` to
  find glslang CMake targets.
Call Stack (most recent call first):
  CMakeLists.txt:116 (include)


CMake Error at /usr/lib/cmake/glslangTargets.cmake:12 (add_library):
  add_library cannot create ALIAS target "MachineIndependent" because target
  "glslang::MachineIndependent" does not already exist.
Call Stack (most recent call first):
  CMakeLists.txt:116 (include)


CMake Error at /usr/lib/cmake/glslangTargets.cmake:13 (add_library):
  add_library cannot create ALIAS target "GenericCodeGen" because target
  "glslang::GenericCodeGen" does not already exist.
Call Stack (most recent call first):
  CMakeLists.txt:116 (include)


CMake Warning at /usr/lib/cmake/SPIRVTargets.cmake:2 (message):
  Using `SPIRVTargets.cmake` is deprecated: use `find_package(glslang)` to
  find glslang CMake targets.
Call Stack (most recent call first):
  CMakeLists.txt:117 (include)


-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found WebP: /usr/include  
-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /var/lib/aurbuild/x86_64/gin/build
error: failed to build 'realesrgan-ncnn-vulkan-0.2.0-6': failed to run: makechrootpkg -r /var/lib/aurbuild/x86_64 -D /var/lib/repo/aur -d /var/lib/repo/aur -- -feA --noconfirm --noprepare --holdver: 
error: packages failed to build: realesrgan-ncnn-vulkan-0.2.0-6

aliu commented on 2023-09-15 01:11 (UTC)

Shouldn't the pkgver be 0.2.5?

HurricanePootis commented on 2022-09-21 00:14 (UTC)

@Pheidologeton That is Real-ESRGAN, not Real-ESRGAN-ncnn-vulkan. Real-ESRGAN-ncnn-vulkan lives here, and still hasn't been updated for Real-ESRGAN v0.3.0. Therefore, this package is up-to-date with Real-ESRGAN-ncnn-vulkan.