Cross compile for aarch64 on Ubuntu

I’ve got the tool chain file fairly well figured out. The problem I run into is that the sysroot is at /usr/aarch64-linux-gnu, while the arm64 libs and includes are in /usr/lib/aarch64-linux-gnu and /usr/include/aarch64-linux-gnu, where CMake’s find_package doesn’t find them. How do I tell CMake about those? Is Ubuntu just weird in not also putting its arm64 packages into the sysroot?

Thanks!

1 Like