From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: libvdpau: cannot open shared object Date: Fri, 15 Dec 2017 08:38:55 +0200 Message-ID: <20171215063855.GA1457@macbook41> References: <20171210151453.3a1ad3fe@jasniac.instanton> <20171210200852.GG23558@macbook41> <87mv2nopz8.fsf@gnu.org> <20171212195826.GC1873@macbook41> <876099u187.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePjeA-0005ZO-QW for help-guix@gnu.org; Fri, 15 Dec 2017 01:39:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePje7-0007eU-6N for help-guix@gnu.org; Fri, 15 Dec 2017 01:39:02 -0500 Content-Disposition: inline In-Reply-To: <876099u187.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 --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 14, 2017 at 10:07:20AM +0100, Ludovic Court=C3=A8s wrote: > Hi! >=20 > Efraim Flashner skribis: >=20 > > On Tue, Dec 12, 2017 at 05:44:43PM +0100, Ludovic Court=C3=A8s wrote: >=20 > [...] >=20 > >> I searched for =E2=80=9Clibvdpau_i965.so=E2=80=9D on the intertubes an= d it 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 -- vdpa= uinfo' > > I get: > > display: :0.0 screen: 0 > > Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared obje= ct file: No such file or directory > > Error creating VDPAU device: 1 > > so it still needs some more work >=20 > What if you point LD_LIBRARY_PATH to libvdpau-va-gl? >=20 > > From da659401a0116d0810f003769c933253f5b18f4c Mon Sep 17 00:00:00 2001 > > From: 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. >=20 > [...] >=20 > > + (native-inputs > > + `(("libvdpau" ,libvdpau) >=20 > Should move to =E2=80=98inputs=E2=80=99 I guess? >=20 > Otherwise LGTM, thanks for acting this fast! $ guix gc --references $(guix build libvdpau-va-gl) /gnu/store/1zfmi6bixxz3fljr4kfy37xpjial90p1-libva-1.8.3 /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25 /gnu/store/6wyjls0q2c9gjskkplsr1ad09p3d8gzg-gcc-5.4.0-lib /gnu/store/7mdyg1vigcxqb1ra16mdqnhz8aa00xc7-libxext-1.3.3 /gnu/store/8z7130mb33a3jqliqs6bq2d46mar5gqy-mesa-17.2.1 /gnu/store/d3pbj6vynkig0v0lnwp9nh04sijxin2w-libvdpau-va-gl-0.4.2 /gnu/store/p37m873k9k69m944njar80i6bsmqrcvj-libx11-1.6.5 libvdpau is actually a propagated input of mesa >=20 > When we have that, we can at least arrange for things to work > out-of-the-box on GuixSD. It=E2=80=99s better if we can do that without = setting > LD_LIBRARY_PATH, we=E2=80=99ll have to investigate how this can be done. = At > least, we=E2=80=99ll have to set VDPAU_DRIVER=3Dva_gl I presume? >=20 > Thanks, > Ludo=E2=80=99. =46rom the upstream documentation VDPAU_DRIVER=3Dva_gl is the minimum needed to get it working, and then there are a couple of other environmental variables that can be set to change its behavior. $ VDPAU_DRIVER=3Dva_gl LD_LIBRARY_PRELOAD=3D$(guix build libvdpau-va-gl) en= v | grep VDPAU VDPAU_DRIVER=3Dva_gl $ VDPAU_DRIVER=3Dva_gl LD_LIBRARY_PRELOAD=3D$(guix build libvdpau-va-gl) vd= pauinfo 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 Not so helpful to us, but upstream wants us to install it in the same directory as the other vdpau*so files. I suppose we could add a mesa-headers package and use that to build it and then just copy it into mesa-out/lib/vdpau, but I really don't like that idea. I'm inclined to push it as is and then we'll work out exactly how to make it work for us. --=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 --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlozbf0ACgkQQarn3Mo9 g1FuBw/+KA7+8LfYUJaxVY6WHEcMuzgchkKxarf44ZHkXnmQT9bQa71Z3tjKSomr 4gzukdM1/c1ouk1eC173NIYC4eYihiKpseOQ+QsB8s/yDsJXnb4MeEgCab+woihl FIlC6kPrRfsVAMsbfDKiKiZ2Q2DjM1m10ykJocPd60FX6mEGhFnZbErI121BkXke RjXR6CgHGhAQVKf+sDerJbboC7H+mAd0V8dn0u7/6QFq/VlV3w6FAWUbrAlrDgkr BoR6zVL2BkRTUz2Oofxuep00vC/qaFt8z6zsUNyiVvUfyf/oBFnURg40vdrHDtsC KiMr6K0s34O5jcxRB3bwFYYMjFYEZN1p2nSe2LdHLx6gkzpXZjaIlG7MIvNvcQHR qdzUwS0s0K+cTicP0j9iiGkM+aEws1D+Fb99F03zjGS+J4+WTzlCuan6u8kOIF1m a0ZOFjcZ9f8tcHzoOLsktjlZC/vp4m67AXB1RMggDocwQ1VxvM6x2zkBTaR92r+T XxXZcjiFqnQJKntHilZfIRnNmcJsuuBjZU45R7speJeOqVEgqvFz1Xc6inR5cccz Eh8E5evv4YXK6tY1vaSn3Nmg7L3qHKKGoCfSWQ99RCVJRgptUIC0mjybuNqvb2WD rmEDEaKgZAgI9h4YGY2ymce3ux1wnq2dK4NuOwcjh5TATrZHx5k= =VEKx -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--