无法为 Mobile-UXSDK-iOS 编译 DJIWidget [英] Cannot Compile the DJIWidget for Mobile-UXSDK-iOS

查看:32
本文介绍了无法为 Mobile-UXSDK-iOS 编译 DJIWidget的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Xcode 10.1 编译 DJIWidget.目的是运行 Mobile-UXSDK-iOS 示例 在 github 上找到.如果我使用 New Build System(文件->工作区设置),我会收到以下错误:

I am trying to compile DJIWidget using Xcode 10.1. The purpose is to run the Mobile-UXSDK-iOS Sample found on github. If i use the New Build System (File->Workspace Settings) I get the following error:

Ld /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Products/Debug-iphonesimulator/DJIWidget/DJIWidget.framework/DJIWidget normal x86_64 (in target: DJIWidget)
    cd /Users/paolo/Documents/Projects/Mobile-UXSDK-iOS/Sample\ Code/SwiftSampleCode/Pods
    export IPHONEOS_DEPLOYMENT_TARGET=8.0
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -L/Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Products/Debug-iphonesimulator/DJIWidget -F/Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Products/Debug-iphonesimulator/DJIWidget -F/Users/paolo/Documents/Projects/Mobile-UXSDK-iOS/Sample\ Code/SwiftSampleCode/Pods/DJIWidget/FFmpeg -filelist /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DJIWidget.build/Objects-normal/x86_64/DJIWidget.LinkFileList -install_name @rpath/DJIWidget.framework/DJIWidget -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -mios-simulator-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DJIWidget.build/Objects-normal/x86_64/DJIWidget_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework Foundation -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DJIWidget.build/Objects-normal/x86_64/DJIWidget_dependency_info.dat -o /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Products/Debug-iphonesimulator/DJIWidget/DJIWidget.framework/DJIWidget

