View: 6703|Reply: 5

Compiling openelec/kodi(by Jernej) for armbian, compile error

[Copy link]

1

threads

5

posts

23

credits

Novice

Rank: 1

credits
23
Published in 2016-12-11 07:00:21 | Show all floors |Read mode
Hi all,

Trying to compile Jasper kodi with the orangepi patches on armbian is giving me a compile error:
  1. CPP     /mnt/src/xbmc/xbmc/windowing/egl/EGLNativeTypeSunxi.o
  2. EGLNativeTypeSunxi.cpp: In member function ‘virtual void CEGLNativeTypeSunxi::Initialize()’:
  3. EGLNativeTypeSunxi.cpp:140:75: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
  4.    CLog::Log(LOGNOTICE, "%s - Screen ID %d is selected\n", __FUNCTION__, m_screenid);
  5.                                                                            ^
  6. EGLNativeTypeSunxi.cpp: In member function ‘virtual bool CEGLNativeTypeSunxi::CreateNativeWindow()’:
  7. EGLNativeTypeSunxi.cpp:165:49: error: invalid use of incomplete type ‘struct CEGLNativeTypeSunxi::CreateNativeWindow()::mali_native_window’
  8.    EGLNativeWindowType nativeWindow = new struct mali_native_window;
  9.                                                  ^
  10. EGLNativeTypeSunxi.cpp:165:49: error: forward declaration of ‘struct CEGLNativeTypeSunxi::CreateNativeWindow()::mali_native_window’
  11. EGLNativeTypeSunxi.cpp:176:15: error: base operand of ‘->’ is not a pointer
  12.    nativeWindow->width = res.iScreenWidth;
  13.                ^
  14. EGLNativeTypeSunxi.cpp:177:15: error: base operand of ‘->’ is not a pointer
  15.    nativeWindow->height = res.iScreenHeight;
  16.                ^
  17. EGLNativeTypeSunxi.cpp:178:18: error: invalid conversion from ‘EGLNativeWindowType {aka long unsigned int}’ to ‘XBNativeWindowType {aka void*}’ [-fpermissive]
  18.    m_nativeWindow = nativeWindow;
  19.                   ^
  20. EGLNativeTypeSunxi.cpp: In member function ‘virtual bool CEGLNativeTypeSunxi::DestroyNativeWindow()’:
  21. EGLNativeTypeSunxi.cpp:208:31: error: type ‘EGLNativeWindowType {aka long unsigned int}’ argument given to ‘delete’, expected pointer
  22.    delete (EGLNativeWindowType)m_nativeWindow, m_nativeWindow = NULL;
  23.                                ^
  24. EGLNativeTypeSunxi.cpp: In member function ‘virtual bool CEGLNativeTypeSunxi::SetNativeResolution(const RESOLUTION_INFO&)’:
  25. EGLNativeTypeSunxi.cpp:318:42: error: base operand of ‘->’ is not a pointer
  26.      ((EGLNativeWindowType)m_nativeWindow)->width = res.iScreenWidth;
  27.                                           ^
  28. EGLNativeTypeSunxi.cpp:319:42: error: base operand of ‘->’ is not a pointer
  29.      ((EGLNativeWindowType)m_nativeWindow)->height = res.iScreenHeight;
  30.                                           ^
  31. ../../../Makefile.include:97: recipe for target 'EGLNativeTypeSunxi.o' failed
  32. make[1]: *** [EGLNativeTypeSunxi.o] Error 1
  33. Makefile:420: recipe for target 'xbmc/windowing/egl/windowing_egl.a' failed
  34. 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

4

threads

1118

posts

9497

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9497
Published in 2016-12-11 22:26:22 | Show all floors
Revert patch "kodi-000-windowing-support.patch" and enable X11, for starters.

1

threads

5

posts

23

credits

Novice

Rank: 1

credits
23
 Author| Published in 2016-12-12 07:14:03 | Show all floors
It works!

Need to start X server manually... and to get audio working needed to do this: https://forum.armbian.com/index. ... c-and-kodi/?p=11222

1

threads

5

posts

23

credits

Novice

Rank: 1

credits
23
 Author| Published in 2016-12-12 07:44:21 | Show all floors
Actually.. I'm limited to 720p.. 1080p gives blank screen while starting kodi

4

threads

1118

posts

9497

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9497
Published in 2016-12-13 04:32:01 | Show all floors
Can you provide kodi.log?

0

threads

6

posts

44

credits

Novice

Rank: 1

credits
44
Published in 2023-5-17 17:27:31 | Show all floors
Car shipping in the USA is a great option for snowbirds who need to transport their vehicles between states during different seasons  https://www.youtube.com/watch?v=SmKeohJfLt8.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list