[mythtv] Trouble Cross-Compiling with DXVA Support

Brian Fischer brianafischer at gmail.com
Mon Mar 7 06:28:21 UTC 2011


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
$ export MYTHTV_CFG='--enable-dxva2'
$ ./mythbuild.sh -W -d -C -b master
......
mythbuilder/mythinstall/include/QtCore/qbytearray.h:383: warning: visibility
attribute not supported in this configuration; ignored
dxva2decoder.cpp: In member function âbool DXVA2Decoder::CreateDecoder()â:
dxva2decoder.cpp:365: warning: visibility attribute not supported in this
configuration; ignored
dxva2decoder.cpp: In member function âbool DXVA2Decoder::CreateSurfaces()â:
dxva2decoder.cpp:337: warning: visibility attribute not supported in this
configuration; ignored
dxva2decoder.cpp: In member function âbool
DXVA2Decoder::GetDecoderConfig()â:
dxva2decoder.cpp:315: warning: visibility attribute not supported in this
configuration; ignored
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/objbase.h:
In function âBOOL IsEqualGUID(const GUID&, const GUID&)â:
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/objbase.h:77:
warning: visibility attribute not supported in this configuration; ignored
dxva2decoder.cpp: In member function âbool DXVA2Decoder::GetInputOutput()â:
dxva2decoder.cpp:246: warning: visibility attribute not supported in this
configuration; ignored
../../../../mythinstall/include/QtCore/qstring.h: In function âconst QString
operator+(const QString&, const char*)â:
../../../../mythinstall/include/QtCore/qstring.h:1030: warning: visibility
attribute not supported in this configuration; ignored
dxva2decoder.cpp: In member function âbool
DXVA2Decoder::CreateVideoService(MythRenderD3D9*)â:
dxva2decoder.cpp:202: warning: visibility attribute not supported in this
configuration; ignored
dxva2decoder.cpp: In member function âbool
DXVA2Decoder::Init(MythRenderD3D9*)â:
dxva2decoder.cpp:162: warning: visibility attribute not supported in this
configuration; ignored
dxva2decoder.cpp: In constructor âDXVA2Decoder::DXVA2Decoder(uint,
MythCodecID, uint, uint)â:
dxva2decoder.cpp:141: warning: visibility attribute not supported in this
configuration; ignored
dxva2decoder.cpp: In constructor âDXVA2Decoder::DXVA2Decoder(uint,
MythCodecID, uint, uint)â:
dxva2decoder.cpp:141: warning: visibility attribute not supported in this
configuration; ignored
make[2]: *** [dxva2decoder.o] Error 1
make[2]: Leaving directory
`~/dev/mythtv/mythbuilder/mythtv/mythtv/libs/libmythtv'
make[1]: *** [sub-libmythtv-make_default] Error 2
make[1]: Leaving directory `~/dev/mythtv/mythbuilder/mythtv/mythtv/libs'
make: *** [libs] Error 2

ERROR: make failed.


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!


Thanks,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-dev/attachments/20110307/3851617c/attachment.html 


More information about the mythtv-dev mailing list