[Mesa-dev] [PATCH] targets/(vdpau|xvmc): hardlink against the installed library

Andy Furniss adf.lists at gmail.com
Mon Jun 23 11:58:45 PDT 2014

Emil Velikov wrote:
> Previous two commits, resolved the symlink generation required
> by the versioning of the library and incorrectly changed the
> way hardlinks are created by linking the ones from the build
> tree. If the device used for building differs from the one
> set as destination linking will fail.
> Reported-by: Andy Furniss <adf.lists at gmail.com>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
> Andy does this fixes the problem ?

I still don't get libvdpau_gallium installed.

I do with this get the usual one installed properly now -

ls -lh /usr/lib/vdpau/
total 11M
lrwxrwxrwx 1 root root   26 Jun 23 19:17 libvdpau_radeonsi.so -> 
lrwxrwxrwx 1 root root   26 Jun 23 19:17 libvdpau_radeonsi.so.1 -> 
lrwxrwxrwx 1 root root   26 Jun 23 19:17 libvdpau_radeonsi.so.1.0 -> 
-rwxr-xr-x 1 root root  11M Jun 23 19:17 libvdpau_radeonsi.so.1.0.0
-rwxr-xr-x 1 root root  987 Jun 23 15:51 libvdpau_trace.la
lrwxrwxrwx 1 root root   23 Jun 23 15:51 libvdpau_trace.so -> 
lrwxrwxrwx 1 root root   23 Jun 23 15:51 libvdpau_trace.so.1 -> 
-rwxr-xr-x 1 root root 173K Jun 23 15:51 libvdpau_trace.so.1.0.0

Making install in gallium/targets
make[2]: Entering directory 
Making install in vdpau
make[3]: Entering directory 
   GEN      all-local
make[4]: Entering directory 
make[4]: Nothing to be done for 'install-exec-am'.
  /bin/mkdir -p '/usr/lib/vdpau'
  /bin/sh ../../../../libtool   --mode=install /bin/install -c 
libvdpau_gallium.la '/usr/lib/vdpau'
libtool: install: /bin/install -c .libs/libvdpau_gallium.so.1.0.0 
libtool: install: (cd /usr/lib/vdpau && { ln -s -f 
libvdpau_gallium.so.1.0.0 libvdpau_gallium.so.1 || { rm -f 
libvdpau_gallium.so.1 && ln -s libvdpau_gallium.so.1.0.0 
libvdpau_gallium.so.1; }; })
libtool: install: (cd /usr/lib/vdpau && { ln -s -f 
libvdpau_gallium.so.1.0.0 libvdpau_gallium.so || { rm -f 
libvdpau_gallium.so && ln -s libvdpau_gallium.so.1.0.0 
libvdpau_gallium.so; }; })
libtool: install: /bin/install -c .libs/libvdpau_gallium.lai 
libtool: finish: PATH="/sbin:/bin:/usr/sbin:/usr/bin:/sbin" ldconfig -n 
Libraries have been installed in:

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
      during execution
    - add LIBDIR to the `LD_RUN_PATH' environment variable
      during linking
    - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
    - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
make  install-data-hook
make[5]: Entering directory 
   GEN      install-data-hook
make[5]: Leaving directory 
make[4]: Leaving directory 
make[3]: Leaving directory 

More information about the mesa-dev mailing list