[mythtv] Trouble Cross-Compiling with DXVA Support

Mark Kendall mark.kendall at gmail.com
Mon Mar 7 06:44:42 UTC 2011


On 7 March 2011 14:28, Brian Fischer <brianafischer at gmail.com> wrote:
> 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?

Looks like the right one:)

> 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've not actually tried a cross-compile with dxva2 enabled - so there
may be a problem that needs fixing. That said, I can't actually see
the problem error in the above. Can you try appending -j1 to the
mythbuild.sh arguments and see if that gives a clearer picture?

regards

Mark


More information about the mythtv-dev mailing list