[mythtv-users] Help compiling mythtv from svn on Fedora
Jarod Wilson
jarod at wilsonet.com
Fri Aug 28 17:46:04 UTC 2009
On Aug 28, 2009, at 1:29 PM, John Nissley wrote:
> On 08/28/2009 08:27 AM, Joe Ripley wrote:
>> On Fri, Aug 28, 2009 at 7:10 AM, John
>> Nissley<jnissley at nissley.org> wrote:
>>
>>> I like the idea of building the RPM's because of the easy
>>> uninstall. Thanks
>>> for
>>> pointing that out and I have tried to do the RPM build and ran
>>> into some
>>> problems.
>>> It appears that everything is going along fine until it reaches
>>> the vdpau
>>> section.
>>> It appears that the vdpau include file is not present.
>>>
>>> In file included from vdpau.c:32:
>>> vdpau.h:47:25: error: vdpau/vdpau.h: No such file or directory
>>> vdpau.h:48:29: error: vdpau/vdpau_x11.h: No such file or directory
>>> In file included from vdpau.c:32:
>>> vdpau.h:67: error: expected specifier-qualifier-list before
>>> ‘VdpVideoSurface’
>>> vdpau.c: In function ‘ff_vdpau_h264_set_reference_frames’:
>>> vdpau.c:45: error: ‘VdpReferenceFrameH264’ undeclared (first use
>>> in this
>>> function)
>>> vdpau.c:45: error: (Each undeclared identifier is reported only once
>>> vdpau.c:45: error: for each function it appears in.)
>>> vdpau.c:45: error: ‘rf’ undeclared (first use in this function)
>>> vdpau.c:45: error: ‘rf2’ undeclared (first use in this function)
>>> vdpau.c:52: error: ‘struct vdpau_render_state’ has no member named
>>> ‘info’
>>> vdpau.c:68: error: ‘struct vdpau_render_state’ has no member named
>>> ‘info’
>>> vdpau.c:71: error: ‘struct vdpau_render_state’ has no member named
>>> ‘surface’
>>> vdpau.c:79: error: ‘VDP_TRUE’ undeclared (first use in this
>>> function)
>>>
>>> How to I resolve this?
>>>
>> This is probably related to your version of the NVIDIA drivers. You
>> either don't use NVIDIA drivers, or you're using and old version that
>> does not have the VDPAU support included. You may need to specify
>> '--disable-vdpau' in your 'configure' command line (i.e. modify the
>> spec file).
>>
>>
> I do have the NVIDIA drivers installed. I was initially using kmod-
> nvidia, then tried installing from the nvidia package to see if that
> would make any difference and it did not. In fact when I tried to
> install the nvidia devel it installed the kmod-nvidia package again.
nVidia's script does Bad Things(tm), I'd only install their driver
from a package that takes precautions to avoid said Bad Things(tm) --
i.e. puts their libs in a location that doesn't overwrite system libs
and make them accessible using ld.so.conf and xorg module path tweaks.
I believe xorg-x11-drv-nvidia-libs-devel was actually the package you
needed to build VDPAU support. That, or the not-yet-in-the-repo
libvdpau-devel, which is what I build my own svn trunk vpdauified
packages against.
> I am currently trying to figure out where to place the --disable-
> vdpau command in the spec file (my first few tries did not work)
> just to see if I can get a compile to complete.
> I tried the following in the spec file
> # --without nvidia Disable NVidia XvMC and VDPAU support
> --without nvidia
> I just added the --without nvidia below the comment line but it did
> not work. What is the correct method to remove the vdpau compile
> when using the spec file?
rpmbuild --without nvidia ... should have done the trick, I think.
> I am now getting the following error
> d mythshutdown/ && /usr/lib64/qt4/bin/qmake mythshutdown.pro -unix
> PREFIX=/usr/local -o Makefile
> /usr/lib64/libGL.so: undefined reference to `_nv000030gl'
> ../../libs/libavcodec/libmythavcodec-0.22.so: undefined reference to
> `aac_decoder'
You installed nvidia's binary driver from their scripts, which
overwrote the stock opengl libs. Do not pass go, do not collect $200.
And/or reinstall the relevant distro packages to get back the stock
versions. For /usr/lib64/libGL.so, that would be mesa-libGL-devel, I
believe.
--
Jarod Wilson
jarod at wilsonet.com
More information about the mythtv-users
mailing list