Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gst-omx gst-omx
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 31
    • Issues 31
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamer
  • gst-omxgst-omx
  • Issues
  • #31

Closed
Open
Created Aug 10, 2019 by Enrico Pelò@peel70

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

Edited Aug 10, 2019 by Tim-Philipp Müller
Assignee
Assign to
Time tracking