Linux cross-compiling for arm64 breaks on building binary addons
on my Ubuntu 22.04 Notebook i am cross-compiling kodi for the Librem5, a linux mobile/phone having a i.MX 8M Quad core Cortex A53 64bit ARM CPU with Vivante GC7000Lite GPU.

what i did so far (for the records)

- building the dependencies
install packages from,, plus
$ sudo apt install libflatbuffers-dev libglew-dev libwayland-dev libxkbcommon-dev waylandpp-dev wayland-protocols libgbm-dev libinput-dev libxkbcommon-dev libusb-dev autoconf bison build-essential curl default-jdk flex gawk git libcurl4-openssl-dev unzip zip zlib1g-dev gcc-aarch64-linux-gnu crossbuild-essential-arm64  (list is probably not complete)

(the following i did it with sudo since i saw that some stuff was copied to /usr/..)

$ cd $HOME
$ mkdir -p kodi-build/opt/xbmc-deps
$ cd kodi-build
$ git clone
add "--without-brotli" to $HOME/kodi-build/xbmc/tools/depends/target/curl/Makefile#L15
$ cd xbmc/tools/depends/
$ ./configure --prefix=$HOME/kodi-build/opt/xbmc-deps --host=aarch64-linux-gnu --with-rendersystem=gles --enable-debug=no
$ sudo make VERBOSE=1 -j$(getconf _NPROCESSORS_ONLN) # build with all cores
if it breaks, install missing dev packages and re-run make

- building kodi
$ cd $HOME/kodi-build
$ sudo make -C xbmc/tools/depends/target/cmakebuildsys BUILD_DIR=$HOME/kodi-build/
$ sudo make VERBOSE=1 -j$(getconf _NPROCESSORS_ONLN) # build with all cores

- building all binary addons
$ sudo make VERBOSE=1 -j$(getconf _NPROCESSORS_ONLN) binary-addons # build with all cores

here it breaks where i dont know how to resolve it:
CMake Error at /home/ak/kodi-build/opt/xbmc-deps/x86_64-linux-gnu-native/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Call Stack (most recent call first):
  /home/ak/kodi-build/opt/xbmc-deps/x86_64-linux-gnu-native/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  FindOpenGLES.cmake:51 (find_package_handle_standard_args)
  CMakeLists.txt:18 (find_package)

looks like the OpenGL libraries are present:
~/kodi-build$ ll opt/xbmc-deps/aarch64-linux-gnu-release/lib/ | grep -i gl
lrwxrwxrwx  1 root root       11 Mai  2 23:02 ->*
lrwxrwxrwx  1 root root       15 Mai  2 23:02 ->*
-rwxr-xr-x  1 root root   391736 Mai  2 23:02*
lrwxrwxrwx  1 root root       13 Mai  2 23:02 ->*
lrwxrwxrwx  1 root root       17 Mai  2 23:02 ->*
-rwxr-xr-x  1 root root   447056 Mai  2 22:59*
lrwxrwxrwx  1 root root       14 Mai  2 23:02 ->*
lrwxrwxrwx  1 root root       18 Mai  2 23:02 ->*
-rwxr-xr-x  1 root root    72576 Mai  2 23:02*

Any help is much appreciated!

Logout Mark Read Team Forum Stats Members Help
cross-compiling for arm64 breaks on building binary addons0
This forum uses Lukasz Tkacz MyBB addons.