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

2014-06-23 Thread Andy Furniss

Emil Velikov wrote:

On 23/06/14 19:58, Andy Furniss wrote:



I still don't get libvdpau_gallium installed.


Not sure what made you believe that libvdpau_gallium should be installed, but
that truly is not the case.


Ahh, it was looking at the output of make install, which usually flies 
past and is ignored, seeing the word install combined with the 
expectation that something new/different was going to happen :-)



I'm assuming that vdpau works as expected now ?


Yes, working OK.


___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


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

2014-06-23 Thread Emil Velikov
On 23/06/14 19:58, Andy Furniss wrote:
> 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 
>> Signed-off-by: Emil Velikov 
>> ---
>>
>> Andy does this fixes the problem ?
> 
> I still don't get libvdpau_gallium installed.
> 
Not sure what made you believe that libvdpau_gallium should be installed, but
that truly is not the case.

> 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 ->
> libvdpau_radeonsi.so.1.0.0
> lrwxrwxrwx 1 root root   26 Jun 23 19:17 libvdpau_radeonsi.so.1 ->
> libvdpau_radeonsi.so.1.0.0
> lrwxrwxrwx 1 root root   26 Jun 23 19:17 libvdpau_radeonsi.so.1.0 ->
> libvdpau_radeonsi.so.1.0.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 ->
> libvdpau_trace.so.1.0.0
> lrwxrwxrwx 1 root root   23 Jun 23 15:51 libvdpau_trace.so.1 ->
> libvdpau_trace.so.1.0.0
> -rwxr-xr-x 1 root root 173K Jun 23 15:51 libvdpau_trace.so.1.0.0
> 
Great thanks for reporting and testing.

> Making install in gallium/targets
> make[2]: Entering directory 
> '/mnt/sdb1/Src64/Mesa-git/mesa/src/gallium/targets'
> Making install in vdpau
> make[3]: Entering directory
> '/mnt/sdb1/Src64/Mesa-git/mesa/src/gallium/targets/vdpau'
>   GEN  all-local
> make[4]: Entering directory
> '/mnt/sdb1/Src64/Mesa-git/mesa/src/gallium/targets/vdpau'
> 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
> /usr/lib/vdpau/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
> /usr/lib/vdpau/libvdpau_gallium.la
> libtool: finish: PATH="/sbin:/bin:/usr/sbin:/usr/bin:/sbin" ldconfig -n
> /usr/lib/vdpau
> --
> Libraries have been installed in:
>/usr/lib/vdpau
> 
> 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.
> --
One should never link against the vdpau backends so we can ignore the above
message.

I'm assuming that vdpau works as expected now ?

Cheers
Emil

> make  install-data-hook
> make[5]: Entering directory
> '/mnt/sdb1/Src64/Mesa-git/mesa/src/gallium/targets/vdpau'
>   GEN  install-data-hook
> make[5]: Leaving directory
> '/mnt/sdb1/Src64/Mesa-git/mesa/src/gallium/targets/vdpau'
> make[4]: Leaving directory
> '/mnt/sdb1/Src64/Mesa-git/mesa/src/gallium/targets/vdpau'
> make[3]: Leaving directory
> '/mnt/sdb1/Src64/Mesa-git/mesa/src/gallium/targets/vdpau'
> 
> 

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


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

2014-06-23 Thread Andy Furniss

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 
Signed-off-by: Emil Velikov 
---

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 -> 
libvdpau_radeonsi.so.1.0.0
lrwxrwxrwx 1 root root   26 Jun 23 19:17 libvdpau_radeonsi.so.1 -> 
libvdpau_radeonsi.so.1.0.0
lrwxrwxrwx 1 root root   26 Jun 23 19:17 libvdpau_radeonsi.so.1.0 -> 
libvdpau_radeonsi.so.1.0.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 -> 
libvdpau_trace.so.1.0.0
lrwxrwxrwx 1 root root   23 Jun 23 15:51 libvdpau_trace.so.1 -> 
libvdpau_trace.so.1.0.0

