vircadia-native-core
vircadia-native-core copied to clipboard
macOS error running packages created using legacy build
When creating a package using the legacy build system (as used by GHA), trying to run what is inside the resulting package fails:
juliangro@Julians-iMac-Pro /Applications % Vircadia.app/Contents/MacOS/Vircadia
dyld: Library not loaded: @rpath/libavatars-renderer.dylib
Referenced from: /Applications/Vircadia.app/Contents/MacOS/Vircadia
Reason: image not found
zsh: abort Vircadia.app/Contents/MacOS/Vircadia
juliangro@Julians-iMac-Pro /Applications %
This is a bit of a headscratcher since the GHA packages work fine using the same build system and what should be the same commands.
Here is how I am creating said package:
cmake -DCMAKE_BUILD_TYPE=Release -DVCPKG_BUILD_TYPE=release -DCMAKE_OSX_SYSROOT="/Applications/Xcode_10.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk" -DOSX_SDK=10.12 -DCLIENT_ONLY=1 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.12 -DVIRCADIA_CPU_ARCHITECTURE="-msse3" -DOPENSSL_ROOT_DIR=/usr/local/opt/[email protected] -G Xcode ..
cmake --build . --target Vircadia --config Release
cmake --build . --target package --config Release
Output of the package step: https://pastebin.ubuntu.com/p/x3J8p6R3zC/ This is an experimental branch so don't mind the deprecation warnings. Same issue happens on master.
If I try this unpackaged it runs fine, so I assume it must be an error in the packaging step.
Hello! Is this still an issue?