From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: libvdpau: cannot open shared object Date: Tue, 12 Dec 2017 21:58:26 +0200 Message-ID: <20171212195826.GC1873@macbook41> References: <20171210151453.3a1ad3fe@jasniac.instanton> <20171210200852.GG23558@macbook41> <87mv2nopz8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2iBwrppp/7QCDedR" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOqhE-0005oT-QU for help-guix@gnu.org; Tue, 12 Dec 2017 14:58:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOqhB-0007hd-AI for help-guix@gnu.org; Tue, 12 Dec 2017 14:58:32 -0500 Content-Disposition: inline In-Reply-To: <87mv2nopz8.fsf@gnu.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: help-guix@gnu.org --2iBwrppp/7QCDedR Content-Type: multipart/mixed; boundary="WfZ7S8PLGjBY9Voh" Content-Disposition: inline --WfZ7S8PLGjBY9Voh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 12, 2017 at 05:44:43PM +0100, Ludovic Court=C3=A8s wrote: > Hi! >=20 > Efraim Flashner skribis: >=20 > > I just want to add that I ran: > > 'guix environment --ad-hoc vdpauinfo -- vdpauinfo' > > on my x86_64 GuixSD machine and I got the following: > > > > display: :0.0 screen: 0 > > Failed to open VDPAU backend libvdpau_i965.so: cannot open shared objec= t file: No such file or directory > > Error creating VDPAU device: 1 >=20 > Same here. >=20 > I searched for =E2=80=9Clibvdpau_i965.so=E2=80=9D on the intertubes and i= t seems to be a > problem =E2=80=9Ceveryone has.=E2=80=9D For instance: >=20 > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D869815 >=20 > So it seems that we lack a driver package. >=20 > Ludo=E2=80=99. here's a patch for libvdpau-va-gl. after setting 'VDPAU_DRIVER=3Dva_gl' and running 'guix environment --ad-hoc libvdpau-va-gl vdpauinfo -- vdpauinf= o' I get: display: :0.0 screen: 0 Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object f= ile: No such file or directory Error creating VDPAU device: 1 so it still needs some more work --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --WfZ7S8PLGjBY9Voh Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-Add-libvdpau-va-gl.patch" Content-Transfer-Encoding: quoted-printable =46rom da659401a0116d0810f003769c933253f5b18f4c Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner Date: Tue, 12 Dec 2017 21:44:49 +0200 Subject: [PATCH] gnu: Add libvdpau-va-gl. * gnu/packages/video.scm (libvdpau-va-gl): New variable. * gnu/packages/patches/libvdpau-va-gl-unbundle.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. --- gnu/local.mk | 1 + gnu/packages/patches/libvdpau-va-gl-unbundle.patch | 35 ++++++++++++++++++= ++++ gnu/packages/video.scm | 35 ++++++++++++++++++= ++++ 3 files changed, 71 insertions(+) create mode 100644 gnu/packages/patches/libvdpau-va-gl-unbundle.patch diff --git a/gnu/local.mk b/gnu/local.mk index 46829756b..2cfd35cd8 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -834,6 +834,7 @@ dist_patch_DATA =3D \ %D%/packages/patches/libunistring-gnulib-multi-core.patch \ %D%/packages/patches/libusb-0.1-disable-tests.patch \ %D%/packages/patches/libusb-for-axoloti.patch \ + %D%/packages/patches/libvdpau-va-gl-unbundle.patch \ %D%/packages/patches/libvpx-CVE-2016-2818.patch \ %D%/packages/patches/libxcb-python-3.5-compat.patch \ %D%/packages/patches/libxml2-CVE-2016-4658.patch \ diff --git a/gnu/packages/patches/libvdpau-va-gl-unbundle.patch b/gnu/packa= ges/patches/libvdpau-va-gl-unbundle.patch new file mode 100644 index 000000000..b15e15c2a --- /dev/null +++ b/gnu/packages/patches/libvdpau-va-gl-unbundle.patch @@ -0,0 +1,35 @@ +From 18e3ff648356cf06a39372aa4a4bbf2732d9d0f4 Mon Sep 17 00:00:00 2001 +From: Efraim Flashner +Date: Tue, 12 Dec 2017 21:36:44 +0200 +Subject: [PATCH] don't use bundled libvdpau headers + +--- + CMakeLists.txt | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0484179..e950707 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -9,16 +9,17 @@ find_package(PkgConfig REQUIRED) + find_package(X11 REQUIRED) + pkg_check_modules(LIBVA libva-x11 REQUIRED) + pkg_check_modules(LIBGL gl REQUIRED) ++pkg_check_modules(LIBVDPAU vdpau REQUIRED) +=20 + set(DRIVER_NAME "vdpau_va_gl" CACHE STRING "driver name") + set(LIB_SUFFIX "" CACHE STRING "library path suffix (if needed)") + set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/vdpau" CACH= E PATH "library installation path") +=20 + include_directories ( +- 3rdparty + ${X11_INCLUDE_DIRS} + ${LIBVA_INCLUDE_DIRS} + ${LIBGL_INCLUDE_DIRS} ++ ${LIBVDPAU_INCLUDE_DIRS} + ${GENERATED_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR} + ) +--=20 +2.15.1 + diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 0bd1be6e6..d8f8081fe 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -1864,6 +1864,41 @@ present in modern GPUs.") implementation.") (license (license:x11-style "file://COPYING")))) =20 +(define-public libvdpau-va-gl + (package + (name "libvdpau-va-gl") + (version "0.4.2") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/i-rinat/libvdpau-va-gl/" + "releases/download/v" version "/libvdpau-va-gl= -" + version ".tar.gz")) + (sha256 + (base32 + "1x2ag1f2fwa4yh1g5spv99w9x1m33hbxlqwyhm205ssq0ra234bx")) + (patches (search-patches "libvdpau-va-gl-unbundle.patch")) + (modules '((guix build utils))) + (snippet '(delete-file-recursively "3rdparty")))) + (build-system cmake-build-system) + (arguments + '(#:tests? #f)) ; Tests require a running X11 server, with VA-API sup= port. + (native-inputs + `(("libvdpau" ,libvdpau) + ("pkg-config" ,pkg-config))) + (inputs + `(("libva" ,libva) + ("mesa" ,mesa))) + (home-page "https://github.com/i-rinat/libvdpau-va-gl") + (synopsis "VDPAU driver with VA-API/OpenGL backend") + (description + "Many applications can use VDPAU to accelerate portions of the video +decoding process and video post-processing to the GPU video hardware. Sin= ce +there is no VDPAU available on Intel chips, they fall back to different dr= awing +techniques. This driver uses OpenGL under the hood to accelerate drawing = and +scaling and VA-API (if available) to accelerate video decoding.") + (license license:expat))) + (define-public recordmydesktop (package (name "recordmydesktop") --=20 2.15.1 --WfZ7S8PLGjBY9Voh-- --2iBwrppp/7QCDedR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlowNN4ACgkQQarn3Mo9 g1FLbhAAiT0DRXfx/5oYO5lu07a9wxHqq6dPB7ClorHGVs26sP8MHha05ADBQkZF /zafC4IEfnUjGO+KxCKecpjzgZ7Kw0B2CqkebKl6ONW+3vSGXzfxy/GUzMD9XZ4V fC8woSylU1P4gzuotAA5MkiqXOIaIc0j6chFwDrMWvJyfrkwoFZ0TAO94vrzsVdO mz+aDOeVWU74l6Y0nteeK8L6Vyc5Q+vgT30EQr7Ukii92fORsrbculPUnwokjKLu CWm8lq7N1dC1g5XDcgX5QZo+KM3OEgrwPDw/tumFm2bZbx7i6JJYGRRGpNJxdK2z EOoK47VUnY7g0X7XdJMg71VwxXXJYE3xsXdB2dY5P+pUFMQ7pYtpY6U0d2ogZAIt MYQjbW4Tj8sqI0IwvZyiIOl9AxahKy9SVVE/oG7rGJf4waBJI0AYPIKGCZFX3KAi bTqZHkkZES4DjzHO5Im4i+jO77Z2ltUWcz2hTb4N77Nvra+HC+T+u/iluyQ4Zu2B qlPJHwtkvECISz8Y0LaNurCaGd0ZLL8Hjp0iYljT5lDuypbyHAIiWdrU+l0LtadT kG21UXdCdnu1xqnZpfkGkfHvm7sXIqT5Ks5Jc7Bn11AASHI73TV2CyGVOORAcgkz StjUkSJqmFEdJyPlg15x8ZHH4DT73+thfY2vD7J2b77Kz5pdpBY= =yPS1 -----END PGP SIGNATURE----- --2iBwrppp/7QCDedR--