matthiasbock / gstreamer

Raspberry Pi gstreamer with UVC H.264 and OpenMAX plugins
26 stars 7 forks source link

gstomx.h:52:26: fatal error: OMX_Broadcom.h: No such file or directory #3

Closed matthiasbock closed 11 years ago

matthiasbock commented 11 years ago

Trying to compile gst-omx from freedesktop.org, branch 0.10:

...
Making all in omx
make[2]: Entering directory `/usr/src/gstreamer/gst-omx/omx'
  CC     libgstopenmax_la-gstomx.lo
In file included from gstomx.c:30:0:
gstomx.h:52:26: fatal error: OMX_Broadcom.h: No such file or directory
compilation terminated.
make[2]: *** [libgstopenmax_la-gstomx.lo] Error 1
make[2]: Leaving directory `/usr/src/gstreamer/gst-omx/omx'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/gstreamer/gst-omx'
make: *** [all] Error 2
matthiasbock commented 11 years ago

fixed:

ln /opt/vc/include/IL/OMX_Broadcom.h gst-omx/omx/OMX_Broadcom.h -s
vk5tu commented 9 years ago

Rather than modify the source, consider:

git clone git://anongit.freedesktop.org/gstreamer/gst-omx
cd gst-omx
./autogen.sh --with-omx-header-path=/opt/vc/include/IL --with-omx-target=rpi
make -j 4

Tested on RPi2 with Raspbian Jessie.

ghost commented 8 years ago

Where does this file come from? For those of us who are cross-compiling

Edit: https://github.com/raspberrypi/firmware/tree/master/opt/vc/include/IL

shufayang commented 2 years ago

This operation will result in a redefine error

error: ./omx/openmax/OMX_IndexExt.h:67:5: 错误: 枚举‘OMX_IndexParamNalStreamFormat’重声明 OMX_IndexParamNalStreamFormat, /*< reference: OMX_NALSTREAMFORMATTYPE / ^~~~~~~~~ In file included from ../omx/gstomx.h:58:0, from ../omx/gstomx.c:31: ../omx/openmax/OMX_Broadcom.h:1944:5: 附注: ‘OMX_IndexParamNalStreamFormat’的上一个定义在此 OMX_IndexParamNalStreamFormat, /*< reference: OMX_NALSTREAMFORMATTYPE / ^~~~~~~~~ In file included from ../omx/gstomx.h:66:0, from ../omx/gstomx.c:31:

matthiasbock commented 2 years ago

@shufayang, unfortunately I do not understand your previous comment. Please describe what you did, which compiler versions you use, on which machine you tried to build on and make sure the console output is in English.

shufayang commented 2 years ago

I want to port gst-omx to arm platform, and the current version of gst-omx is the latest version. I use the command: meson --cross-file arm_linux -D target=rpi build/ But it will report that the header file cannot be found

In file included from gstomx.c:30:0:
gstomx.h:52:26: fatal error: OMX_Broadcom.h: No such file or directory
compilation terminated.

so, I found that it is also version 1.1.2, the header file of rpi is different from the header file of generic.

difference:
opt/vc/include/IL                                   git://anongit.freedesktop.org/gstreamer/gst-omx
OMX_Broadcom.h                                 OMX_CoreExt.h
                                                              OMX_ComponentExt.h
                                                              OMX_IndexExt.h
                                                              OMX_VideoExt.h

Do you have to use "-D target=rpi " if you want to compile examples/egl