Undefined symbols for architecture x86_64:
  "_avformat_network_init", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_opt_set_int", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_opt_set", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_avcodec_find_encoder", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_avcodec_encode_audio2", referenced from:
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
  "_avio_close_stream", referenced from:
      _djiff_close_stream_input in djiffremux.o
  "_avformat_close_input", referenced from:
      _djiff_close_file_input in djiffremux.o
  "_avformat_open_input", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_bitstream_filter_close", referenced from:
      _djiff_remux_deinit in djiffremux.o
  "_av_strlcpy", referenced from:
      _djiff_open_file_input in djiffremux.o
  "_av_get_bits_per_sample", referenced from:
      _djiff_assign_stream_info in djiffremux.o
  "_av_rescale_q_rnd", referenced from:
      _djiff_remux_frame in djiffremux.o
      _djiff_mux_frame in djiffremux.o
      _djiff_mux_frame2 in djiffremux.o
  "_avcodec_pix_fmt_to_codec_tag", referenced from:
      _djiff_assign_stream_info in djiffremux.o
  "_avformat_free_context", referenced from:
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
      _djiff_remux_deinit in djiffremux.o
      _djiff_close_stream_input in djiffremux.o
  "_avpriv_find_pix_fmt", referenced from:
      _djiff_assign_stream_info in djiffremux.o
  "_avcodec_close", referenced from:
      -[DJICustomVideoFrameExtractor freeExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIRtmpMuxer ffmpeg_shutdown] in DJIRtmpMuxer.o
      -[DJIVideoPreviewerH264Parser freeParser] in DJIVideoPreviewerH264Parser.o
  "_av_opt_set_defaults", referenced from:
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
  "_avformat_alloc_context", referenced from:
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_free_packet", referenced from:
      -[DJICustomVideoFrameExtractor privateParseVideo:length:withOutputBlock:] in DJICustomVideoFrameExtractor.o
      -[DJICustomVideoFrameExtractor decodeRawFrame:callback:] in DJICustomVideoFrameExtractor.o
      _djiff_filter_packet in djiffremux.o
      _djiff_mux_frame in djiffremux.o
      _djiff_mux_frame2 in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
      ...
  "_avio_open_stream", referenced from:
      _djiff_open_stream_input in djiffremux.o
  "_av_write_frame", referenced from:
      _djiff_remux_frame in djiffremux.o
      _djiff_mux_frame in djiffremux.o
      _djiff_mux_frame2 in djiffremux.o
  "_avformat_find_stream_info", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_write_trailer", referenced from:
      _djiff_remux_deinit in djiffremux.o
  "_av_rescale_q", referenced from:
      _djiff_mux_choose_output in djiffremux.o
      _djiff_remux_frame in djiffremux.o
      _djiff_mux_frame in djiffremux.o
      _djiff_mux_frame2 in djiffremux.o
      _djiff_remux_seek in djiffremux.o
  "_av_guess_format", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_sws_scale", referenced from:
      -[DJIImageCalibrateColorCPUConverter convertFromRGBA:withSize:] in DJIImageCalibrateColorCPUConverter.o
  "_av_read_frame", referenced from:
      _djiff_remux_frame in djiffremux.o
      _djiff_demux_frame in djiffremux.o
  "_avcodec_copy_context", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_avformat_write_header", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
  "_avformat_alloc_output_context2", referenced from:
      _djiff_remux_init in djiffremux.o
  "_avpriv_get_raw_pix_fmt_tags", referenced from:
      _djiff_assign_stream_info in djiffremux.o
  "_avio_open", referenced from:
      _djiff_remux_init in djiffremux.o
  "_av_find_input_format", referenced from:
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
  "_avio_close", referenced from:
      _djiff_open_file_input in djiffremux.o
      _djiff_remux_deinit in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_shutdown] in DJIRtmpMuxer.o
  "_av_bitstream_filter_init", referenced from:
      _djiff_remux_init in djiffremux.o
  "_sws_freeContext", referenced from:
      -[DJIImageCalibrateColorCPUConverter dealloc] in DJIImageCalibrateColorCPUConverter.o
      -[DJIImageCalibrateColorCPUConverter convertFromRGBA:withSize:] in DJIImageCalibrateColorCPUConverter.o
  "_avformat_new_stream", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_parser_close", referenced from:
      -[DJICustomVideoFrameExtractor freeExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser freeParser] in DJIVideoPreviewerH264Parser.o
  "_av_dict_copy", referenced from:
      _djiff_remux_init in djiffremux.o
  "_av_init_packet", referenced from:
      -[DJICustomVideoFrameExtractor privateParseVideo:length:withOutputBlock:] in DJICustomVideoFrameExtractor.o
      -[DJICustomVideoFrameExtractor decodeRawFrame:callback:] in DJICustomVideoFrameExtractor.o
      _djiff_remux_frame in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
      -[DJIVideoPreviewerH264Parser parseVideo:length:usedLength:] in DJIVideoPreviewerH264Parser.o
  "_avcodec_open2", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_parser_parse2", referenced from:
      -[DJICustomVideoFrameExtractor privateParseVideo:length:withOutputBlock:] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser parseVideo:length:usedLength:] in DJIVideoPreviewerH264Parser.o
  "_avio_open2", referenced from:
      _djiff_open_file_input in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
  "_av_interleaved_write_frame", referenced from:
      _djiff_remux_frame in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
  "_avcodec_register_all", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_frame_alloc", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
  "_avcodec_find_decoder", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser initParser] in DJIVideoPreviewerH264Parser.o
  "_av_dict_set", referenced from:
      _djiff_remux_init in djiffremux.o
      _djiff_assign_stream_info in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_frame_free", referenced from:
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
  "_av_seek_frame", referenced from:
      _djiff_remux_seek in djiffremux.o
  "_av_parser_init", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser initParser] in DJIVideoPreviewerH264Parser.o
  "_av_mallocz", referenced from:
      _djiff_remux_init in djiffremux.o
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
  "_av_register_all", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      _djiff_remux_init in djiffremux.o
      _djiff_remux_getDuration in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
      -[DJIVideoPreviewerH264Parser initParser] in DJIVideoPreviewerH264Parser.o
  "_av_dict_free", referenced from:
      _djiff_remux_init in djiffremux.o
  "_av_bitstream_filter_filter", referenced from:
      _djiff_filter_packet in djiffremux.o
  "_sws_getContext", referenced from:
      -[DJIImageCalibrateColorCPUConverter convertFromRGBA:withSize:] in DJIImageCalibrateColorCPUConverter.o
  "_avcodec_alloc_context3", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser initParser] in DJIVideoPreviewerH264Parser.o
  "_av_free", referenced from:
      -[DJICustomVideoFrameExtractor freeExtractor] in DJICustomVideoFrameExtractor.o
      _djiff_remux_deinit in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_free] in DJIRtmpMuxer.o
      -[DJIVideoPreviewerH264Parser freeParser] in DJIVideoPreviewerH264Parser.o
  "_avcodec_decode_video2", referenced from:
      -[DJICustomVideoFrameExtractor decodeRawFrame:callback:] in DJICustomVideoFrameExtractor.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

如果我使用 Legacy Build System 作为解释 这里我仍然有错误,如下:

If instead I use the Legacy Build System as explained here I still got errors, which are the following:

