Hi all,
Trying to compile Jasper kodi with the orangepi patches on armbian is giving me a compile error:
- CPP /mnt/src/xbmc/xbmc/windowing/egl/EGLNativeTypeSunxi.o
- EGLNativeTypeSunxi.cpp: In member function ‘virtual void CEGLNativeTypeSunxi::Initialize()’:
- EGLNativeTypeSunxi.cpp:140:75: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
- CLog::Log(LOGNOTICE, "%s - Screen ID %d is selected\n", __FUNCTION__, m_screenid);
- ^
- EGLNativeTypeSunxi.cpp: In member function ‘virtual bool CEGLNativeTypeSunxi::CreateNativeWindow()’:
- EGLNativeTypeSunxi.cpp:165:49: error: invalid use of incomplete type ‘struct CEGLNativeTypeSunxi::CreateNativeWindow()::mali_native_window’
- EGLNativeWindowType nativeWindow = new struct mali_native_window;
- ^
- EGLNativeTypeSunxi.cpp:165:49: error: forward declaration of ‘struct CEGLNativeTypeSunxi::CreateNativeWindow()::mali_native_window’
- EGLNativeTypeSunxi.cpp:176:15: error: base operand of ‘->’ is not a pointer
- nativeWindow->width = res.iScreenWidth;
- ^
- EGLNativeTypeSunxi.cpp:177:15: error: base operand of ‘->’ is not a pointer
- nativeWindow->height = res.iScreenHeight;
- ^
- EGLNativeTypeSunxi.cpp:178:18: error: invalid conversion from ‘EGLNativeWindowType {aka long unsigned int}’ to ‘XBNativeWindowType {aka void*}’ [-fpermissive]
- m_nativeWindow = nativeWindow;
- ^
- EGLNativeTypeSunxi.cpp: In member function ‘virtual bool CEGLNativeTypeSunxi::DestroyNativeWindow()’:
- EGLNativeTypeSunxi.cpp:208:31: error: type ‘EGLNativeWindowType {aka long unsigned int}’ argument given to ‘delete’, expected pointer
- delete (EGLNativeWindowType)m_nativeWindow, m_nativeWindow = NULL;
- ^
- EGLNativeTypeSunxi.cpp: In member function ‘virtual bool CEGLNativeTypeSunxi::SetNativeResolution(const RESOLUTION_INFO&)’:
- EGLNativeTypeSunxi.cpp:318:42: error: base operand of ‘->’ is not a pointer
- ((EGLNativeWindowType)m_nativeWindow)->width = res.iScreenWidth;
- ^
- EGLNativeTypeSunxi.cpp:319:42: error: base operand of ‘->’ is not a pointer
- ((EGLNativeWindowType)m_nativeWindow)->height = res.iScreenHeight;
- ^
- ../../../Makefile.include:97: recipe for target 'EGLNativeTypeSunxi.o' failed
- make[1]: *** [EGLNativeTypeSunxi.o] Error 1
- Makefile:420: recipe for target 'xbmc/windowing/egl/windowing_egl.a' failed
- make: *** [xbmc/windowing/egl/windowing_egl.a] Error 2
Copy code With the following patched applied(cleanly):
/root/OpenELEC-OPi2/projects/H3/patches/kodi/kodi-000-windowing-support.patch /root/OpenELEC-OPi2/projects/H3/patches/kodi/kodi-004-PR9430.patch /root/OpenELEC-OPi2/projects/H3/patches/kodi/kodi-002-sound-fix.patch /root/OpenELEC-OPi2/projects/H3/patches/kodi/kodi-005-H3-support.patch /root/OpenELEC-OPi2/projects/H3/patches/kodi/kodi-003-perform_suspend_instead_of_powerdown.patch
And the following configure options:
./configure --enable-non-free --enable-codec=cedarx --prefix=/opt/kodi --disable-x11 --disable-gl --disable-vdpau --disable-vaapi
kodi branch c1c4b9e
|