Skip to content

Instantly share code, notes, and snippets.

@dcunited001
Created March 3, 2021 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcunited001/eaf4a5baed38bdde7db5cc4e9a9b8233 to your computer and use it in GitHub Desktop.
Save dcunited001/eaf4a5baed38bdde7db5cc4e9a9b8233 to your computer and use it in GitHub Desktop.
gstreamer-nvidia bulid

nvidia-390xx version

❯ pacman -Qi nvidia-390xx-dkms                                                        ⇣0.42 KiB/s ⇡0.42 KiB/s 172.16.16.11   73.148.47.117   99%  ─╯
Name            : nvidia-390xx-dkms
Version         : 390.141-2
Description     : NVIDIA driver sources for linux, 390xx legacy branch
Architecture    : x86_64
URL             : https://www.nvidia.com/
Licenses        : custom
Groups          : None
Provides        : nvidia-390xx=390.141
Depends On      : dkms  nvidia-390xx-utils=390.141  libglvnd
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : nvidia  nvidia-390xx
Replaces        : None
Installed Size  : 26.87 MiB
Packager        : Pedro Henrique Lara Campos <root@pedrohlc.com>
Build Date      : Thu 25 Feb 2021 01:13:35 AM EST
Install Date    : Mon 01 Mar 2021 09:46:13 AM EST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

pamac info cuda

❯ pamac info cuda                                                                    ⇣22.71 KiB/s ⇡2.09 KiB/s 172.16.16.11   73.148.47.117   99%  ─╯
Name                  : cuda
Version               : 11.2.1-2
Description           : NVIDIA's GPU programming toolkit
URL                   : https://developer.nvidia.com/cuda-zone
Licenses              : custom:NVIDIA
Repository            : community
Installed Size        : 3.7 GB
Depends On            : gcc-libs gcc opencl-nvidia nvidia-utils python
Optional Dependencies : gdb: for cuda-gdb [Installed]
Provides              : cuda-toolkit cuda-sdk libcudart.so=11.2.1 libcublas.so=11.2.1 libcusolver.so=11.2.1 libcusparse.so=11.2.1
Replaces              : cuda-toolkit cuda-sdk cuda-static
Packager              : Sven-Hendrik Haase <svenstaro@gmail.com>
Build Date            : 02/24/2021
Install Date          : 03/01/2021
Install Reason        : Installed as a dependency for another package
Signatures            : Yes

gstreamer-nvidia build

❯ sudo pamac install gstreamer-nvidia                                                ⇣12.79 KiB/s ⇡0.75 KiB/s 172.16.16.11   73.148.47.117   99%  ─╯
Warning: gstreamer-nvidia is only available from AUR
Preparing...
Cloning gstreamer-nvidia build files...
Running as unit: run-u149.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 423ms
Running as unit: run-u150.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 7ms
Checking gstreamer-nvidia dependencies...

** (pamac:316863): CRITICAL **: 03:50:16.576: g_ptr_array_get_length: assertion 'self != NULL' failed
Resolving dependencies...
Checking inter-conflicts...

To build (2):
  gstreamer-nvidia-libs  1.16.2-1    AUR
  gstreamer-nvidia       1.16.2-1    AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y


