We can see this materialise when we try to link cd /Users/markh/projects/SSP.private/build.xc/technobear/clds & /opt/homebrew/Cellar/cmake/3.19.1/bin/cmake -E cmake_link_script CMakeFiles/CLDS_VST.dir/link.txt -verbose=1 Here we can see its not finding a bunch of libraries (webkit2gtk-4.0) since they are not in the local environment (only the sysroot), and similar freetype is the wrong verison 23.4.17 is the local env, where sysroot has 18.3.12 Build files have been written to: /Users/markh/projects/SSP.private/build.xc Checking for modules 'webkit2gtk-4.0 gtk+-x11-3.0' Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2") Check for working CXX compiler: /opt/homebrew/opt/llvm/bin/clang++ - skipped Check for working C compiler: /opt/homebrew/opt/llvm/bin/clang - skipped The CXX compiler identification is Clang 11.0.0 The C compiler identification is Clang 11.0.0 Using envvar XC_ROOT - /Users/markh/xc/xcSSP What appears to be happening is when we build the cmake file juce cmake is bringing in dependanies from the local environment rather than sysrootÄ®.g bash-3.2$ cmake -DCMAKE_TOOLCHAIN_FILE=./xc.cmake. My cross compilation environment is working fine for my other cmake projects. However, Im trying to use make to cross compile on the M1 to armhf. Works for native compile on mac, my same compile also works on a Linux machine.
Im using a mac mini M1 (apple silicon) using CMake to compile VSTs