Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XvMC Nvidia Symlinks
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
jasealpers
n00b
n00b


Joined: 02 Jan 2006
Posts: 29

PostPosted: Wed Dec 21, 2011 5:51 pm    Post subject: XvMC Nvidia Symlinks Reply with quote

Hello,

Recently I had a problem with XvMC and my old nvidia driver in which I was unable to load the libXvMCNVIDIA.so.96.43.20 library. Somehow my /etc/X11/XvMCConfig file got set to libXvMCNVIDIA_dynamic.so.1 which did not exist on my system.

I'm running with nvidia-drivers-96.43.20 as my card is a bit old. Looking through the ebuilds, I see that the newer versions of the driver create this symlink. For example, 285.05.09-r1 has this...

Code:

# XvMC driver
dolib.a ${NV_X11}/libXvMCNVIDIA.a || \
   die "failed to install libXvMCNVIDIA.so"
dolib.so ${NV_X11}/libXvMCNVIDIA.so.${NV_SOVER} || \
   die "failed to install libXvMCNVIDIA.so"
dosym libXvMCNVIDIA.so.${NV_SOVER} \
   /usr/$(get_libdir)/libXvMCNVIDIA.so.1 || \
   die "failed to create libXvMCNVIDIA.so symlink"
dosym libXvMCNVIDIA.so.1 /usr/$(get_libdir)/libXvMCNVIDIA.so || \
   die "failed to create libXvMCNVIDIA.so symlink"
[b]dosym libXvMCNVIDIA.so.${NV_SOVER} \
   /usr/$(get_libdir)/libXvMCNVIDIA_dynamic.so.1 || \
   die "failed to create libXvMCNVIDIA_dynamic.so symlink"[/b]


The libXvMCNVIDIA_dynamic.so.1 symlink is missing in version 96.43.20. Here is the corresponding part of that ebuild...
Code:

# XvMC driver
dolib.a ${NV_X11}/libXvMCNVIDIA.a || \
   die "failed to install libXvMCNVIDIA.so"
dolib.so ${NV_X11}/libXvMCNVIDIA.so.${NV_SOVER} || \
   die "failed to install libXvMCNVIDIA.so"
dosym libXvMCNVIDIA.so.${NV_SOVER} /usr/$(get_libdir)/libXvMCNVIDIA.so || \
   die "failed to create libXvMCNVIDIA.so symlink"


The upshot of this is that I was missing a symlink that eselect xvmc looks for (and in fact "eselect xvmc list" would only give me xorg-x11). So, I couldn't set xvmc to nvidia from eselect. As a workaround, I modified xvmc.eselect to include an entry called "nvidia-96" for the .so library I have.

Code:

XVMCLIBS=(
"libXvMCNVIDIA_dynamic.so.1"
"libXvMCNVIDIA.so"
"libXvMC.so.1"
"libviaXvMC.so.1"
"libchromeXvMC.so.1"
"libviaXvMCPro.so.1"
"libchromeXvMCPro.so.1"
"libI810XvMC.so.1"
"libAMDXvBA.so.1" )
XVMCPRETTY=(
"nvidia"
"nvidia-96"
"xorg-x11"
"via"
"openchrome"
"via-pro"
"openchrome-pro"
"intel"
"ati" )


Then in researching this, I came across some information that ldconfig should have created the libXvMCNVIDIA_dynamic.so.1 symlink. So, I ran it and now the link is there. What did I miss? Revdep-rebuild didn't suggest anything. Why do only the newer nvidia-drivers ebuilds create this symlink? Why did I have to run ldconfig manually?

Thanks in advance for the help!
Jase
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Wed Dec 21, 2011 7:54 pm    Post subject: Reply with quote

- you have a problem
- you found the cause
- you found a solve
- you apply a solve
- it work

Now you are asking why/how/when...
Just filebug so the ebuild will get an eye from a gentoo dev handling the ebuild to see the problem and might apply a better solve or your solve... Anything that will end with any nvidia+xbmc user would just have to (re-)emerge the ebuild to get the fix too.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum