Use vs2022 build Webrtc

839 views
Skip to first unread message

steven kang

unread,
Apr 22, 2022, 4:09:52 PM4/22/22
to discuss-webrtc
HI,
I made an error when compiling the latest version of the source code, please help to analyze what is the problem:
GN:
gn gen out\Release --ide=vs2022 --args="is_debug=false target_os=\"win\" target_cpu=\"x64\" is_component_build=false is_clang=false use_lld=false treat_warnings_as_errors=false use_rtti=true rtc_include_tests=false rtc_build_examples=false"
Ninja:
ninja -C out\Release
Error:
D:\WebRTC\src\logging/rtc_event_log/events/rtc_event_audio_playout.h(81): error C2327: “webrtc::RtcEventAudioPlayout::ssrc_”: 不是类型名称、静态或枚举数
D:\WebRTC\src\logging/rtc_event_log/events/rtc_event_audio_playout.h(81): error C2065: “ssrc_”: 未声明的标识符
Multiple same problems occur.
Thank You.



Andy Wilson

unread,
Apr 22, 2022, 6:02:28 PM4/22/22
to discuss-webrtc

Maybe: use_custom_libcxx=false

emanuele bizzarri

unread,
Aug 18, 2022, 5:08:45 AM8/18/22
to discuss-webrtc
Same problem here. As you suggested I tried with:
gn gen %BUILD_OUT_DIR% --args="treat_warnings_as_errors=false is_debug=false is_clang=false use_custom_libcxx=false is_component_build=false rtc_include_tests=true target_cpu=""x64""" --ide=vs
but I get the same error. 
In the code the problem seems here:
logging/rtc_event_log/events/rtc_event_audio_playout.h(81): error C2327: 'webrtc::RtcEventAudioPlayout::ssrc_': is not a type name, static, or enumerator
Screenshot_1.png


V I

unread,
Aug 18, 2022, 1:30:35 PM8/18/22
to discuss...@googlegroups.com
is_clang=false has been broken on Windows (ie MS compiler) for a while, I think the last release you can build with MSVC is m99

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/b6f154cd-58fa-4d38-9e66-943ce42554b3n%40googlegroups.com.

V I

unread,
Aug 18, 2022, 1:34:21 PM8/18/22
to discuss...@googlegroups.com
Just one of the issues (they’re reported on a regular basis): 
Reply all
Reply to author
Forward
0 new messages