Kodi Community Forum

Full Version: Very slow UI on Krypton 17.0 release
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I built the Kodi 17 Krypton release on a Raspberry Pi 3, yet when I start it up, it the user-interface is very slow. It takes several seconds to navigate from one button to another. My Pi has tons of free RAM, and I made it use 256 MB of video memory in the /boot/cmdline.txt (setting gpu_mem=256).

How can I speed up the UI?

With a clean install (no pre-existing ~/.kodi/ dir), this is my kodi.log
Code:
14:46:56.407 T:1913447712  NOTICE: special://profile/ is mapped to: special://masterprofile/
14:46:56.407 T:1913447712  NOTICE: -----------------------------------------------------------------------
14:46:56.408 T:1913447712  NOTICE: Starting Kodi (17.0 Git:20170202-nogitfound). Platform: Linux ARM 32-bit
14:46:56.408 T:1913447712  NOTICE: Using Release Kodi x32 build
14:46:56.408 T:1913447712  NOTICE: Kodi compiled Feb  2 2017 by GCC 5.4.0 for Linux ARM 32-bit version 4.8.15 (264207)
14:46:56.408 T:1913447712  NOTICE: Running on Slackware 14.2, kernel: Linux ARM 32-bit version 4.9.3-v7-arm
14:46:56.408 T:1913447712  NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi
14:46:56.408 T:1913447712  NOTICE: Host CPU: ARMv7 Processor rev 4 (v7l), 4 cores available
14:46:56.408 T:1913447712  NOTICE: ARM Features: Neon enabled
14:46:56.408 T:1913447712  NOTICE: special://xbmc/ is mapped to: /usr/local/share/kodi
14:46:56.408 T:1913447712  NOTICE: special://xbmcbin/ is mapped to: /usr/local/lib/kodi
14:46:56.408 T:1913447712  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/local/lib/kodi/addons
14:46:56.408 T:1913447712  NOTICE: special://masterprofile/ is mapped to: /home/Geremia/.kodi/userdata
14:46:56.408 T:1913447712  NOTICE: special://envhome/ is mapped to: /home/Geremia
14:46:56.408 T:1913447712  NOTICE: special://home/ is mapped to: /home/Geremia/.kodi
14:46:56.408 T:1913447712  NOTICE: special://temp/ is mapped to: /home/Geremia/.kodi/temp
14:46:56.408 T:1913447712  NOTICE: special://logpath/ is mapped to: /home/Geremia/.kodi/temp
14:46:56.408 T:1913447712  NOTICE: The executable running is: /usr/local/lib/kodi/kodi.bin
14:46:56.408 T:1913447712  NOTICE: Local hostname: RaspPi
14:46:56.408 T:1913447712  NOTICE: Log File is located: /home/Geremia/.kodi/temp//kodi.log
14:46:56.408 T:1913447712  NOTICE: -----------------------------------------------------------------------
14:46:56.481 T:1913447712  NOTICE: load settings...
14:46:56.554 T:1913447712  NOTICE: Found 1 Lists of Devices
14:46:56.554 T:1913447712  NOTICE: Enumerated PULSE devices:
14:46:56.554 T:1913447712  NOTICE:     Device 1
14:46:56.555 T:1913447712  NOTICE:         m_deviceName      : Default
14:46:56.555 T:1913447712  NOTICE:         m_displayName     : Default
14:46:56.555 T:1913447712  NOTICE:         m_displayNameExtra: Default Output Device (PULSEAUDIO)
14:46:56.555 T:1913447712  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
14:46:56.555 T:1913447712  NOTICE:         m_channels        : FL,FR
14:46:56.555 T:1913447712  NOTICE:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
14:46:56.555 T:1913447712  NOTICE:         m_dataFormats     : AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_FLOAT
14:46:56.555 T:1913447712  NOTICE:         m_streamTypes     : No passthrough capabilities
14:46:56.555 T:1913447712  NOTICE:     Device 2
14:46:56.555 T:1913447712  NOTICE:         m_deviceName      : auto_null
14:46:56.555 T:1913447712  NOTICE:         m_displayName     : Dummy Output
14:46:56.555 T:1913447712  NOTICE:         m_displayNameExtra: Dummy Output (PULSEAUDIO)
14:46:56.555 T:1913447712  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
14:46:56.555 T:1913447712  NOTICE:         m_channels        : FL,FR
14:46:56.555 T:1913447712  NOTICE:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
14:46:56.555 T:1913447712  NOTICE:         m_dataFormats     : AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_FLOAT
14:46:56.555 T:1913447712  NOTICE:         m_streamTypes     : No passthrough capabilities
14:46:56.557 T:1913447712   ERROR: CSettings: unable to load settings from special://masterprofile/guisettings.xml, creating new default settings
14:46:56.575 T:1913447712  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
14:46:56.575 T:1913447712  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
14:46:56.575 T:1913447712  NOTICE: Default Video Player: VideoPlayer
14:46:56.575 T:1913447712  NOTICE: Default Audio Player: paplayer
14:46:56.575 T:1913447712  NOTICE: Disabled debug logging due to GUI setting. Level 0.
14:46:56.575 T:1913447712  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
14:46:56.575 T:1913447712  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
14:46:56.576 T:1913447712  NOTICE: Loaded playercorefactory configuration
14:46:56.576 T:1913447712  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
14:46:56.577 T:1913447712  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
14:46:56.875 T:1913447712  NOTICE: ADDONS: Using repository repository.xbmc.org
14:46:56.902 T:1894773728  NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 300 ms
14:46:57.472 T:1913447712  NOTICE: Setup SDL
14:46:57.526 T:1913447712  NOTICE: Checking resolution 16
14:46:57.898 T:1913447712   ERROR: Failed to determine egl config for visual info
14:46:57.898 T:1913447712 WARNING: Visual 0x186 of the window is not suitable, looking for another one...
14:46:57.899 T:1913447712  NOTICE: Using visual 0x21
14:46:58.046 T:1913447712  NOTICE: Using visual 0x186
14:46:58.113 T:1913447712  NOTICE: GL_VENDOR = VMware, Inc.
14:46:58.113 T:1913447712  NOTICE: GL_RENDERER = Gallium 0.4 on softpipe
14:46:58.113 T:1913447712  NOTICE: GL_VERSION = 3.0 Mesa 13.0.2
14:46:58.113 T:1913447712  NOTICE: GL_SHADING_LANGUAGE_VERSION = 1.30
14:46:58.113 T:1913447712  NOTICE: GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_ATI_fragment_shader GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_depth_clamp GL_NV_fog_distance GL_APPLE_packed_pixels GL_APPLE_vertex_array_object GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_MESA_ycbcr_texture GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_ATI_texture_compression_3dc GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_rgtc GL_EXT_texture_mirror_clamp GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_ATI_texture_mirror_once GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_texture_array GL_EXT_texture_compression_latc GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_stencil_export GL_ARB_shader_texture_lod GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_multisample GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_ARB_get_program_binary GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_base_instance GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shader_atomic_counters GL_ARB_shader_image_load_store GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_texture_storage GL_ARB_transform_feedback_instanced GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_transform_feedback GL_AMD_shader_trinary_minmax GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_clear_buffer_object GL_ARB_compute_shader GL_ARB_copy_image GL_ARB_explicit_uniform_location GL_ARB_framebuffer_no_attachments GL_ARB_invalidate_subdata GL_ARB_program_interface_query GL_ARB_shader_image_size GL_ARB_shader_storage_buffer_object GL_ARB_stencil_texturing GL_ARB_texture_query_levels GL_ARB_texture_storage_multisample GL_ARB_texture_view GL_ARB_vertex_attrib_binding GL_KHR_debug GL_ARB_internalformat_query2 GL_ARB_multi_bind GL_ARB_seamless_cubemap_per_texture GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_stencil8 GL_ARB_vertex_type_10f_11f_11f_rev GL_EXT_shader_integer_mix GL_ARB_clip_control GL_ARB_conditional_render_inverted GL_ARB_cull_distance GL_ARB_get_texture_sub_image GL_ARB_pipeline_statistics_query GL_KHR_context_flush_control GL_ARB_shader_atomic_counter_ops GL_MESA_shader_integer_functions
14:47:01.501 T:1836053472  NOTICE: Running database version Addons27
14:47:05.386 T:1913447712  NOTICE: start dvd mediatype detection
14:47:08.199 T:1913447712 WARNING: CSkinInfo: failed to load skin settings
14:47:08.968 T:1913447712 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
14:47:09.230 T:1913447712  NOTICE: initialize done
14:47:09.230 T:1913447712  NOTICE: Running the application...
14:47:09.231 T:1913447712  NOTICE: starting upnp client
14:47:09.236 T:1599075296  NOTICE: ES: Starting UDP Event server on port 9777
14:47:09.236 T:1599075296  NOTICE: UDP: Listening on port 9777 (ipv6 : false)
Here's my kodi.log with debugging options turned on (too big to post here).