Building gstreamer-nvidia...
Running as unit: run-u152.service
Press ^] three times within 1s to disconnect TTY.
==> Making package: gstreamer-nvidia 1.16.2-1 (Wed 03 Mar 2021 03:50:20 AM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating gst-plugins-bad git repo...
Fetching origin
==> Validating source files with sha256sums...
    gst-plugins-bad ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of gst-plugins-bad git repo...
Cloning into 'gst-plugins-bad'...
done.
Switched to a new branch 'makepkg'
==> Starting prepare()...
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
+ exec meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_lto=true -D b_pie=true gst-plugins-bad build -D aom=disabled -D assrender=disabled -D bs2b=disabled -D bz2=disabled -D chromaprint=disabled -D closedcaption=disabled -D colormanagement=disabled -D curl=disabled -D dashdemux=disabled -D dc1394=disabled -D de265=disabled -D dtls=disabled -D dtsdec=disabled -D faac=disabled -D faad=disabled -D fdkaac=disabled -D fluidsynthmidi=disabled -D gme=disabled -D hls=disabled -D kate=disabled -D ladspa=disabled -D lv2=disabled -D mms=disabled -D modplug=disabled -D mpeg2enc=disabled -D mplex=disabled -D musepack=disabled -D neonhttpsrc=disabled -D ofa=disabled -D openal=disabled -D openexr=disabled -D openjpeg=disabled -D opusparse=disabled -D resindvd=disabled -D rsvg=disabled -D rtmp=disabled -D sbc=disabled -D smoothstreaming=disabled -D sndfile=disabled -D soundtouch=disabled -D spandsp=disabled -D srt=disabled -D srtp=disabled -D teletext=disabled -D ttmlsubs=disabled -D vulkan=disabled -D waylandsink=disabled -D webp=disabled -D webrtc=disabled -D webrtcdsp=disabled -D wildmidi=disabled -D x265=disabled -D zbar=disabled -D directfb=disabled -D flite=disabled -D gsm=disabled -D iqa=disabled -D msdk=disabled -D nvdec=enabled -D nvenc=enabled -D opencv=disabled -D openh264=disabled -D openmpt=disabled -D openni2=disabled -D opensles=disabled -D sctp=disabled -D tinyalsa=disabled -D voaacenc=disabled -D voamrwbenc=disabled -D wasapi=disabled -D wpe=disabled -D gobject-cast-checks=disabled -D glib-asserts=disabled -D glib-checks=disabled -D 'package-name=GStreamer NVENC and NVDEC Plugins (Arch Linux)' -D package-origin=https://www.archlinux.org/
The Meson build system
Version: 0.57.1
Source dir: /var/cache/private/pamac/gstreamer-nvidia/src/gst-plugins-bad
Build dir: /var/cache/private/pamac/gstreamer-nvidia/src/build
Build type: native build
WARNING: Unknown options: "dashdemux, de265, dtsdec, fluidsynthmidi, mms, neonhttpsrc, opusparse, ttmlsubs, waylandsink"
The value of new options can be set with:
meson setup <builddir> --reconfigure -Dnew_option=new_value ...
Project name: gst-plugins-bad
Project version: 1.16.2
C compiler for the host machine: cc (gcc 10.2.0 "cc (GCC) 10.2.0")
C linker for the host machine: cc ld.bfd 2.36.1
C++ compiler for the host machine: c++ (gcc 10.2.0 "c++ (GCC) 10.2.0")
C++ linker for the host machine: c++ ld.bfd 2.36.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C++ supports arguments -Wno-non-virtual-dtor: YES 
Compiler for C supports link arguments -Wl,-Bsymbolic-functions: YES 
Compiler for C supports arguments -fvisibility=hidden: YES 
Compiler for C supports arguments -fno-strict-aliasing: YES 
Compiler for C++ supports arguments -fno-strict-aliasing: YES 
Message: Disabling GLib cast checks
Message: Disabling GLib asserts
Message: Disabling GLib checks
Has header "dlfcn.h" : YES 
Has header "fcntl.h" : YES 
Has header "inttypes.h" : YES 
Has header "memory.h" : YES 
Has header "netinet/in.h" : YES 
Has header "netinet/ip.h" : YES 
Has header "netinet/tcp.h" : YES 
Has header "pthread.h" : YES 
Has header "stdint.h" : YES 
Has header "stdlib.h" : YES 
Has header "strings.h" : YES 
Has header "string.h" : YES 
Has header "sys/param.h" : YES 
Has header "sys/socket.h" : YES 
Has header "sys/stat.h" : YES 
Has header "sys/time.h" : YES 
Has header "sys/types.h" : YES 
Has header "sys/utsname.h" : YES 
Has header "unistd.h" : YES 
Has header "windows.h" : NO 
Has header "winsock2.h" : NO 
Has header "ws2tcpip.h" : NO 
Checking for function "dcgettext" : YES 
Checking for function "getpagesize" : YES 
Checking for function "gmtime_r" : YES 
Checking for function "mmap" : YES 
Checking for function "pipe2" : YES 
Checking for size of "char" : 1
Checking for size of "int" : 4
Checking for size of "long" : 8
Checking for size of "short" : 2
Checking for size of "void*" : 8
Compiler for C supports arguments -Wmissing-prototypes: YES 
Compiler for C supports arguments -Wdeclaration-after-statement: YES 
Compiler for C supports arguments -Wold-style-definition: YES 
Compiler for C++ supports arguments -Wformat-nonliteral: YES 
Compiler for C supports arguments -Wmissing-declarations: YES 
Compiler for C++ supports arguments -Wmissing-declarations: YES 
Compiler for C supports arguments -Wredundant-decls: YES 
Compiler for C++ supports arguments -Wredundant-decls: YES 
Compiler for C supports arguments -Wwrite-strings: YES 
Compiler for C++ supports arguments -Wwrite-strings: YES 
Compiler for C supports arguments -Wformat: YES 
Compiler for C++ supports arguments -Wformat: YES 
Compiler for C supports arguments -Wformat-security: YES 
Compiler for C++ supports arguments -Wformat-security: YES 
Compiler for C supports arguments -Winit-self: YES 
Compiler for C++ supports arguments -Winit-self: YES 
Compiler for C supports arguments -Wmissing-include-dirs: YES 
Compiler for C++ supports arguments -Wmissing-include-dirs: YES 
Compiler for C supports arguments -Waddress: YES 
Compiler for C++ supports arguments -Waddress: YES 
Compiler for C supports arguments -Wno-multichar: YES 
Compiler for C++ supports arguments -Wno-multichar: YES 
Compiler for C supports arguments -Wvla: YES 
Compiler for C++ supports arguments -Wvla: YES 
Compiler for C supports arguments -Wpointer-arith: YES 
Compiler for C++ supports arguments -Wpointer-arith: YES 
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Run-time dependency gstreamer-1.0 found: YES 1.18.3
Run-time dependency gstreamer-base-1.0 found: YES 1.18.3
Run-time dependency gstreamer-net-1.0 found: YES 1.18.3
Run-time dependency gstreamer-controller-1.0 found: YES 1.18.3
Run-time dependency gstreamer-pbutils-1.0 found: YES 1.18.3
Run-time dependency gstreamer-allocators-1.0 found: YES 1.18.3
Run-time dependency gstreamer-app-1.0 found: YES 1.18.3
Run-time dependency gstreamer-audio-1.0 found: YES 1.18.3
Run-time dependency gstreamer-fft-1.0 found: YES 1.18.3
Run-time dependency gstreamer-riff-1.0 found: YES 1.18.3
Run-time dependency gstreamer-rtp-1.0 found: YES 1.18.3
Run-time dependency gstreamer-rtsp-1.0 found: YES 1.18.3
Run-time dependency gstreamer-sdp-1.0 found: YES 1.18.3
Run-time dependency gstreamer-tag-1.0 found: YES 1.18.3
Run-time dependency gstreamer-video-1.0 found: YES 1.18.3
Run-time dependency gstreamer-check-1.0 found: YES 1.18.3
Run-time dependency gstreamer-gl-1.0 found: YES 1.18.3
Message: GStreamer OpenGL window systems: wayland x11 gbm
Message: GStreamer OpenGL platforms: egl glx
Message: GStreamer OpenGL apis: gles2 gl
Library m found: YES
Run-time dependency glib-2.0 found: YES 2.66.7
Run-time dependency gmodule-2.0 found: YES 2.66.7
Run-time dependency gio-2.0 found: YES 2.66.7
Run-time dependency x11 found: YES 1.7.0
Run-time dependency orc-0.4 found: YES 0.4.32
Program orcc found: YES (/usr/bin/orcc)
Header <gst/gstconfig.h> has symbol "GST_DISABLE_GST_DEBUG" with dependency gstreamer-1.0: NO 
Message: GStreamer debug system is enabled
Program python3 found: YES (/usr/bin/python)
Program g-ir-scanner found: YES (/usr/bin/g-ir-scanner)
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Build-time dependency gobject-introspection-1.0 found: YES 1.66.1
Dependency gobject-introspection-1.0 found: YES 1.66.1 (cached)
Program g-ir-scanner found: YES (/usr/bin/g-ir-scanner)
Dependency gobject-introspection-1.0 found: YES 1.66.1 (cached)
Program g-ir-compiler found: YES (/usr/bin/g-ir-compiler)
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Found CMake: /usr/bin/cmake (3.19.6)
Run-time dependency opencv found: NO (tried pkgconfig and cmake)
Run-time dependency opencv4 found: YES 4.5.1
Run-time dependency wayland-client found: YES 1.19.0
Run-time dependency libdrm found: YES 2.4.104
Run-time dependency wayland-protocols found: YES 1.20
Program wayland-scanner found: YES (/usr/bin/wayland-scanner)
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Run-time dependency bluez found: YES 5.56
Run-time dependency gio-unix-2.0 found: YES 2.66.7
Program gdbus-codegen found: YES (/usr/bin/gdbus-codegen)
Library dl found: YES
Run-time dependency threads found: YES
Message: Building decklink plugin
Has header "linux/fb.h" : YES 
Has header "sys/socket.h" : YES (cached)
Checking for function "pipe" : YES 
Checking for function "socketpair" : YES 
Dependency libdrm found: YES 2.4.104 (cached)
Library rt found: YES
Has header "sys/socket.h" : YES (cached)
Run-time dependency gudev-1.0 found: YES 234
Run-time dependency libusb-1.0 found: YES 1.0.24
Has header "linux/uvcvideo.h" : YES 
Run-time dependency vdpau found: YES 1.4
Run-time dependency cuda-10.1 found: NO (tried pkgconfig and cmake)
Run-time dependency cudart-10.1 found: NO (tried pkgconfig and cmake)
Run-time dependency cuda-10.0 found: NO (tried pkgconfig and cmake)
Run-time dependency cudart-10.0 found: NO (tried pkgconfig and cmake)
Run-time dependency cuda-9.2 found: NO (tried pkgconfig and cmake)
Run-time dependency cudart-9.2 found: NO (tried pkgconfig and cmake)
Run-time dependency cuda-9.1 found: NO (tried pkgconfig and cmake)
Run-time dependency cudart-9.1 found: NO (tried pkgconfig and cmake)
Run-time dependency cuda-9.0 found: NO (tried pkgconfig and cmake)
Run-time dependency cudart-9.0 found: NO (tried pkgconfig and cmake)
Run-time dependency cuda-8.0 found: NO (tried pkgconfig and cmake)
Run-time dependency cudart-8.0 found: NO (tried pkgconfig and cmake)
Run-time dependency cuda-7.5 found: NO (tried pkgconfig and cmake)
Run-time dependency cudart-7.5 found: NO (tried pkgconfig and cmake)
Run-time dependency cuda-7.0 found: NO (tried pkgconfig and cmake)
Run-time dependency cudart-7.0 found: NO (tried pkgconfig and cmake)
Run-time dependency cuda-6.5 found: NO (tried pkgconfig and cmake)
Run-time dependency cudart-6.5 found: NO (tried pkgconfig and cmake)

gst-plugins-bad/sys/meson.build:115:2: ERROR: Problem encountered: The nvdec plugin was enabled explicitly, but required CUDA dependencies were not found.

A full log can be found at /var/cache/private/pamac/gstreamer-nvidia/src/build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
    Aborting...
Finished with result: exit-code
Main processes terminated with: code=exited/status=4
Service runtime: 8.027s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment