简体   繁体   中英

Undefined symbols for architecture arm64 in GStreamer

I have included into my iOS project the GStreamer and some of the errors I receive are the following:

Undefined symbols for architecture arm64:
  "_kVTCompressionPropertyKey_Quality", referenced from:
      _gst_vtenc_set_quality in GStreamer(libgstapplemedia_a_arm64_-libgstapplemedia_la-vtenc.o)
  "_VTCompressionSessionInvalidate", referenced from:
      _gst_vtenc_destroy_session in GStreamer(libgstapplemedia_a_arm64_-libgstapplemedia_la-vtenc.o)
  "_kVTCompressionPropertyKey_NumberOfPendingFrames", referenced from:
      _gst_vtenc_handle_frame in GStreamer(libgstapplemedia_a_arm64_-libgstapplemedia_la-vtenc.o)
  "_VTSessionCopyProperty", referenced from:
      _gst_vtenc_handle_frame in GStreamer(libgstapplemedia_a_arm64_-libgstapplemedia_la-vtenc.o)
      _gst_vtenc_session_dump_property in GStreamer(libgstapplemedia_a_arm64_-libgstapplemedia_la-vtenc.o)
  "_kVTCompressionPropertyKey_ExpectedFrameRate", referenced from:
      _gst_vtenc_set_format in GStreamer(libgstapplemedia_a_arm64_-libgstapplemedia_la-vtenc.o)
  "_VTCompressionSessionCompleteFrames", referenced from:
      _gst_vtenc_finish in GStreamer(libgstapplemedia_a_arm64_-libgstapplemedia_la-vtenc.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have included in the building phase libraries such as:

GStreamer.framework
libiconv.tbd
libresolv.tbd
libstdc++.6.0.9.tbd

but I still get it. Any suggestions?

您需要将项目与VideoToolbox.framework链接,因为在其中定义了错误符号( VTCompressionSessionInvalidateVTCompressionPropertyKey_Quality )。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM