Skip to content

macOS/Meson/Codec: Fix linker error with videotoolbox

Ankit Meel requested to merge ankitm/vlc:fix/codec_meson into master
FAILED: modules/libvideotoolbox_plugin.dylib
cc  -o modules/libvideotoolbox_plugin.dylib modules/libvideotoolbox_plugin.dylib.p/codec_videotoolbox_decoder.c.o modules/libvideotoolbox_plugin.dylib.p/codec_hxxx_helper.c.o modules/libvideotoolbox_plugin.dylib.p/packetizer_hxxx_nal.c.o modules/libvideotoolbox_plugin.dylib.p/packetizer_hxxx_sei.c.o modules/libvideotoolbox_plugin.dylib.p/packetizer_h264_slice.c.o modules/libvideotoolbox_plugin.dylib.p/packetizer_h264_nal.c.o modules/libvideotoolbox_plugin.dylib.p/packetizer_hevc_nal.c.o -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-undefined,error -shared -install_name @rpath/libvideotoolbox_plugin.dylib -mmacosx-version-min=10.11 -Wl,-rpath,@loader_path/../src modules/codec/liblibvlc_vtutils.a compat/libcompat.a src/libvlccore.9.dylib -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks -framework VideoToolbox -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks -framework Foundation -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks -framework CoreMedia -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks -framework CoreVideo -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks -framework CoreVideo -lm
ld: warning: -undefined error is deprecated
Undefined symbols for architecture arm64:
  "_DPBOutputAndRemoval", referenced from:
      _OnDecodedFrame in codec_videotoolbox_decoder.c.o
  "_DPBOutputFrame", referenced from:
      _DrainDPBLocked in codec_videotoolbox_decoder.c.o
  "_InsertIntoDPB", referenced from:
      _OnDecodedFrame in codec_videotoolbox_decoder.c.o
  "_RemoveDPBSlot", referenced from:
      _DrainDPBLocked in codec_videotoolbox_decoder.c.o
  "_pic_pacer_AccountAllocation", referenced from:
      _DecoderCallback in codec_videotoolbox_decoder.c.o
  "_pic_pacer_AccountDeallocation", referenced from:
      _video_context_OnPicReleased in codec_videotoolbox_decoder.c.o
  "_pic_pacer_AccountFinishedDecode", referenced from:
      _DecoderCallback in codec_videotoolbox_decoder.c.o
  "_pic_pacer_AccountScheduledDecode", referenced from:
      _DecodeBlock in codec_videotoolbox_decoder.c.o
  "_pic_pacer_Clean", referenced from:
      _pic_pacer_Destroy in codec_videotoolbox_decoder.c.o
  "_pic_pacer_Init", referenced from:
      _CreateVideoContext in codec_videotoolbox_decoder.c.o
  "_pic_pacer_UpdateMaxBuffering", referenced from:
      _OnDecodedFrame in codec_videotoolbox_decoder.c.o
      _OnDecodedFrame in codec_videotoolbox_decoder.c.o
      _OnDecodedFrame in codec_videotoolbox_decoder.c.o
  "_pic_pacer_WaitAllocatableSlot", referenced from:
      _DecodeBlock in codec_videotoolbox_decoder.c.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Edited by Ankit Meel

Merge request reports

Loading