Sample Header Ad - 728x90

NVENC encoder missing in OBS, AUR package fails to compile on Arch Linux

0 votes
0 answers
86 views
I have an Nvidia GeForce RTX 4090. I am trying to use the NVENC encoder on OBS. Currently, only the software option, x264, appears in the settings. I attempted to install NVENC using the AUR. However, the building fails prematurely. What went wrong?
> yay nvenc
...
1 aur/nvenc 8.04-1 (+7 0.29) 
    NVIDIA Video Codec based command line encoder
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 1
AUR Explicit (1): nvenc-8.04-1
Sync Make Dependency (1): cargo-c-0.10.12-1
...
==> Making package: nvenc 8.04-1
==> Retrieving sources...
  -> Cloning NVEnc git repo...
Cloning into bare repository '/home/dan/.cache/yay/nvenc/NVEnc'...
remote: Enumerating objects: 22316, done.
...
Resolving deltas: 100% (500/500), done.
  -> Found ldflags-adjustments.patch
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    NVEnc ... Passed
    cppcodec ... Skipped
    ldflags-adjustments.patch ... Passed
:: Remove make dependencies after install? [y/N] y
:: (1/1) Parsing SRCINFO: nvenc
[sudo] password for dan: 
resolving dependencies...
looking for conflicting packages...

Packages (1) cargo-c-0.10.12-1

