[mythtv] Trouble Cross-Compiling with DXVA Support

Lawrence Rust lvr at softsystem.co.uk
Mon Mar 7 08:47:38 UTC 2011


On Mon, 2011-03-07 at 01:28 -0500, Brian Fischer wrote:
> I am looking for some assistance building mythtv with DXVA2 for
> testing of ticket #8260 "Windows: Add DXVA2 hardware decoding
> support".  I am attempting to cross-compile using the mythbuilder.sh
> script developed by Lawrence.
> 
> Following the comments from the commit at
> https://github.com/MythTV/mythtv/commit/69fefe53e960f3fd8d0fcde144a44ed4e8301a05/
> > You will need to download the dxva2api.h from the VLC website,
> install it in an appropriate include path and re-run configure with
> --enable-dxva2
> > If you are going to test (especially if using the new windows build
> script), please compile a debug build so we can iron out all of the
> outstanding issues as quickly as possible.
> 
> 
> 1. I downloaded the file located at
> http://download.videolan.org/pub/videolan/contrib/dxva2api.h and
> placed it in the /mythinstall/include/ folder
> The configure command seemed to accept the --enable-dxva2 when placed
> in the above location.
> ? Can someone confirm this is the correct file?
> 
> 
> 2. My attempt to cross-compile
> $ uname -a
> Ubuntu Server: Linux phenomhd 2.6.32-29-generic-pae #58-Ubuntu SMP
> i686 GNU/Linux
> $ cd ~/dev/mythtv/
> $ git clone http://www.softsystem.co.uk/git/mythbuilder.git
> $ cd ~/dev/mythtv/mythbuilder/mythinstall/include && sudo wget
> http://download.videolan.org/pub/videolan/contrib/dxva2api.h

I believe that the last line should be:

ln -s mythbuilder/mythbuild.sh .
mkdir -p mythinstall/include
pushd mythinstall/include/
wget http://download.videolan.org/pub/videolan/contrib/dxva2api.h
popd

> $ export MYTHTV_CFG='--enable-dxva2'
> $ ./mythbuild.sh -W -d -C -b master

NB You shouldn't normally need the -C option (clean re-build) unless you
have significantly changed your setup.  It will just cause unnecessary
re-compilation and hence delay.

[snip]

> I get the above error and can provide more logs upon request.  I can
> build the master fine without the --enable-dxva2 configure option.
> Any advice on how to resolve this compile error would be greatly
> appreciated!

I see that the error is:

dxva2decoder.cpp:5:22: error: Initguid.h: No such file or directory

Which looks like a typo in dxva2decoder.cpp.  Change line 5 to read
#include <initguid.h>

Linux is case sensitive but WindowsNT is case insensitive, case
preserving.

-- Lawrence




More information about the mythtv-dev mailing list