Posts: 387
Joined: Dec 2011
Reputation:
5
2023-01-10, 15:04
(This post was last modified: 2023-01-10, 15:04 by tutu.)
I'm trying to build kodi on Linux and I wish to target aarch64. I'm using Ubuntu 22.10 on amd64.
How do I specify using aarch64? Do I need to also target a specific gcc lib that's on the target device?
cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=wayland -DAPP_RENDER_SYSTEM=gl -DCMAKE_CXX_FLAGS="-march=armv8-a
Posts: 127
Joined: Dec 2022
The simplest way I've found to cross compile to other CPU variants (such as Pi) is a qemu chroot on a host system (not the target system).
Also works great for modifying a rootfs.
A overall general example of what I mean here:
https://a-delacruz.github.io/ubuntu/rpi3...ystem.html
Adjust as needed, it's just an example.
That will give you a complete shell for your target system which you can run on your host system. When finished, image it, pack it, write it to sd/usb, whatever you desire.
Posts: 7,658
Joined: Jun 2011
Reputation:
288
did you actually _compile_ depends? You have to run make after configure.....
Posts: 7,658
Joined: Jun 2011
Reputation:
288
you need to find the actual error that causes the build to fail. It might be samba, but could be some dependency of it.
Run: make -c target VERBOSE=1 # (NO -j) and take note of the error when it fails
Posts: 387
Joined: Dec 2011
Reputation:
5
2023-01-16, 18:12
(This post was last modified: 2023-01-16, 18:32 by tutu. Edited 1 time in total.)
I am using going to start afresh with a new git clone and see if I can try again.
UPDATE fresh checkout worked... now on to compiling kodi itself.