Pb with omx compilation

Sebastian Dröge sebastian at centricular.com
Thu Oct 2 23:39:41 PDT 2014


On Mi, 2014-09-10 at 11:25 +0200, Annick Fron wrote:
> Hi,
> I have a conflict when compiling omx on rasp.
> Annick
> 
> =====
> In file included from gstomx.h:56:0,
>                  from gstomx.c:30:
> /home/pi/gstreamer/gst-omx-1.2.0/omx/openmax/OMX_VideoExt.h:44:14: error: nested redefinition of 'enum OMX_NALUFORMATSTYPE'
> /home/pi/gstreamer/gst-omx-1.2.0/omx/openmax/OMX_VideoExt.h:44:14: error: redeclaration of 'enum OMX_NALUFORMATSTYPE'
> ./OMX_Broadcom.h:1923:14: note: originally defined here
> /home/pi/gstreamer/gst-omx-1.2.0/omx/openmax/OMX_VideoExt.h:45:5: error: redeclaration of enumerator 'OMX_NaluFormatStartCodes'
> ./OMX_Broadcom.h:1924:5: note: previous definition of 'OMX_NaluFormatStartCodes' was here
> [...]

How did you let gst-omx find the Broadcom specific headers? By just
copying OMX_Broadcom.h into the gst-omx sources?

The correct way of doing this would be something like the following:
> LDFLAGS='-L/opt/vc/lib' CPPFLAGS='-I/opt/vc/include -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux' ./autogen.sh  --with-omx-target=rpi

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141003/a15e80ee/attachment.sig>


More information about the gstreamer-devel mailing list