Here's my build configuration:
Code:
-- Source directory: /tmp/xbmc-17.0-Krypton
-- Build directory: /tmp/kodi-build
-- Generator: Single-configuration: Release (Unix Makefiles)
-- CMake Version: 3.7.1
-- System type: Linux
-- Linker: GNU gold
-- Core system type: linux
-- Platform:
-- CPU: armv7l, ARCH: arm
-- Cross-Compiling: FALSE
-- Execute build artefacts on host: TRUE
-- Depends based build:
-- Could not find hardware support for SSE (missing:  _SSE_TRUE _SSE_OK)
-- Could not find hardware support for SSE2 (missing:  _SSE2_TRUE _SSE2_OK)
-- Could not find hardware support for SSE3 (missing:  _SSE3_TRUE _SSE3_OK)
-- Could not find hardware support for SSSE3 (missing:  _SSSE3_TRUE _SSSE3_OK)
-- Could not find hardware support for SSE4.1 (missing:  _SSE41_TRUE _SSE41_OK)
-- Could not find hardware support for SSE4.2 (missing:  _SSE42_TRUE _SSE42_OK)
-- Could not find hardware support for AVX (missing:  _AVX_TRUE _AVX_OK)
-- Could not find hardware support for AVX2 (missing:  _AVX2_TRUE _AVX2_OK)
-- NEON optimization enabled
-- FFmpeg 3.1 not found, falling back to internal build
-- Could NOT find Avahi (missing:  AVAHI_CLIENT_LIBRARY AVAHI_COMMON_LIBRARY AVAHI_CLIENT_INCLUDE_DIR AVAHI_COMMON_INCLUDE_DIR)
-- Found VDPAU: /usr/lib/libvdpau.so (found version "1.1.1")
-- Found VAAPI: /usr/lib/libva.so (found suitable version "0.38.1", minimum required is "0.38.0")
-- Could NOT find CEC (missing:  CEC_LIBRARY CEC_INCLUDE_DIR) (Required is at least version "4.0.0")
-- Could NOT find Bluray (missing:  BLURAY_LIBRARY BLURAY_INCLUDE_DIR)
-- Could NOT find NFS (missing:  NFS_LIBRARY NFS_INCLUDE_DIR)
-- Could NOT find Shairplay (missing:  SHAIRPLAY_LIBRARY SHAIRPLAY_INCLUDE_DIR HAVE_SHAIRPLAY_CALLBACK_CLS)
-- Found Sdl: /usr/lib/libSDL.so (found version "1.2.15")
-- Found OpenGl: /usr/lib/libGL.so  
-- Found X: /usr/lib/libX11.so (found version "1.6.4")
-- Found LibDRM: /usr/lib/libdrm.so (found version "2.4.74")
-- Found XRandR: /usr/lib/libXrandr.so (found version "1.5.1")
-- Override disabled for AEDefines.h, using generic implementation
-- #---- CONFIGURATION ----#
-- -- PATH config --
-- Prefix: /usr/local
-- Libdir: /usr/local/lib
-- Bindir: /usr/local/bin
-- Includedir: /usr/local/include
-- Datarootdir: /usr/local/share
-- Datadir: /usr/local/share
-- Docdir: /usr/local/share/doc/kodi
-- MICROHTTPD enabled: Yes
-- MYSQLCLIENT enabled: Yes
-- SSH enabled: Yes
-- XSLT enabled: Yes
-- ALSA enabled: Yes
-- UDEV enabled: Yes
-- DBUS enabled: Yes
-- AVAHI enabled: No
-- SMBCLIENT enabled: Yes
-- CCACHE enabled: Yes
-- PULSEAUDIO enabled: Yes
-- VDPAU enabled: Yes
-- VAAPI enabled: Yes
-- BLUETOOTH enabled: Yes
-- CAP enabled: Yes
-- CEC enabled: No
-- BLURAY enabled: No
-- PLIST enabled: Yes
-- NFS enabled: No
-- SDL enabled: Yes
-- OPENGL enabled: Yes
-- X enabled: Yes
-- LIBDRM enabled: Yes
-- XRANDR enabled: Yes
-- AML enabled: No
-- IMX enabled: No
-- Configuring done
-- Generating done
README.raspberrypi says to disable OpenGL, which I'm thinking might be slowing the UI down, but I can't get Krypton to build when disabling OpenGL.

