fraunhoferhhi / vvdec

VVdeC, the Fraunhofer Versatile Video Decoder
https://www.hhi.fraunhofer.de/en/departments/vca/technologies-and-solutions/h266-vvc.html
BSD 3-Clause Clear License
465 stars 97 forks source link

MacOS arm64 shared build #89

Closed adamjw24 closed 2 years ago

adamjw24 commented 2 years ago

After compiling a shared build for arm64 under MacOS using default settings, the apps linking against libvvdec fail at start with SigKill (9).

adamjw24 commented 2 years ago

For now, the cause of the issue is unknown, but somehow connected to Xcode. Building under MacOS without Xcode helps.

For make-based build, please use g=ninja or g=umake to select an alternative generator. For CMake, select 'Ninja' or 'Unix Makefiles' as the generator to bypass Xcode.

K-os commented 2 years ago

I just built the latest revision from master (e83c1166) on ARM64 Mac and the test suite completed successfully. I think we can close this issue.

K-os commented 2 years ago

I just noticed: the build output actually tells us what goes wrong during the install step:

-- Installing: /Users/hege/projects/vvdec/install/lib/libvvdec.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/hege/projects/vvdec/install/lib/libvvdec.dylib
-- Installing: /Users/hege/projects/vvdec/install/bin/vvdecapp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/hege/projects/vvdec/install/bin/vvdecapp

This is most probably due to the RPATH being updated during the install step.