From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: libvdpau: cannot open shared object Date: Fri, 15 Dec 2017 12:02:14 +0100 Message-ID: <876098jlu1.fsf@gnu.org> References: <20171210151453.3a1ad3fe@jasniac.instanton> <20171210200852.GG23558@macbook41> <87mv2nopz8.fsf@gnu.org> <20171212195826.GC1873@macbook41> <876099u187.fsf@gnu.org> <20171215063855.GA1457@macbook41> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePnl1-0002Q3-5k for help-guix@gnu.org; Fri, 15 Dec 2017 06:02:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePnkv-0000MG-5c for help-guix@gnu.org; Fri, 15 Dec 2017 06:02:23 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:36790) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ePnku-0000Le-VH for help-guix@gnu.org; Fri, 15 Dec 2017 06:02:17 -0500 In-Reply-To: <20171215063855.GA1457@macbook41> (Efraim Flashner's message of "Fri, 15 Dec 2017 08:38:55 +0200") 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: Efraim Flashner Cc: help-guix@gnu.org Efraim Flashner skribis: > On Thu, Dec 14, 2017 at 10:07:20AM +0100, Ludovic Court=C3=A8s wrote: [...] >> > 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 OK. >> 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. > > From 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) = env | grep VDPAU > VDPAU_DRIVER=3Dva_gl > > $ VDPAU_DRIVER=3Dva_gl LD_LIBRARY_PRELOAD=3D$(guix build libvdpau-va-gl) = vdpauinfo > display: :0.0 screen: 0 > Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object= file: No such file or directory > Error creating VDPAU device: 1 It should be: LD_LIBRARY_PATH=3D$(guix build libvdpau-va-gl)/lib or: LD_PRELOAD=3D$(guix build libvdpau-va-gl)/lib/libwhatever-its-called.so HTH! Ludo=E2=80=99.