-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 
'/mnt/sdb1/Src64/Mesa-git/mesa/src/gallium/targets'

Making install in vdpau
make[3]: Entering directory 
'/mnt/sdb1/Src64/Mesa-git/mesa/src/gallium/targets/vdpau'

  GEN  all-local
make[4]: Entering directory 
'/mnt/sdb1/Src64/Mesa-git/mesa/src/gallium/targets/vdpau'

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 
/usr/lib/vdpau/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 
/usr/lib/vdpau/libvdpau_gallium.la
libtool: finish: PATH="/sbin:/bin:/usr/sbin:/usr/bin:/sbin" ldconfig -n 
/usr/lib/vdpau

--
Libraries have been installed in:
   /usr/lib/vdpau

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 
'/mnt/sdb1/Src64/Mesa-git/mesa/src/gallium/targets/vdpau'

  GEN  install-data-hook
make[5]: Leaving directory 
'/mnt/sdb1/Src64/Mesa-git/mesa/src/gallium/targets/vdpau'
make[4]: Leaving directory 
'/mnt/sdb1/Src64/Mesa-git/mesa/src/gallium/targets/vdpau'
make[3]: Leaving directory 
'/mnt/sdb1/Src64/Mesa-git/mesa/src/gallium/targets/vdpau'



___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


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

2014-06-23 Thread Emil Velikov
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 
Signed-off-by: Emil Velikov 
---

Andy does this fixes the problem ?

Cheers
Emil 

 src/gallium/targets/vdpau/Makefile.am | 4 ++--
 src/gallium/targets/xvmc/Makefile.am  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/targets/vdpau/Makefile.am 
b/src/gallium/targets/vdpau/Makefile.am
index 9920bd9..2059274 100644
--- a/src/gallium/targets/vdpau/Makefile.am
+++ b/src/gallium/targets/vdpau/Makefile.am
@@ -131,7 +131,7 @@ install-data-hook:
j=libvdpau_gallium.$(LIB_EXT);  \
k=libvdpau_$${i}.$(LIB_EXT);\
l=$${k}.$(VDPAU_MAJOR).$(VDPAU_MINOR).0;\
-   ln -f .libs/$${j}.$(VDPAU_MAJOR).$(VDPAU_MINOR).0   \
+   ln -f $${dest_dir}/$${j}.$(VDPAU_MAJOR).$(VDPAU_MINOR).0 \
  $${dest_dir}/$${l};   \
ln -sf $${l}\
   $${dest_dir}/$${k}.$(VDPAU_MAJOR).$(VDPAU_MINOR); \
@@ -140,4 +140,4 @@ install-data-hook:
ln -sf $${l}\
   $${dest_dir}/$${k};  \
done;   \
-   $(RM) -f $$dest_dir/libvdpau_gallium.*
+   $(RM) -f $${dest_dir}/libvdpau_gallium.*
diff --git a/src/gallium/targets/xvmc/Makefile.am 
b/src/gallium/targets/xvmc/Makefile.am
index 6e81e08..bf986f4 100644
--- a/src/gallium/targets/xvmc/Makefile.am
+++ b/src/gallium/targets/xvmc/Makefile.am
@@ -88,7 +88,7 @@ install-data-hook:
j=libXvMCgallium.$(LIB_EXT);\
k=libXvMC$${i}.$(LIB_EXT);  \
l=$${k}.$(XVMC_MAJOR).$(XVMC_MINOR).0;  \
-   ln -f .libs/$${j}.$(XVMC_MAJOR).$(XVMC_MINOR).0 \
+   ln -f $${dest_dir}/$${j}.$(XVMC_MAJOR).$(XVMC_MINOR).0  \
  $${dest_dir}/$${l};   \
ln -sf $${l}\
   $${dest_dir}/$${k}.$(XVMC_MAJOR).$(XVMC_MINOR);  \
-- 
2.0.0

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev