nvenc will currently not compile against gcc-16. gcc-15 is needed.
Search Criteria
Package Details: nvenc 9.14-1
Package Actions
| Git Clone URL: | https://aur.archlinux.org/nvenc.git (read-only, click to copy) |
|---|---|
| Package Base: | nvenc |
| Description: | NVIDIA Video Codec based command line encoder |
| Upstream URL: | https://github.com/rigaya/NVEnc |
| Licenses: | MIT |
| Submitter: | npreining |
| Maintainer: | npreining |
| Last Packager: | npreining |
| Votes: | 7 |
| Popularity: | 0.000152 |
| First Submitted: | 2022-02-15 01:30 (UTC) |
| Last Updated: | 2026-04-06 11:38 (UTC) |
Dependencies (8)
- cuda (cuda11.1AUR, cuda-12.2AUR, cuda12.0AUR, cuda11.4AUR, cuda-12.5AUR, cuda-12.9AUR, cuda-12.8AUR, cuda-pascalAUR)
- ffmpeg (ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-ffplayoutAUR, ffmpeg-cudaAUR, ffmpeg-decklinkAUR, ffmpeg-amd-fullAUR, ffmpeg-amd-full-gitAUR, librempeg-gitAUR, ffmpeg-whisper-gitAUR, ffmpeg-gitAUR, ffmpeg-full-gitAUR, ffmpeg-fullAUR, ffmpeg-full-llvmAUR, ffmpeg-libfdk_aacAUR, ffmpeg-obsAUR, ffmpeg-headlessAUR, ffmpeg-whisperAUR, ffmpeg-cuda-fullAUR)
- libass (libass-gitAUR)
- libdovi (libdovi-gitAUR)
- vapoursynth (vapoursynth-classicAUR, vapoursynth-gitAUR)
- cargo-c (cargo-c-gitAUR) (make)
- gcc (gcc-gitAUR, gccrs-gitAUR, gcc-snapshotAUR) (make)
- git (git-gitAUR, git-glAUR, git-wd40AUR) (make)
Required by (2)
- fastflix (optional)
- fastflix-bin (optional)
Sources (2)
bitspyer commented on 2026-05-07 07:39 (UTC)
npreining commented on 2026-03-28 08:31 (UTC)
@ycrack the meson build unconditionally used dtl.hpp and fails, I reported an issue: https://github.com/rigaya/NVEnc/issues/754
ycrack commented on 2026-03-21 04:39 (UTC)
nvenc has migrated its build process to meson starting with version 9.11
Tutul commented on 2026-02-15 19:08 (UTC)
@alighieridente check the pinned comment
alighieridente commented on 2026-02-15 14:27 (UTC)
It fails when building inside "clean chroot" and using AUR helper also.
Standard compilation work fine, though:
$ ./configure
...
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/avisynth -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/somepath/NVEnc-9.10_release/NVEnc-9.10/build_libhdr10plus/include
NVCCFLAGS = --generate-code arch=compute_75,code=[compute_75,sm_75] --generate-code arch=compute_86,code=[compute_86,sm_86] --generate-code arch=compute_120,code=[compute_120,sm_120] -Wno-deprecated-gpu-targets --cudart=static -std=c++17 -Xcudafe "--display_error_number --diag_suppress=108 --diag_suppress=63" -t 0 -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/avisynth -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/somepath/NVEnc-9.10_release/NVEnc-9.10/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/somepath/NVEnc-9.10_release/NVEnc-9.10/build_libhdr10plus/lib -lhdr10plus-rs -lgcc_s -lutil -lrt -lpthread -lm -ldl -lc
PREFIX = /usr/local
X86_64 = 1
#define ENCODER_REV "0"
#define ENABLE_AVI_READER 0
#define ENABLE_AVISYNTH_READER 1
#define ENABLE_VAPOURSYNTH_READER 0
#define ENABLE_AVSW_READER 1
#define ENABLE_SM_READER 0
#define ENABLE_LIBASS_SUBBURN 1
#define ENABLE_VMAF 0
#define ENABLE_AVCODEC_OUT_THREAD 1
#define AV_CHANNEL_LAYOUT_STRUCT_AVAIL 1
#define AV_FRAME_DURATION_AVAIL 1
#define AVCODEC_PAR_CODED_SIDE_DATA_AVAIL 1
#define AVS_INTERF_VER 11
#define ENABLE_CPP_REGEX 1
#define ENABLE_DTL 0
#define ENABLE_LIBDOVI 1
#define ENABLE_LIBHDR10PLUS 1
#define ENABLE_VULKAN (1 && 1)
#define ENABLE_LIBPLACEBO 1
#define ENABLE_PERF_COUNTER 0
successfully generated config.mak, rgy_config.h
[[https://aur.archlinux.org/packages/nvenc#comment-1059684]]
alighieridente commented on 2026-02-15 14:12 (UTC)
Build fails:
==> 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
==> 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 '/build/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...cuda not supported.
CNF_LOG=config.log
PKGCONFIG=pkg-config
USE_PKGCONFIG=1
ENABLE_DEBUG=0
NVCC=nvcc
CXX=g++
PROGRAM=nvencc
PREFIX=/usr
EXTRACXXFLAGS=
EXTRALDFLAGS=
EXTRACUDACXXFLAGS=
EXTRACUDALDFLAGS=
X86_64=1
CUDA_PATH=/opt/cuda
ENABLE_CPP_REGEX=1
CHECK_LIBAV_NAMES=libswresample libavutil libavcodec libavformat libavfilter libavdevice
ENABLE_AVSW_READER=1
ENABLE_VAPOURSYNTH=1
ENABLE_AVISYNTH=1
ENABLE_LIBASS=1
ENABLE_LIBVMAF=0
ENABLE_DTL=1
checking for g++...
### - checking for g++... --------------
------ command ------------
g++ -w cxx_check.c -o cxx_check
------ test ---------------
#include <iostream>
int main(void){ ; std::cout << "Hello World!" << std::endl; return 0;}
---------------------------
### - test fin -> 0 ----------
OK
checking for cuda (CUDA_PATH=/opt/cuda)...
nvcc=/opt/cuda/bin/nvcc
### - checking for cuda... --------------
------ command ------------
g++ -w cxx_check.c -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 -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 -L. -ldl -lstdc++ -lstdc++fs -m64 -L/opt/cuda/lib64 -lnppif_static -lnppig_static -lnppc_static -lcudart_static -lculibos -lcuda -lrt -o cxx_check
------ test ---------------
#include <iostream>
#include <cuda.h>
int main(void){ auto result = cuInit(0);; std::cout << "Hello World!" << std::endl; return 0;}
---------------------------
/usr/bin/ld: cannot find -lcuda: No such file or directory
collect2: error: ld returned 1 exit status
### - test fin -> 1 ----------
cuda not supported.
==> ERROR: A failure occurred in build().
Aborting...
$ find $CHROOT/root/ -type f -name nvcc -printf '%P\n' 2>/dev/null
opt/cuda/bin/nvcc
[[https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot#Building_in_the_chroot]]
npreining commented on 2025-10-07 09:59 (UTC)
@Joomzie I just pushed a nvenc-git package.
npreining commented on 2025-10-07 07:49 (UTC)
@Joomzie Yes I know about the state, I have informed upstream about the CUDA 13 issue: https://github.com/rigaya/NVEnc/issues/727
I am waiting for the next release so that it can actually build with CUDA 13.
I will look into adding a nvenv-git package, thanks for the suggestion.
Pinned Comments