open-webrtc-toolkit / owt-client-native

Open WebRTC Toolkit client SDK for native Windows/Linux/iOS applications.
https://01.org/open-webrtc-toolkit
Apache License 2.0
392 stars 181 forks source link

Building on Windows10 21H2 failed,metrics_logger_and_exporter.cc(58) : fatal error C1001 #697

Closed windboy12138 closed 1 year ago

windboy12138 commented 1 year ago

The build command is this python3 build-win.py --gn_gen --sdk --arch x64 --scheme debug --ssl_root C:\env\OpenSSL --sio_root C:\env\socketio --msdk_root C:\IntelMediaSDK2021\SoftwareDevelopmentKit --output_path C:\env\owt_client.

The error in build log is

FAILED: obj/third_party/webrtc/api/test/metrics/metrics_logger_and_exporter/metrics_logger_and_exporter.obj 
FAILED: obj/third_party/webrtc/api/test/metrics/metrics_logger/metrics_logger.obj 

\owt_client\src\third_party\webrtc\api\test\metrics\metrics_logger_and_exporter.cc(58) : fatal error C1001
“D:\a\_work\1\s\src\vctools\Compiler\Utc\src\p2\main.c”,Line 213 
windboy12138 commented 1 year ago

By the word, my visual studio version is vs2019.

windboy12138 commented 1 year ago

I updated my visual studio to version 2022 and build succeed.