This seems to be the problem:
"ERROR: Failed to determine egl config for visual info"
I just installed the Krypton RC on my rpi2 from the pippleware respository and it is super slow. Both with the new skin and with aeon nox. loading a list of streams in the retrospect addon takes > 1 min. The mypictures database addon also takes several minutes to start.

Could it be because I updated instead of doing a fresh install? Could it be something wrong with the build? I will go back to my jarvis image now and update again once krypton is final
Kodi will update databases and addons when updating version. This can take a long time and kodi will be slower while that is going on.
Might be best to leave kodi idle for a few hours to see if the issue persists.

Might also be worth checking how a clean setup works.
Rename ~/.kodi to ~/.kodi_back before starting kodi. Does it run better?
If it doesn't help you can restore your original ~/.kodi directory.

It might also be worth testing a dedicated build. Both LibreELEC and OSMC have beta versions of Krypton, and should have final versions within the next few days.
PiPplware repo also has beta/release candidate versions of Kodi, the latest available is the last one, RC4. It also has all the needed and updated dependecies, for both armv6 and armv7, and it will also have Kodi Krypton final version when it comes out.

If both Geremia17 and asplundj post their logs, it shouldn't be hard to detect what's there problems.
I made a clean setup and will evaluate how it works when I have time. If my problem persists I will post logs
(2017-02-02, 14:15)rascas Wrote: [ -> ]http://kodi.wiki/view/Log_file
See my edited OP.
(2017-02-02, 14:16)popcornmix Wrote: [ -> ]Kodi will update databases and addons when updating version. This can take a long time and kodi will be slower while that is going on.
Might be best to leave kodi idle for a few hours to see if the issue persists.

