我已将GStreamer包含在我的iOS项目中,我收到的一些错误如下:
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)
我已经包含在构建阶段库中,例如:
GStreamer.framework
libiconv.tbd
libresolv.tbd
libstdc++.6.0.9.tbd
但我仍然明白。有什么建议吗?
答案 0 :(得分:3)
您需要将项目与VideoToolbox.framework
相关联,因为错误中的符号(VTCompressionSessionInvalidate
,VTCompressionPropertyKey_Quality
)已在其中定义。