Cross compiling JUCE 6.1.6 results in juceaide being compiled with target toolchain

Hi Val,
The problem is probably because juceaide is compiled for the target architecture, not the host architecture. One way to solve this problem could be to configure CMAKE_CROSSCOMPILING_EMULATOR to specify the path to the emulator that will be used to run the executables compiled for the target architecture on the host architecture. You can try adding the following line to the CMakeLists.txt file before calling add_subdirectory() for your plugin:
set(CMAKE_CROSSCOMPILING_EMULATOR /usr/bin/qemu-aarch64-static)
This assumes that you have the qemu-user-static package installed, which contains an emulator to run aarch64 binaries on the x86_64 architecture. If you have a different emulator, replace the path with the appropriate one. This should force juceaide to compile for the host architecture and your plugin to compile for the target architecture. If that doesn’t work, you can try other emulators or workarounds, but keep in mind that this may lead to other problems or unwanted behavior. Good luck solving the problem!

1 Like