Total Installed Size:  98.83 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                             [##########################################] 100%
...
(1/1) installing cargo-c                                                   [##########################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Making package: nvenc 8.04-1
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating NVEnc git repo...
  -> Updating cppcodec git repo...
  -> Found ldflags-adjustments.patch
==> Validating source files with sha256sums...
    NVEnc ... Passed
    cppcodec ... Skipped
    ldflags-adjustments.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of NVEnc git repo...
Cloning into 'NVEnc'...
done.
Switched to a new branch 'makepkg'
  -> Creating working copy of cppcodec git repo...
Cloning into 'cppcodec'...
done.
==> Starting prepare()...
patching file makefile
==> Sources are ready.
==> Making package: nvenc 8.04-1
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Submodule 'build_pkg' (https://github.com/rigaya/build_pkg.git)  registered for path 'build_pkg'
Submodule 'cppcodec' (https://github.com/tplgy/cppcodec.git)  registered for path 'cppcodec'
Submodule 'dtl' (https://github.com/cubicdaiya/dtl)  registered for path 'dtl'
Cloning into '/home/dan/.cache/yay/nvenc/src/NVEnc/cppcodec'...
Submodule path 'cppcodec': checked out 'bd6ddf95129e769b50ef63e0f558fa21364f3f65'
checking for g++...checking for g++...OK
egrep: warning: egrep is obsolescent; using grep -E
checking for cuda (CUDA_PATH=/opt/cuda)...nvcc=/opt/cuda/bin/nvcc
checking for cuda...OK, CUDA 12.8
...
Checking for hdr10plus...couldn't find system wide libhdr10plus, trying included one.
checking for cargo...OK
--2025-05-11 13:38:45--  https://github.com/quietvoid/hdr10plus_tool/archive/refs/tags/1.6.1.tar.gz 
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving github.com (github.com)... 20.27.177.113
Connecting to github.com (github.com)|20.27.177.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/quietvoid/hdr10plus_tool/tar.gz/refs/tags/1.6.1  [following]
--2025-05-11 13:38:45--  https://codeload.github.com/quietvoid/hdr10plus_tool/tar.gz/refs/tags/1.6.1 
Resolving codeload.github.com (codeload.github.com)... 20.27.177.114
Connecting to codeload.github.com (codeload.github.com)|20.27.177.114|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘hdr10plus_tool.tar.gz’

hdr10plus_tool.tar.gz              [                                                  ]   2.67M  7.24MB/s    in 0.4s    

2025-05-11 13:38:46 (7.24 MB/s) - ‘hdr10plus_tool.tar.gz’ saved 

   Compiling proc-macro2 v1.0.86
   ...
   Compiling serde_derive v1.0.210
   Compiling hdr10plus v2.1.3 (/home/dan/.cache/yay/nvenc/src/NVEnc/hdr10plus_tool/hdr10plus)
    Finished release profile [optimized] target(s) in 7.46s
    Building pkg-config files
    Building header file using cbindgen
  Populating uninstalled header directory
  Installing pkg-config file
  Installing header file
  Installing static library
  Installing shared library
checking libhdr10plus with pkg-config...OK
checking for hdr10plus.h...yes
checking vulkan with pkg-config...OK
checking for vulkan/vulkan.h...no
checking vapoursynth with pkg-config...OK
checking for VapourSynth.h...yes
checking for VSScript.h...yes
checking avisynth with pkg-config...libs could not be detected by pkg-config. [ PKG_CONFIG_PATH=:/usr/lib/pkgconfig ]
checking for avisynth_c.h...no
checking libass with pkg-config...OK
checking for ass/ass.h...yes
checking for dtl/dtl.hpp...checking for dtl/dtl.hpp...no

Creating config.mak, rgy_config.h...
SRCDIR = .
CXX = g++
NVCC = /opt/cuda/bin/nvcc
LD = g++
PROGRAM = nvencc
ENABLE_DEBUG = 0
CXXFLAGS = -Wall -Wno-unknown-pragmas -Wno-unused -Wno-missing-braces -DLINUX -DUNIX -D_FILE_OFFSET_BITS=64 -D__USE_LARGEFILE64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -pthread -msse2 -fPIE -O3 -DNDEBUG=1 -mfpmath=sse -ffast-math -fomit-frame-pointer -std=c++17 -I. -I./NVEncSDK/Common/inc -I./NVEncCore -I./NVEncNVOFFRUC -I./NVEncNVSDKNGX -I./jitify -I./tinyxml2 -I./cppcodec -I./ttmath -DLINUX64 -m64 -I/opt/cuda/include -I/usr/include/vapoursynth -I/usr/include/python3.13 -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/home/dan/.cache/yay/nvenc/src/NVEnc/build_libhdr10plus/include
NVCCFLAGS = --generate-code arch=compute_50,code=[compute_50,sm_50] --generate-code arch=compute_61,code=[compute_61,sm_61] --generate-code arch=compute_75,code=[compute_75,sm_75] --generate-code arch=compute_86,code=[compute_86,sm_86] -Wno-deprecated-gpu-targets --cudart=static -std=c++14 -Xcudafe "--display_error_number --diag_suppress=108 --diag_suppress=63" -t 0 -std=c++14 -ccbin g++ -I/opt/cuda/include -I. -I./NVEncSDK/Common/inc -I./NVEncCore -I./NVEncNVOFFRUC -I./NVEncNVSDKNGX -I./jitify -I./tinyxml2 -I./cppcodec -I./ttmath -DLINUX64 -m64 -Xcompiler "-Wall -Wno-unknown-pragmas -Wno-unused -Wno-missing-braces -DLINUX -DUNIX -D_FILE_OFFSET_BITS=64 -D__USE_LARGEFILE64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -pthread -msse2 -fPIE -O3 -DNDEBUG=1 -mfpmath=sse -ffast-math -fomit-frame-pointer -I/usr/include/vapoursynth -I/usr/include/python3.13 -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/home/dan/.cache/yay/nvenc/src/NVEnc/build_libhdr10plus/include "
LDFLAGS = -L. -ldl -lstdc++ -lstdc++fs -m64 -pthread -L/opt/cuda/lib64 -lnppif_static -lnppig_static -lnppc_static -lcudart_static -lculibos -lcuda -lrt -lavdevice -lavfilter -lavformat -lavcodec -lswresample -lavutil -lass -ldovi -lgcc_s -lutil -lrt -lpthread -lm -ldl -lc -L/home/dan.cache/yay/nvenc/src/NVEnc/build_libhdr10plus/lib -lhdr10plus-rs -lgcc_s -lutil -lrt -lpthread -lm -ldl -lc
PREFIX = /usr
X86_64 = 1
#define ENCODER_REV "3322"
#define ENABLE_AVI_READER 0
#define ENABLE_AVISYNTH_READER 0
#define ENABLE_VAPOURSYNTH_READER 1
...
#define ENABLE_LIBHDR10PLUS 1
#define ENABLE_VULKAN (0 && 0)
#define ENABLE_LIBPLACEBO 0
#define ENABLE_PERF_COUNTER 0
successfully generated config.mak, rgy_config.h
/opt/cuda/bin/nvcc -c --generate-code arch=compute_50,code=[compute_50,sm_50] --generate-code arch=compute_61,code=[compute_61,sm_61] --generate-code arch=compute_75,code=[compute_75,sm_75] --generate-code arch=compute_86,code=[compute_86,sm_86] -Wno-deprecated-gpu-targets --cudart=static -std=c++14 -Xcudafe "--display_error_number --diag_suppress=108 --diag_suppress=63" -t 0 -std=c++14 -ccbin g++ -I/opt/cuda/include -I. -I./NVEncSDK/Common/inc -I./NVEncCore -I./NVEncNVOFFRUC -I./NVEncNVSDKNGX -I./jitify -I./tinyxml2 -I./cppcodec -I./ttmath -DLINUX64 -m64 -Xcompiler "-Wall -Wno-unknown-pragmas -Wno-unused -Wno-missing-braces -DLINUX -DUNIX -D_FILE_OFFSET_BITS=64 -D__USE_LARGEFILE64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -pthread -msse2 -fPIE -O3 -DNDEBUG=1 -mfpmath=sse -ffast-math -fomit-frame-pointer -I/usr/include/vapoursynth -I/usr/include/python3.13 -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/home/dan.cache/yay/nvenc/src/NVEnc/build_libhdr10plus/include " -o NVEncCore/NVEncFilterAfsAnalyze.o NVEncCore/NVEncFilterAfsAnalyze.cu
/usr/include/c++/15.1.1/type_traits(554): error: type name is not allowed
      : public __bool_constant
                                            ^

/usr/include/c++/15.1.1/type_traits(554): error: identifier "__is_pointer" is undefined
      : public __bool_constant
                               ^

/usr/include/c++/15.1.1/type_traits(876): error: type name is not allowed
      : public __bool_constant
                                             ^

/usr/include/c++/15.1.1/type_traits(876): error: identifier "__is_volatile" is undefined
      : public __bool_constant
                               ^

/usr/include/c++/15.1.1/type_traits(1491): error: type name is not allowed
      : public integral_constant { };
                                                           ^

/usr/include/c++/15.1.1/type_traits(1491): error: identifier "__array_rank" is undefined
      : public integral_constant { };
                                              ^

/usr/include/c++/15.1.1/type_traits(1843): error: incomplete type "std::__cv_selector::__unsigned_type, false, >" (aka "std::__cv_selector>") is not allowed
        using __type = typename __match::__type;
                                ^
          detected during:
            instantiation of class "std::__match_cv_qualifiers [with _Qualified=wchar_t, _Unqualified=unsigned int, _IsConst=false, _IsVol=]" at line 1952
            instantiation of class "std::__make_unsigned_selector [with _Tp=wchar_t]" at line 1963

/usr/include/c++/15.1.1/type_traits(1843): error: incomplete type "std::__cv_selector::__unsigned_type, false, >" (aka "std::__cv_selector>") is not allowed
        using __type = typename __match::__type;
                                ^
          detected during:
            instantiation of class "std::__match_cv_qualifiers [with _Qualified=char16_t, _Unqualified=unsigned short, _IsConst=false, _IsVol=]" at line 1952
            instantiation of class "std::__make_unsigned_selector [with _Tp=char16_t]" at line 1979

/usr/include/c++/15.1.1/type_traits(1843): error: incomplete type "std::__cv_selector::__unsigned_type, false, >" (aka "std::__cv_selector>") is not allowed
        using __type = typename __match::__type;
                                ^
          detected during:
            instantiation of class "std::__match_cv_qualifiers [with _Qualified=char32_t, _Unqualified=unsigned int, _IsConst=false, _IsVol=]" at line 1952
            instantiation of class "std::__make_unsigned_selector [with _Tp=char32_t]" at line 1986

/usr/include/c++/15.1.1/type_traits(1843): error: incomplete type "std::__cv_selector::__unsigned_type, false, >" is not allowed
        using __type = typename __match::__type;
                                ^
          detected during:
            instantiation of class "std::__match_cv_qualifiers [with _Qualified=wchar_t, _Unqualified=, _IsConst=false, _IsVol=]" at line 1914
            instantiation of class "std::__make_unsigned_selector [with _Tp=wchar_t]" at line 2081
            instantiation of class "std::__make_signed_selector [with _Tp=wchar_t]" at line 2095

/usr/include/c++/15.1.1/type_traits(2084): error: incomplete type "std::__make_signed_selector::__unsigned_type, false, >" is not allowed
        using __type = typename __make_signed_selector::__type;
                                ^
          detected during instantiation of class "std::__make_signed_selector [with _Tp=wchar_t]" at line 2095

/usr/include/c++/15.1.1/type_traits(1843): error: incomplete type "std::__cv_selector::__unsigned_type, false, >" is not allowed
        using __type = typename __match::__type;
                                ^
          detected during:
            instantiation of class "std::__match_cv_qualifiers [with _Qualified=char16_t, _Unqualified=, _IsConst=false, _IsVol=]" at line 1914
            instantiation of class "std::__make_unsigned_selector [with _Tp=char16_t]" at line 2081
            instantiation of class "std::__make_signed_selector [with _Tp=char16_t]" at line 2111

/usr/include/c++/15.1.1/type_traits(2084): error: incomplete type "std::__make_signed_selector::__unsigned_type, false, >" is not allowed
        using __type = typename __make_signed_selector::__type;
                                ^
          detected during instantiation of class "std::__make_signed_selector [with _Tp=char16_t]" at line 2111

/usr/include/c++/15.1.1/type_traits(1843): error: incomplete type "std::__cv_selector::__unsigned_type, false, >" is not allowed
        using __type = typename __match::__type;
                                ^
          detected during:
            instantiation of class "std::__match_cv_qualifiers [with _Qualified=char32_t, _Unqualified=, _IsConst=false, _IsVol=]" at line 1914
            instantiation of class "std::__make_unsigned_selector [with _Tp=char32_t]" at line 2081
            instantiation of class "std::__make_signed_selector [with _Tp=char32_t]" at line 2118

/usr/include/c++/15.1.1/type_traits(2084): error: incomplete type "std::__make_signed_selector::__unsigned_type, false, >" is not allowed
        using __type = typename __make_signed_selector::__type;
                                ^
          detected during instantiation of class "std::__make_signed_selector [with _Tp=char32_t]" at line 2118

/usr/include/c++/15.1.1/bits/stl_algobase.h(1239): error: type name is not allowed
      || __is_pointer(_ValueType1)
                      ^

/usr/include/c++/15.1.1/bits/stl_algobase.h(1412): error: type name is not allowed
    && __is_pointer(_II1) && __is_pointer(_II2)
                    ^

/usr/include/c++/15.1.1/bits/stl_algobase.h(1412): error: type name is not allowed
    && __is_pointer(_II1) && __is_pointer(_II2)
                                          ^

/usr/include/c++/15.1.1/bits/new_allocator.h(151): error: identifier "__builtin_operator_new" is undefined
   return static_cast(__builtin_operator_new(__n * sizeof(_Tp)));
                            ^

/usr/include/c++/15.1.1/bits/stl_tempbuf.h(94): error: identifier "__builtin_operator_new" is undefined
   return (_Tp*) __builtin_operator_new(__len * sizeof(_Tp), nothrow_t());
                 ^

/usr/include/c++/15.1.1/type_traits(143): error: class "std::enable_if, void>" has no member "type"
      using __enable_if_t = typename enable_if::type;
                                                            ^
          detected during:
            instantiation of type "std::__enable_if_t, void>" at line 188
            instantiation of "std::__detail::__and_fn" based on template arguments >, std::is_default_constructible> at line 204
            instantiation of class "std::__and_ [with _Bn=>, std::is_default_constructible>]" at line 160 of /usr/include/c++/15.1.1/bits/unique_ptr.h
            instantiation of class "std::__uniq_ptr_impl [with _Tp=Hdr10PlusRsJsonOpaque, _Dp=funcHdr10PlusRsJsonOpaqueDelete]" at line 233 of /usr/include/c++/15.1.1/bits/unique_ptr.h
            instantiation of class "std::__uniq_ptr_data, > [with _Tp=Hdr10PlusRsJsonOpaque, _Dp=funcHdr10PlusRsJsonOpaqueDelete, =true, =true]" at line 277 of /usr/include/c++/15.1.1/bits/unique_ptr.h
            instantiation of class "std::unique_ptr [with _Tp=Hdr10PlusRsJsonOpaque, _Dp=funcHdr10PlusRsJsonOpaqueDelete]" at line 53 of NVEncCore/rgy_hdr10plus.h

NVEncCore/rgy_cuda_util.h(287): error: no instance of constructor "std::unique_ptr::unique_ptr [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" matches the argument list
          : frame(), event(), framebuftype(CUFrameBufType::Unknown), refFrameHost() {
                                                                                 ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(525): note #3322-D: number of parameters of function "std::unique_ptr::unique_ptr(const std::unique_ptr &) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
        unique_ptr(const unique_ptr&) = delete;
        ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(385): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(std::auto_ptr &&) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   unique_ptr(auto_ptr&& __u) noexcept;
   ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(374): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(std::unique_ptr &&) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   unique_ptr(unique_ptr&& __u) noexcept
   ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(360): note #3322-D: number of parameters of function "std::unique_ptr::unique_ptr(std::unique_ptr &&) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
        unique_ptr(unique_ptr&&) = default;
        ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(353): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(std::nullptr_t) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   constexpr unique_ptr(nullptr_t) noexcept
             ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(347): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(CUFrameBufBase *, std::__enable_if_t::value, _DelUnref &&>) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   unique_ptr(pointer,
   ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(338): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(CUFrameBufBase *, std::__enable_if_t, _Del &&>) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   unique_ptr(pointer __p,
   ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(325): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(CUFrameBufBase *, const std::default_delete &) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   unique_ptr(pointer __p, const deleter_type& __d) noexcept
   ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(311): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(CUFrameBufBase *) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   unique_ptr(pointer __p) noexcept
   ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(298): note #3327-D: candidate function template "std::unique_ptr::unique_ptr() [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" failed deduction
   constexpr unique_ptr() noexcept
             ^

NVEncCore/rgy_cuda_util.h(291): error: no instance of constructor "std::unique_ptr::unique_ptr [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" matches the argument list
          : frame(), event(), framebuftype(CUFrameBufType::Unknown), refFrameHost() {
                                                                                 ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(525): note #3322-D: number of parameters of function "std::unique_ptr::unique_ptr(const std::unique_ptr &) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
        unique_ptr(const unique_ptr&) = delete;
        ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(385): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(std::auto_ptr &&) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   unique_ptr(auto_ptr&& __u) noexcept;
   ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(374): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(std::unique_ptr &&) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   unique_ptr(unique_ptr&& __u) noexcept
   ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(360): note #3322-D: number of parameters of function "std::unique_ptr::unique_ptr(std::unique_ptr &&) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
        unique_ptr(unique_ptr&&) = default;
        ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(353): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(std::nullptr_t) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   constexpr unique_ptr(nullptr_t) noexcept
             ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(347): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(CUFrameBufBase *, std::__enable_if_t::value, _DelUnref &&>) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   unique_ptr(pointer,
   ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(338): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(CUFrameBufBase *, std::__enable_if_t, _Del &&>) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   unique_ptr(pointer __p,
   ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(325): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(CUFrameBufBase *, const std::default_delete &) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   unique_ptr(pointer __p, const deleter_type& __d) noexcept
   ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(311): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(CUFrameBufBase *) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   unique_ptr(pointer __p) noexcept
   ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(298): note #3327-D: candidate function template "std::unique_ptr::unique_ptr() [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" failed deduction
   constexpr unique_ptr() noexcept
             ^

NVEncCore/rgy_cuda_util.h(299): error: no instance of constructor "std::unique_ptr::unique_ptr [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" matches the argument list
          : frame(_info), event(), framebuftype(CUFrameBufType::Unknown), refFrameHost() {
                                                                                      ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(525): note #3322-D: number of parameters of function "std::unique_ptr::unique_ptr(const std::unique_ptr &) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
        unique_ptr(const unique_ptr&) = delete;
        ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(385): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(std::auto_ptr &&) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   unique_ptr(auto_ptr&& __u) noexcept;
   ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(374): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(std::unique_ptr &&) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   unique_ptr(unique_ptr&& __u) noexcept
   ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(360): note #3322-D: number of parameters of function "std::unique_ptr::unique_ptr(std::unique_ptr &&) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
        unique_ptr(unique_ptr&&) = default;
        ^
/usr/include/c++/15.1.1/bits/unique_ptr.h(353): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr(std::nullptr_t) [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   constexpr unique_ptr(nullptr_t) noexcept
             ^
...
/usr/include/c++/15.1.1/bits/unique_ptr.h(298): note #3322-D: number of parameters of function template "std::unique_ptr::unique_ptr() [with _Tp=CUFrameBufBase, _Dp=std::default_delete]" does not match the call
   constexpr unique_ptr() noexcept
             ^

26 errors detected in the compilation of "NVEncCore/NVEncFilterAfsAnalyze.cu".
make: *** [makefile:45: NVEncCore/NVEncFilterAfsAnalyze.o] Error 255
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: nvenc-exit status 4
checking dependencies...

Packages (1) cargo-c-0.10.12-1

Total Removed Size:  98.83 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
(1/1) removing cargo-c                                                     [##########################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
 -> Failed to install the following packages. Manual intervention is required:
nvenc - exit status 4
Asked by Hyunbin Yoo (175 rep)
May 11, 2025, 05:04 AM
Last activity: May 11, 2025, 06:32 AM