Pi3 Buster light compilation error
Hello, I'm trying to compile gst-omx master branch under the new Buster Light Pi3. I've problem in the make with make -j4 I've error that #include <OMX_Broadcom.h> is not found so I've configured CFLAGS like this:
CFLAGS='-Wno-error -Wno-redundant-decls -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vmcs_host/khronos/IL'
and make like this
make LDFLAGS+='-L/opt/vc/lib' -j4
now the file is resolved but I've this error in the make process:
`make[2]: Entering directory '/home/pi/src/gstreamer/gst-omx/omx'
CC libgstomx_la-gstomx.lo
CC libgstomx_la-gstomxallocator.lo
CC libgstomx_la-gstomxbufferpool.lo
CC libgstomx_la-gstomxvideo.lo
In file included from gstomx.h:62,
from gstomxallocator.h:30,
from gstomxallocator.c:25:
/home/pi/src/gstreamer/gst-omx/omx/openmax/OMX_VideoExt.h:44:14: error: nested redefinition of ‘enum OMX_NALUFORMATSTYPE’
typedef enum OMX_NALUFORMATSTYPE {
^~~~~~~~~~~~~~~~~~~
/home/pi/src/gstreamer/gst-omx/omx/openmax/OMX_VideoExt.h:44:14: error: redeclaration of ‘enum OMX_NALUFORMATSTYPE’
In file included from gstomx.h:58,
from gstomxallocator.h:30,
from gstomxallocator.c:25:
/opt/vc/include/interface/vmcs_host/khronos/IL/OMX_Broadcom.h:1951:14: note: originally defined here
typedef enum OMX_NALUFORMATSTYPE {
^~~~~~~~~~~~~~~~~~~
In file included from gstomx.h:62,
from gstomxallocator.h:30,
from gstomxallocator.c:25:
/home/pi/src/gstreamer/gst-omx/omx/openmax/OMX_VideoExt.h:45:5: error: redeclaration of enumerator ‘OMX_NaluFormatStartCodes’
OMX_NaluFormatStartCodes = 1,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from gstomx.h:58,
from gstomxallocator.h:30,
from gstomxallocator.c:25:
/opt/vc/include/interface/vmcs_host/khronos/IL/OMX_Broadcom.h:1952:5: note: previous definition of ‘OMX_NaluFormatStartCodes’ was here
OMX_NaluFormatStartCodes = 1,
^~~~~~~~~~~~~~~~~~~~~~~~
`
and others like this.
I'm not expert in compilation so I think there is some flags that I forgot to configure.
Thank you for attention