Might also be worth checking how a clean setup works.
Rename ~/.kodi to ~/.kodi_back before starting kodi. Does it run better?
If it doesn't help you can restore your original ~/.kodi directory.
No, that's not the issue. The CPU usage is <3% after it finishes loading (and the memory usage is very low, too), yet still the slow UI responsiveness exists. A single Kodi thread's CPU usage spikes to 100% when the screensaver turns on, though.
Yes that's it, you have to disable OpenGL and enable Open GLES. All raspberry pi OSs compile Kodi with Open GLES, if not there is no hardware acceleration.

You also have to disable X, otherwise it won't compile with Open GLES.

Here is my config:
Code:
-- #---- CONFIGURATION ----#
-- -- PATH config --
-- Prefix: /usr
-- Libdir: /usr/lib/arm-linux-gnueabihf
-- Bindir: /usr/bin
-- Includedir: /usr/include
-- Datarootdir: /usr/share
-- Datadir: /usr/share
-- Docdir: /usr/share/doc/kodi
-- MICROHTTPD enabled: Yes
-- MYSQLCLIENT enabled: Yes
-- SSH enabled: Yes
-- XSLT enabled: Yes
-- ALSA enabled: Yes
-- UDEV enabled: Yes
-- DBUS enabled: Yes
-- AVAHI enabled: Yes
-- SMBCLIENT enabled: Yes
-- CCACHE enabled: Yes
-- PULSEAUDIO enabled: Yes
-- VDPAU enabled: No
-- VAAPI enabled: No
-- BLUETOOTH enabled: Yes
-- CAP enabled: Yes
-- CEC enabled: Yes
-- BLURAY enabled: Yes
-- PLIST enabled: Yes
-- NFS enabled: Yes
-- SDL enabled: No
-- OPENGL enabled: No
-- OPENGLES enabled: Yes
-- X enabled: No
-- LIBDRM enabled: No
(2017-02-03, 00:35)rascas Wrote: [ -> ]Yes that's it, you have to disable OpenGL and enable Open GLES. All raspberry pi OSs compile Kodi with Open GLES, if not there is no hardware acceleration.

