康晨吖 2021-05-12 11:36 采纳率: 100%
浏览 35
已结题

导c的项目报错,求大佬瞅一眼

Build command failed.
Error while executing process E:\SDK\cmake\3.6.4111459\bin\cmake.exe with arguments {--build E:\android\SDKsldl\webrtcApi\.externalNativeBuild\cmake\debug\armeabi-v7a --target vvroom_peerconnection_jni}
[1/1] Linking CXX shared library ..\..\..\..\build\intermediates\cmake\debug\obj\armeabi-v7a\libvvroom_peerconnection_jni.so
FAILED: cmd.exe /C "cd . && E:\android-ndk-r21e\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe  --target=armv7-none-linux-androideabi16 --gcc-toolchain=E:/android-ndk-r21e/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=E:/android-ndk-r21e/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security  -std=c++11 -frtti -fexceptions -fpermissive -O0 -fno-limit-debug-info  -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--fatal-warnings -Wl,--exclude-libs,libunwind.a -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libvvroom_peerconnection_jni.so -o ..\..\..\..\build\intermediates\cmake\debug\obj\armeabi-v7a\libvvroom_peerconnection_jni.so CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/vvroom/native-shinevv.cpp.o CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/webrtc/api/androidmediadecoder_jni.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/webrtc/api/androidmediaencoder_jni.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/webrtc/api/androidmetrics_jni.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/webrtc/api/androidnetworkmonitor_jni.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/webrtc/api/androidvideotracksource.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/webrtc/api/androidvideotracksource_jni.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/webrtc/api/classreferenceholder.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/webrtc/api/jni_helpers.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/webrtc/api/jni_onload.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/webrtc/api/native_handle_impl.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/webrtc/api/peerconnection_jni.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/webrtc/api/surfacetexturehelper_jni.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/webrtc/base/adaptedvideotracksource.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/webrtc/common_video/video_frame_buffer.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/webrtc/media/engine/webrtcvideoencoderfactory.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/src/main/cpp/webrtc/media/base/videocapturer.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/E_/android/SDKsldl/third_party/webrtc/sfu_client/room_client.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/E_/android/SDKsldl/third_party/webrtc/sfu_client/base/BaseClass.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/E_/android/SDKsldl/third_party/webrtc/sfu_client/handles/Handler.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/E_/android/SDKsldl/third_party/webrtc/sfu_client/handles/ortc/JsonCompare.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/E_/android/SDKsldl/third_party/webrtc/sfu_client/handles/sdp/RemotePlanBSdp.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/E_/android/SDKsldl/third_party/webrtc/sfu_client/mediasoup/Consumer.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/E_/android/SDKsldl/third_party/webrtc/sfu_client/mediasoup/Device.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/E_/android/SDKsldl/third_party/webrtc/sfu_client/mediasoup/Peer.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/E_/android/SDKsldl/third_party/webrtc/sfu_client/mediasoup/Producer.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/E_/android/SDKsldl/third_party/webrtc/sfu_client/mediasoup/Room.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/E_/android/SDKsldl/third_party/webrtc/sfu_client/mediasoup/Transport.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/E_/android/SDKsldl/third_party/webrtc/sfu_client/peerconnection/peer_connection_factory_createor.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/E_/android/SDKsldl/third_party/webrtc/sfu_client/peerconnection/screen_share_capture.cc.o CMakeFiles/vvroom_peerconnection_jni.dir/E_/android/SDKsldl/third_party/webrtc/sfu_client/protoo/protooimpl.cc.o -LE:/android/SDKsldl/webrtcApi/../third_party/ndk -LE:/android/SDKsldl/webrtcApi/../third_party/openssl/libs/armeabi-v7a -LE:/android/SDKsldl/webrtcApi/../third_party/x264/libs/android -LE:/android/SDKsldl/webrtcApi/../third_party/webrtc-build-android/debug/lib -lGLESv2 -lOpenSLES -llog -latomic -lc -landroid -lm -ljingle_peerconnection -lcall_api -lcall -lvoice_engine -llevel_indicator -lrtc_stats -lrtc_pc -lrtc_p2p -lstunprober -lvideo -lvideo_processing -lvideo_processing_neon -lvideo_coding -lrtc_media -lwebrtc_vp9 -lwebrtc_vp8 -lwebrtc_i420 -lwebrtc_h264 -lencoder -lvideo_coding_utility -lvideo_capture_module -lvideo_capture_internal_impl -lvideo_quality_analysis -lutility -lrtp_rtcp -lmedia_file -lcongestion_controller -lbitrate_controller -lpacing -lremote_bitrate_estimator -laudio_processing -laudio_processing_neon -laudioproc_debug_proto -laudio_device -laudio_conference_mixer -lrent_a_codec -lred -lbuiltin_audio_decoder_factory -laudio_coding -lwebrtc_opus -lpcm16b -lneteq -lisac_fix -lisac -lisac_neon -lisac_fix -lisac_common -lilbc -laac -lg722 -lg711 -lcng -laudio_network_adaptor -laudio_format_conversion -laudio_format -laudio_encoder_interface -laudio_decoder_interface -lana_debug_dump_proto -lana_config_proto -lrtc_event_log_impl -lrtc_event_log_proto -lcommon_video -laudio -lwebrtc_common -lprotobuf_lite -lcommon_audio -lcommon_audio_neon -lopus -lwldl -lopenmax_dl_armv7 -lopenmax_dl_neon -lprocessing -ldecoder -lfield_trial_default -lsystem_wrappers -lrtc_task_queue -lrtc_base -lrtc_base_approved -lcommon -lyuv -lyuv_neon -lvpx -lvpx_assembly_arm -ljpeg -lsimd -ljsoncpp -lexpat -lssl -lcrypto -lz -lcpu_features -lcpu_features_android -ljpeg -levent -lmetrics_default -lvideo -lx264 -lvideo_mixer -lcall_api -lcall -lsrtp -lusrsctp -lresip -lffmpeg_internal ../../../../../third_party/kuma/objs/android/release/local/armeabi-v7a/libkuma.a -Wl,--no-fatal-warnings -ldl -lvoice_engine -llevel_indicator -lrtc_stats -lrtc_pc -lrtc_p2p -lstunprober -lvideo -lvideo_processing -lvideo_processing_neon -lvideo_coding -lrtc_media -lwebrtc_vp9 -lwebrtc_vp8 -lwebrtc_i420 -lwebrtc_h264 -lencoder -lvideo_coding_utility -lvideo_capture_module -lvideo_capture_internal_impl -lvideo_quality_analysis -lutility -lrtp_rtcp -lmedia_file -lcongestion_controller -lbitrate_controller -lpacing -lremote_bitrate_estimator -laudio_processing -laudio_processing_neon -laudioproc_debug_proto -laudio_device -laudio_conference_mixer -lrent_a_codec -lred -lbuiltin_audio_decoder_factory -laudio_coding -lwebrtc_opus -lpcm16b -lneteq -lisac_fix -lisac -lisac_neon -lisac_common -lilbc -laac -lg722 -lg711 -lcng -laudio_network_adaptor -laudio_format_conversion -laudio_format -laudio_encoder_interface -laudio_decoder_interface -lana_debug_dump_proto -lana_config_proto -lrtc_event_log_impl -lrtc_event_log_proto -lcommon_video -laudio -lwebrtc_common -lprotobuf_lite -lcommon_audio -lcommon_audio_neon -lopus -lwldl -lopenmax_dl_armv7 -lopenmax_dl_neon -lprocessing -ldecoder -lfield_trial_default -lsystem_wrappers -lrtc_task_queue -lrtc_base -lrtc_base_approved -lcommon -lyuv -lyuv_neon -lvpx -lvpx_assembly_arm -ljpeg -lsimd -ljsoncpp -lexpat -lssl -lcrypto -lz -lcpu_features -lcpu_features_android -levent -lmetrics_default -lx264 -lvideo_mixer -lsrtp -lusrsctp -lresip -lffmpeg_internal ../../../../../third_party/kuma/objs/android/release/local/armeabi-v7a/libkuma.a -ldl -latomic -lm && cd ."
E:/android-ndk-r21e/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/android/SDKsldl/webrtcApi/../third_party/webrtc-build-android/debug/lib/libvideo_capture_internal_impl.a:1:1: syntax error, unexpected '!', expecting $end
E:/android-ndk-r21e/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/android/SDKsldl/webrtcApi/../third_party/webrtc-build-android/debug/lib/libvideo_capture_internal_impl.a: not an object or archive
E:/android-ndk-r21e/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/android/SDKsldl/webrtcApi/../third_party/webrtc-build-android/debug/lib/libvideo_capture_internal_impl.a:1:1: syntax error, unexpected '!', expecting $end
E:/android-ndk-r21e/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: E:/android/SDKsldl/webrtcApi/../third_party/webrtc-build-android/debug/lib/libvideo_capture_internal_impl.a: not an object or archive
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

  • 写回答

1条回答 默认 最新

  • 雪下的回忆 2021-05-13 09:11
    关注

    它说链接"CXX共享库..\..\..\..\build\intermediates\cmake\debug\obj\armeabi-v7a\libvvroom\u peerconnection\u jni.so"失败,你看看哪里的路径有没有问题,还是你没下对应的依赖

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 9月1日
  • 已采纳回答 9月1日

悬赏问题

  • ¥15 使用微信开发者工具实现一个“婚博会”小程序
  • ¥15 ros的rviz仿真机器人
  • ¥15 关于#linux#的问题(输入输出错误):出现这个界面接着我重新装系统,又让修电脑的师傅帮我扫描硬盘(没有问题)用着用着又卡死(相关搜索:固态硬盘)
  • ¥15 cv::resize不同线程时间不同
  • ¥15 web课程,怎么做啊😭没好好听课 根本不知道怎么下手
  • ¥15 做一个关于单片机的比较难的代码,然后搞一个PPT进行解释
  • ¥15 python提取.csv文件中的链接会经常出现爬取失败
  • ¥15 数据结构中的数组地址问题
  • ¥15 maya的mel里,怎样先选择模型A,然后利用mel脚本自动选择有相同名字的模型B呢。
  • ¥15 Python题,根本不会啊