gst-omx fails to build with bellagio and generic targets
Submitted by Reynaldo H. Verdejo Pinochet
Link to original bug (#776363)
Description
This is on my uninstalled environment but that shouldn't be
relevant. I've got Bellagio (0.9.3) installed system-wide
and building is failing after configure succeeds with
--with-omx-target=bellagio and/or generic. Problem is
gstomx.h's unconditional dependency on Bellagio-undefined
OMX_VERSION_MAJOR/MINOR macros leading to:
[..]
gstomxvideodec.c: In function ‘gst_omx_video_dec_open’:
gstomx.h:73:36: error: ‘OMX_VERSION_MAJOR’ undeclared (first use in this function)
(st)->nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \
^
gstomxvideodec.c:178:5: note: in expansion of macro ‘GST_OMX_INIT_STRUCT’
GST_OMX_INIT_STRUCT (¶m);
^
~~~~~~~~~~~~~~~~~~
gstomx.h:73:36: note: each undeclared identifier is reported only once for each function it appears in
(st)->nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \
^
gstomxvideodec.c:178:5: note: in expansion of macro ‘GST_OMX_INIT_STRUCT’
GST_OMX_INIT_STRUCT (¶m);
^
~~~~~~~~~~~~~~~~~~
[..]
The OMX_Types.h header shipped with my Bellagio install has
1.1.2 as version: OpenMax IL version 1.1.2
Short of conditionally defining the missing macros to
something that makes sense, I don't see any other solution
up-front but I will take a look latter if no one beats me
to it.