You also have to disable X, otherwise it won't compile with Open GLES.
I tried building with
Code:
-DENABLE_OPENGL=OFF -DENABLE_OPENGLES=ON -DENABLE_X11=OFF -DENABLE_VDPAU=OFF -DENABLE_VAAPI=OFF
, but I got some errors:
Code:
[ 92%] Building CXX object build/windowing/egl/CMakeFiles/windowing_egl.dir/EGLWrapper.cpp.o
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In function ‘bool {anonymous}::CorrectGuess(CEGLNativeType*, const string&)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:63:13: error: invalid use of incomplete type ‘class CEGLNativeType’
     if(guess->CheckCompatibility())
             ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:65:34: error: invalid use of incomplete type ‘class CEGLNativeType’
       if (implementation == guess->GetNativeName() ||
                                  ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::Initialize(const string&)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:105:7: error: expected primary-expression before ‘)’ token
       )
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:109:18: error: invalid use of incomplete type ‘class CEGLNativeType’
     m_nativeTypes->Initialize();
                  ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::Destroy()’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:121:16: error: invalid use of incomplete type ‘class CEGLNativeType’
   m_nativeTypes->Destroy();
                ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:123:10: warning: possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
   delete m_nativeTypes;
          ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:123:10: warning: invalid use of incomplete type ‘class CEGLNativeType’
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:123:10: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
   delete m_nativeTypes;
          ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘std::string CEGLWrapper::GetNativeName()’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:131:25: error: invalid use of incomplete type ‘class CEGLNativeType’
     return m_nativeTypes->GetNativeName();
                         ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::CreateNativeDisplay()’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:140:23: error: invalid use of incomplete type ‘class CEGLNativeType’
   return m_nativeTypes->CreateNativeDisplay();
                       ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::CreateNativeWindow()’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:148:23: error: invalid use of incomplete type ‘class CEGLNativeType’
   return m_nativeTypes->CreateNativeWindow();
                       ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘void CEGLWrapper::DestroyNativeDisplay()’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:154:18: error: invalid use of incomplete type ‘class CEGLNativeType’
     m_nativeTypes->DestroyNativeDisplay();
                  ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘void CEGLWrapper::DestroyNativeWindow()’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:160:18: error: invalid use of incomplete type ‘class CEGLNativeType’
     m_nativeTypes->DestroyNativeWindow();
                  ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::SetNativeResolution(RESOLUTION_INFO&)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:167:23: error: invalid use of incomplete type ‘class CEGLNativeType’
   return m_nativeTypes->SetNativeResolution(res);
                       ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::ProbeResolutions(std::vector<RESOLUTION_INFO>&)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:174:23: error: invalid use of incomplete type ‘class CEGLNativeType’
   return m_nativeTypes->ProbeResolutions(resolutions);
                       ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::GetPreferredResolution(RESOLUTION_INFO*)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:182:23: error: invalid use of incomplete type ‘class CEGLNativeType’
   return m_nativeTypes->GetPreferredResolution(res);
                       ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::GetNativeResolution(RESOLUTION_INFO*)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:190:23: error: invalid use of incomplete type ‘class CEGLNativeType’
   return m_nativeTypes->GetNativeResolution(res);
                       ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::ShowWindow(bool)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:198:23: error: invalid use of incomplete type ‘class CEGLNativeType’
   return m_nativeTypes->ShowWindow(show);
                       ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::GetQuirks(int*)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:205:26: error: invalid use of incomplete type ‘class CEGLNativeType’
   *quirks = m_nativeTypes->GetQuirks();
                          ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::InitDisplay(void**)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:217:21: error: invalid use of incomplete type ‘class CEGLNativeType’
   if (!m_nativeTypes->GetNativeDisplay((XBNativeDisplayType**)&nativeDisplay))
                     ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:217:41: error: ‘XBNativeDisplayType’ was not declared in this scope
   if (!m_nativeTypes->GetNativeDisplay((XBNativeDisplayType**)&nativeDisplay))
                                         ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:217:62: error: expected primary-expression before ‘)’ token
   if (!m_nativeTypes->GetNativeDisplay((XBNativeDisplayType**)&nativeDisplay))
                                                              ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp: In member function ‘bool CEGLWrapper::CreateSurface(EGLDisplay, EGLConfig, void**)’:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:288:21: error: invalid use of incomplete type ‘class CEGLNativeType’
   if (!m_nativeTypes->GetNativeWindow((XBNativeWindowType**)&nativeWindow))
                     ^
