NVIDIA EGL Libraries

Introduction to NVIDIA EGL Libraries

The NVIDIA EGL Libraries allow the EGL drivers for the NVIDIA driver to function properly. If you are not installing NVIDIA-575.64, skip this package.

NVIDIA EGL Libraries Dependencies

Required

GBM (GBM fra Mesa-25.1.4 eller Mesa-25.1.4), libdrm-2.4.125, libglvnd-1.7.0, Wayland-1.23.1, Wayland-Protocols-1.45, and Xorg Biblioteker

Downloading NVIDIA EGL Libraries

First, create a list of files to be downloaded:

cat > nvidia-egl-list << "EOF"
eglexternalplatform/archive/1.2.1/eglexternalplatform-1.2.1.tar.gz
egl-gbm/archive/1.1.2.1/egl-gbm-1.1.2.1.tar.gz
egl-wayland/archive/1.1.19/egl-wayland-1.1.19.tar.gz
egl-x11/archive/v1.0.2/egl-x11-1.0.2.tar.gz
EOF

To download the needed files using Wget-1.25.0, use the following commands:

mkdir nvidia-egl &&
cd nvidia-egl &&
grep -v '^#' ../nvidia-egl-list | wget -i- -c \
    -B https://github.com/NVIDIA/

Installation of NVIDIA EGL Libraries

[Notat]

Notat

Når du installerer flere pakker i et skript, må installasjonen gjøres som root bruker. Det finnes tre generelle alternativer som kan brukes til å gjøre dette:

  1. Kjør hele skriptet som root bruker (ikke anbefalt).

  2. Bruk sudo kommandoen fra sudo pakken.

  3. Use su -c "command arguments" ((anførselstegn kreves) som vil be om root passordet for hver iterasjon av løkken.

En måte å håndtere denne situasjonen på er å lage en kort bash funksjon som automatisk velger riktig metode. Når kommandoen er satt i miljøet, trenger den ikke å settes på nytt.

as_root()
{
  if   [ $EUID = 0 ];        then $*
  elif [ -x /usr/bin/sudo ]; then sudo $*
  else                            su -c \\"$*\\"
  fi
}

export -f as_root

First, start a subshell that will exit on error:

bash -e

Install all of the libraries by running the following commands:

for package in $(grep -v '^#' ../nvidia-egl-list)
do
  package=$(basename "$package")
  packagedir=${package%.tar.?z*}
  tar -xf $package
  pushd $packagedir
     mkdir build
     cd    build
       meson setup --prefix=/usr       \
                   --buildtype=release \
                   ..
       ninja
     as_root ninja install
  popd
  rm -rf $packagedir
  as_root /sbin/ldconfig
done

Finally, exit the shell that was started earlier:

exit

Contents

Installed Programs: None
Installed Libraries: libnvidia-egl-gbm, libnvidia-egl-wayland, libnvidia-egl-xcb, and libnvidia-egl-xlib
Installed Directories: /usr/share/egl/egl_external_platform.d

Short Descriptions

libnvidia-egl-gbm

provides GBM EGL application support

libnvidia-egl-wayland

provides client-side Wayland EGL application support

libnvidia-egl-xcb

provides EGL XCB support

libnvidia-egl-xlib

provides EGL XLib support