The current version of Kodi in Debian10's repositories is v17.6. This version didn't work properly (it wasn't usable). Hence I'm trying to install the latest version.
I followed the steps of the "Debian/Ubuntu build guide" of the Kodi repository except that I didn't add the PPA. I used
sudo apt build-dep kodi as packages "flatbuffers-dev" and "libshairplay-dev" could not be found and there wasn't an installation candidate for "libmysqlclient-dev" when trying to build dependencies manually. When trying to follow the steps of "Build Kodi" of the "Linux build guide" which are the last step of the "Debian/Ubuntu build guide" I get these errors when running command
cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DX11_RENDER_SYSTEM=gl:
CMake Error at CMakeLists.txt:95 (core_add_library): Unknown CMake command "core_add_library".
CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as
should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
Do I need to add the PPA and should I? Or is there something else that should be done to compile it? Would it be recommended to install it via the flatpak instead?