In file included from /tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:40:0:
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.h:28:7: note: forward declaration of ‘class CEGLNativeType’
class CEGLNativeType;
       ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:288:40: error: ‘XBNativeWindowType’ was not declared in this scope
   if (!m_nativeTypes->GetNativeWindow((XBNativeWindowType**)&nativeWindow))
                                        ^
/tmp/xbmc-17.0-Krypton/xbmc/windowing/egl/EGLWrapper.cpp:288:60: error: expected primary-expression before ‘)’ token
   if (!m_nativeTypes->GetNativeWindow((XBNativeWindowType**)&nativeWindow))
                                                            ^
make[2]: *** [build/windowing/egl/CMakeFiles/windowing_egl.dir/build.make:63: build/windowing/egl/CMakeFiles/windowing_egl.dir/EGLWrapper.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:9275: build/windowing/egl/CMakeFiles/windowing_egl.dir/all] Error 2
make: *** [Makefile:139: all] Error 2
I was successfully able to build with:
Code:
cmake ../xbmc-17.0-Krypton/project/cmake/ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_PREFIX_PATH=/opt/vc -DCORE_SYSTEM_NAME=rbpi -DCPU=cortex-a7 -DWITH_ARCH=arm -DENABLE_OPENGL=OFF -DENABLE_X11=OFF -DENABLE_VAAPI=OFF -DENABLE_VDPAU=OFF
I guess my problem is different. Just tell me if I should make a new thread for it. It takes very long time to open lists. I'm trying to open the SVT play channel in the retrospect addon and it takes like 30 seconds. In jarvis it took me 1 or 2 seconds so it's a huge difference

kodi log
http://pastebin.com/HbmKuJj5

retrospect log
http://pastebin.com/J6ykLUeb
@asplundj Yes it is better to open another thread, since it is unrelated to the OP problem.
Yesterday I tried the command line proposed by @Geremia17 above:

cmake ../xbmc-17.0-Krypton/project/cmake/ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_PREFIX_PATH=/opt/vc -DCORE_SYSTEM_NAME=rbpi -DCPU=cortex-a7 -DWITH_ARCH=arm -DENABLE_OPENGL=OFF -DENABLE_X11=OFF -DENABLE_VAAPI=OFF -DENABLE_VDPAU=OFF

And after installing libssl-dev the build and installation worked very nicely! Now I finally seem to have a working Kodi on top of Raspbian that doesnt kill the system after twenty minutes!

I am running raspbian testing (not stable), and use the 4.9 kernel.

Thanks to everyone here!!
For the record:
My issue is related to this bug http://trac.kodi.tv/ticket/17304 It is thus reported and I won't post more in this thread. Sorry for disturbing.