Ld /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Products/Debug-iphonesimulator/DJIWidget/DJIWidget.framework/DJIWidget normal x86_64
    cd "/Users/paolo/Documents/Projects/Mobile-UXSDK-iOS/Sample Code/SwiftSampleCode/Pods"
    export IPHONEOS_DEPLOYMENT_TARGET=8.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -L/Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Products/Debug-iphonesimulator/DJIWidget -F/Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Products/Debug-iphonesimulator/DJIWidget -F/Users/paolo/Documents/Projects/Mobile-UXSDK-iOS/Sample\ Code/SwiftSampleCode/Pods/DJIWidget/FFmpeg -filelist /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DJIWidget.build/Objects-normal/x86_64/DJIWidget.LinkFileList -install_name @rpath/DJIWidget.framework/DJIWidget -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -mios-simulator-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DJIWidget.build/Objects-normal/x86_64/DJIWidget_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework Foundation -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DJIWidget.build/Objects-normal/x86_64/DJIWidget_dependency_info.dat -o /Users/paolo/Library/Developer/Xcode/DerivedData/UXSDKSwiftSample-haeixzppsjyygmdsdkydxxpnpsvw/Build/Products/Debug-iphonesimulator/DJIWidget/DJIWidget.framework/DJIWidget

Undefined symbols for architecture x86_64:
  "_avformat_network_init", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_opt_set_int", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_opt_set", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_avcodec_find_encoder", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_avcodec_encode_audio2", referenced from:
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
  "_avio_close_stream", referenced from:
      _djiff_close_stream_input in djiffremux.o
  "_avformat_close_input", referenced from:
      _djiff_close_file_input in djiffremux.o
  "_avformat_open_input", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_bitstream_filter_close", referenced from:
      _djiff_remux_deinit in djiffremux.o
  "_av_strlcpy", referenced from:
      _djiff_open_file_input in djiffremux.o
  "_av_get_bits_per_sample", referenced from:
      _djiff_assign_stream_info in djiffremux.o
  "_av_rescale_q_rnd", referenced from:
      _djiff_remux_frame in djiffremux.o
      _djiff_mux_frame in djiffremux.o
      _djiff_mux_frame2 in djiffremux.o
  "_avcodec_pix_fmt_to_codec_tag", referenced from:
      _djiff_assign_stream_info in djiffremux.o
  "_avformat_free_context", referenced from:
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
      _djiff_remux_deinit in djiffremux.o
      _djiff_close_stream_input in djiffremux.o
  "_avpriv_find_pix_fmt", referenced from:
      _djiff_assign_stream_info in djiffremux.o
  "_avcodec_close", referenced from:
      -[DJICustomVideoFrameExtractor freeExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIRtmpMuxer ffmpeg_shutdown] in DJIRtmpMuxer.o
      -[DJIVideoPreviewerH264Parser freeParser] in DJIVideoPreviewerH264Parser.o
  "_av_opt_set_defaults", referenced from:
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
  "_avformat_alloc_context", referenced from:
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_free_packet", referenced from:
      -[DJICustomVideoFrameExtractor privateParseVideo:length:withOutputBlock:] in DJICustomVideoFrameExtractor.o
      -[DJICustomVideoFrameExtractor decodeRawFrame:callback:] in DJICustomVideoFrameExtractor.o
      _djiff_filter_packet in djiffremux.o
      _djiff_mux_frame in djiffremux.o
      _djiff_mux_frame2 in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
      ...
  "_avio_open_stream", referenced from:
      _djiff_open_stream_input in djiffremux.o
  "_av_write_frame", referenced from:
      _djiff_remux_frame in djiffremux.o
      _djiff_mux_frame in djiffremux.o
      _djiff_mux_frame2 in djiffremux.o
  "_avformat_find_stream_info", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_write_trailer", referenced from:
      _djiff_remux_deinit in djiffremux.o
  "_av_rescale_q", referenced from:
      _djiff_mux_choose_output in djiffremux.o
      _djiff_remux_frame in djiffremux.o
      _djiff_mux_frame in djiffremux.o
      _djiff_mux_frame2 in djiffremux.o
      _djiff_remux_seek in djiffremux.o
  "_av_guess_format", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_sws_scale", referenced from:
      -[DJIImageCalibrateColorCPUConverter convertFromRGBA:withSize:] in DJIImageCalibrateColorCPUConverter.o
  "_av_read_frame", referenced from:
      _djiff_remux_frame in djiffremux.o
      _djiff_demux_frame in djiffremux.o
  "_avcodec_copy_context", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_avformat_write_header", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
  "_avformat_alloc_output_context2", referenced from:
      _djiff_remux_init in djiffremux.o
  "_avpriv_get_raw_pix_fmt_tags", referenced from:
      _djiff_assign_stream_info in djiffremux.o
  "_avio_open", referenced from:
      _djiff_remux_init in djiffremux.o
  "_av_find_input_format", referenced from:
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
  "_avio_close", referenced from:
      _djiff_open_file_input in djiffremux.o
      _djiff_remux_deinit in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_shutdown] in DJIRtmpMuxer.o
  "_av_bitstream_filter_init", referenced from:
      _djiff_remux_init in djiffremux.o
  "_sws_freeContext", referenced from:
      -[DJIImageCalibrateColorCPUConverter dealloc] in DJIImageCalibrateColorCPUConverter.o
      -[DJIImageCalibrateColorCPUConverter convertFromRGBA:withSize:] in DJIImageCalibrateColorCPUConverter.o
  "_avformat_new_stream", referenced from:
      _djiff_remux_init in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_parser_close", referenced from:
      -[DJICustomVideoFrameExtractor freeExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser freeParser] in DJIVideoPreviewerH264Parser.o
  "_av_dict_copy", referenced from:
      _djiff_remux_init in djiffremux.o
  "_av_init_packet", referenced from:
      -[DJICustomVideoFrameExtractor privateParseVideo:length:withOutputBlock:] in DJICustomVideoFrameExtractor.o
      -[DJICustomVideoFrameExtractor decodeRawFrame:callback:] in DJICustomVideoFrameExtractor.o
      _djiff_remux_frame in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
      -[DJIVideoPreviewerH264Parser parseVideo:length:usedLength:] in DJIVideoPreviewerH264Parser.o
  "_avcodec_open2", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_parser_parse2", referenced from:
      -[DJICustomVideoFrameExtractor privateParseVideo:length:withOutputBlock:] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser parseVideo:length:usedLength:] in DJIVideoPreviewerH264Parser.o
  "_avio_open2", referenced from:
      _djiff_open_file_input in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
  "_av_interleaved_write_frame", referenced from:
      _djiff_remux_frame in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
  "_avcodec_register_all", referenced from:
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_frame_alloc", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
  "_avcodec_find_decoder", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser initParser] in DJIVideoPreviewerH264Parser.o
  "_av_dict_set", referenced from:
      _djiff_remux_init in djiffremux.o
      _djiff_assign_stream_info in djiffremux.o
      -[DJIRtmpMuxer rtmpWork] in DJIRtmpMuxer.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
  "_av_frame_free", referenced from:
      -[DJIRtmpMuxer ffmpeg_encodeAudioFrame:length:] in DJIRtmpMuxer.o
  "_av_seek_frame", referenced from:
      _djiff_remux_seek in djiffremux.o
  "_av_parser_init", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser initParser] in DJIVideoPreviewerH264Parser.o
  "_av_mallocz", referenced from:
      _djiff_remux_init in djiffremux.o
      _djiff_open_stream_input in djiffremux.o
      _djiff_open_file_input in djiffremux.o
  "_av_register_all", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      _djiff_remux_init in djiffremux.o
      _djiff_remux_getDuration in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_init] in DJIRtmpMuxer.o
      -[DJIVideoPreviewerH264Parser initParser] in DJIVideoPreviewerH264Parser.o
  "_av_dict_free", referenced from:
      _djiff_remux_init in djiffremux.o
  "_av_bitstream_filter_filter", referenced from:
      _djiff_filter_packet in djiffremux.o
  "_sws_getContext", referenced from:
      -[DJIImageCalibrateColorCPUConverter convertFromRGBA:withSize:] in DJIImageCalibrateColorCPUConverter.o
  "_avcodec_alloc_context3", referenced from:
      -[DJICustomVideoFrameExtractor setupExtractor] in DJICustomVideoFrameExtractor.o
      -[DJIVideoPreviewerH264Parser initParser] in DJIVideoPreviewerH264Parser.o
  "_av_free", referenced from:
      -[DJICustomVideoFrameExtractor freeExtractor] in DJICustomVideoFrameExtractor.o
      _djiff_remux_deinit in djiffremux.o
      -[DJIRtmpMuxer ffmpeg_free] in DJIRtmpMuxer.o
      -[DJIVideoPreviewerH264Parser freeParser] in DJIVideoPreviewerH264Parser.o
  "_avcodec_decode_video2", referenced from:
      -[DJICustomVideoFrameExtractor decodeRawFrame:callback:] in DJICustomVideoFrameExtractor.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我该怎么做才能通过这个拦截器?

What can I do to pass this blocker?

推荐答案

最终的解决方案是使用 Cocoapods 1.5.3.此解决方案已得到 OP 作者的确认.

The final solution is to use Cocoapods 1.5.3. This solution was confirmed by author of OP.

这篇关于无法为 Mobile-UXSDK-iOS 编译 DJIWidget的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