Hello!
I have a working version of GroundSDK that was copied over from my old Intel Mac. I can use PDrAW and vmeta-extract in the terminal from the original folder. However, I had some issues getting some scripts working, and was not able to compile the Libdraw test-app.
Since I now have a newer Apple silicon Mac, I thought it would be a good idea to reinstall. However, after running this command:
./build.sh -p groundsdk-macos -t build -j/1
I get a list of errors like this:
ld: warning: ignoring duplicate libraries: ‘-lc++’
ld: warning: search path ‘~/code/groundsdk-tools/out/groundsdk-macos/staging/lib/arm64-apple-darwin24.5.0’ not found
ld: warning: search path ‘~/code/groundsdk-tools/out/groundsdk-macos/staging/lib’ not found
ld: warning: search path ‘/Users/hansharaldberge/code/groundsdk-tools/out/groundsdk-macos/staging/usr/lib/arm64-apple-darwin24.5.0’ not found
ld: warning: ignoring file ‘~/code/groundsdk-tools/out/groundsdk-macos/build/libyuv/obj/CMakeFiles/yuvconvert.dir/util/yuvconvert.cc.o’: found architecture ‘arm64’, required architecture ‘x86_64’
ld: warning: ignoring file ‘libyuv.a50’: found architecture ‘arm64’, required architecture ‘x86_64’
ld: warning: ignoring file ‘libyuv.a49’: found architecture ‘arm64’, required architecture ‘x86_64’
…etc…
And then it ends with this:
Undefined symbols for architecture x86_64:
“_main”, referenced from:
ld: symbol(s) not found for architecture x86_64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [yuvconvert] Error 1
make[2]: *** [CMakeFiles/yuvconvert.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [~/code/groundsdk-tools/out/groundsdk-macos/build/libyuv/libyuv.built.stamp] Error 2
– The C compiler identification is AppleClang 16.0.0.16000026
MAKE ERROR DETECTED
[E] Command failed (returncode=254)
Am I missing some files from the repo? Do I have to force x86_64 architecture instead on aarch64 for parts of the compiler somehow? Any insight would be very helpful! I’m just scratching my head right now, since it’s working in one folder, but not the other…