(2013-05-25, 00:41)wolfgar Wrote: Hi viumdem,
Please be aware that the source package and github are not the same thing:
The source package was an attempt to compile an xbmc version which integrates gstplayer (this package should compile : Well I know it compiles as I compiled it and you have everything in the package : both the source but also the config logs, and the objects and binaries which were built)
But it does not work : For some reason gstreamer closed demuxer by freescale crashes when gstreamer is launched by gstplayer...
On the other side, my work on github is an attempt to add support for imx vpu to dvdplayer. Please be aware that a new branch is a better candidate for build today : "imx6-ts"
also the option "--enable-imx" was replaced by "--enable-codec=imxvpu" for configure as it was pointed by a core xbmc developer that it should be done that way now...
A last precision before answering to your main question : Don't expect a perfect player for now and expect a few troubles as my first personnal target while developing is a pure FB backend and not X11...
At last to answer your question : your issue comes from a conflict with a type ("byte" as far as i remember) in i2c kernel header :
On my side I moved the line "#include <linux/fb.h>" in xbmc/windowing/egl/EGLNativeTypeAmlogic.cpp at the top of all includes to enable the file to build properly (it is not committed as it was a hack relative to the toolchain and I was unsure all toolchains will exhibit this issue
)
Best regards
Stephan
Hi wolfgar,
Thanks for your detailed answer.
I tried again on imx6 branch with configure paramters:
./configure --prefix=/imx6/xbmc --disable-vdpau --disable-vaapi --disable-openmax --enable-neon --enable-udev --disable-gl --enable-gles --enable-imx
Then the failure information for make:
CPP xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecIMX.o
In file included from DVDVideoCodecIMX.cpp:20:0:
/usr/include/linux/mxcfb.h:111:2: error: ‘uint’ does not name a type
DVDVideoCodecIMX.cpp: In member function ‘bool CDVDVideoCodecIMX::VpuAllocFrameBuffers()’:
DVDVideoCodecIMX.cpp:260:23: warning: unused variable ‘ctrl’ [-Wunused-variable]
DVDVideoCodecIMX.cpp: In member function ‘bool CDVDVideoCodecIMX::VpuPushFrame(VpuFrameBuffer*)’:
DVDVideoCodecIMX.cpp:414:10: warning: unused variable ‘ret’ [-Wunused-variable]
DVDVideoCodecIMX.cpp:414:15: warning: unused variable ‘type’ [-Wunused-variable]
DVDVideoCodecIMX.cpp: In member function ‘virtual int CDVDVideoCodecIMX:

ecode(BYTE*, int, double, double)’:
DVDVideoCodecIMX.cpp:916:196: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 6 has type ‘BYTE* {aka unsigned char*}’ [-Wformat]
make[1]: *** [DVDVideoCodecIMX.o] Error 1
make: *** [xbmc/cores/dvdplayer/DVDCodecs/Video/Video.a] Error 2
I switched to imx6-ts branch, using the following configure paratmeters:
./configure --prefix=/imx6/xbmc --disable-vdpau --disable-vaapi --disable-openmax --enable-neon --enable-udev --disable-gl --enable-gles --enable-codec=imxvpu --enable-x11
Yielding the following configure result:
------------------------
XBMC Configuration:
------------------------
git Rev.: 20130518-7540cdf
Debugging: Yes
Profiling: No
Optimization: Yes
SWIG Available: Yes
JRE Available: Yes
Doxygen Available: No
Crosscomp.: No
target ARCH: arm
target CPU: no
OpenGLES: Yes
ALSA: Yes
DBUS: Yes
VDPAU: No
VAAPI: No
CrystalHD: No
VDADecoder: No
VTBDecoder: No
OpenMax: No
Joystick: No
XRandR: No
GOOM: No
RSXS: Yes
FishBMC: No
ProjectM: No
Skin Touched: No
X11: No
Bluray: No
TexturePacker:No
MID Support: No
ccache: No
ALSA Support: Yes
PulseAudio: No
HAL Support: Yes
DVDCSS: Yes
Google Test Framework Configured: No
Avahi: Yes
Non-free: Yes
ASAP Codec: No
MySQL: Yes
Webserver: Yes
libssh support: Yes
libRTMP support: Yes
libsmbclient support: Yes
libnfs client support:No
libafpclient support: No
AirPlay support: Yes
AirTunes support (libshairplay): Yes
UPnP support: Yes
Optical drive: Yes
libudev support: Yes
libusb support: No
libcec support: No
libmp3lame support: No
libvorbisenc support: Yes
libcap support: Yes
additional players: No
External FFmpeg: No
PVR add-ons: No
prefix: /imx6/xbmc
------------------------
It seems x11 support is not correctly enabled, maybe I missed to install some libraries? And there is no imxvpu related info listed...
Anyway the make fails by giving below info, same like imx6 branch:
CPP xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecIMX.o
In file included from DVDVideoCodecIMX.cpp:20:0:
/usr/include/linux/mxcfb.h:111:2: error: ‘uint’ does not name a type
DVDVideoCodecIMX.cpp: In member function ‘virtual int CDVDVideoCodecIMX:

ecode(BYTE*, int, double, double)’:
DVDVideoCodecIMX.cpp:1058:197: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 6 has type ‘BYTE* {aka unsigned char*}’ [-Wformat]
make[1]: *** [DVDVideoCodecIMX.o] Error 1
make: *** [xbmc/cores/dvdplayer/DVDCodecs/Video/Video.a] Error 2
So should I modify some header files to get the compile working?