webrtc m98编译问题记录

在尝试使用gngen进行webrtcm98编译时遇到错误,涉及sys_lib_flags变量未使用的问题。解决方法是注释掉BUILD.gn文件中指定的相应行。
摘要由CSDN通过智能技术生成

webrtc m98编译问题

执行命令

gn gen --target=x64 --ide=vs2019 --args="is_debug=true rtc_enable_protobuf=false is_clang=false target_cpu=\"x64\"  enable_iterator_debugging=true  use_custom_libcxx=false symbol_level=0 rtc_include_tests=false" out/debug_x64

异常

ERROR at //build/toolchain/win/BUILD.gn:528:9: Assignment had no effect.
        "-libpath:$_clang_lib_dir ${win_toolchain_data.libpath_flags}"
        ^-------------------------------------------------------------
You set the variable "sys_lib_flags" here and it was unused before it went
out of scope.
See //build/toolchain/win/BUILD.gn:542:3: whence it was called.
  win_toolchains("x86") {
  ^----------------------
See //BUILD.gn:30:3: which caused the file to be included.
  group("default") {
  ^-----------------

解决办法和问题分析

  • 直接注释掉 //build/toolchain/win/BUILD.gn:542这行代码
  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值