Closed matthiasbock closed 11 years ago
fixed:
ln /opt/vc/include/IL/OMX_Broadcom.h gst-omx/omx/OMX_Broadcom.h -s
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.
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
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:
@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.
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
Trying to compile gst-omx from freedesktop.org, branch 0.10: