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
389 stars 181 forks source link

In windows 10, how to bulid, so i can open and debug in vs2017 or vs2019 #573

Open hello-Mr-chen opened 2 years ago

hello-Mr-chen commented 2 years ago

After "gclient sync", I run this command "gn gen --ide=vs out/Default", and all.sln was created successfully but when i compile all.sln in VS2017/2019,Encountered the same problem。 Question 1: unknown argument ignored in clang-cl: '-fno-delete-null-pointer-checks' [-Werror,-Wunknown-argument] periodic_sampler D:\owt-client-native\src\out\Defualt\obj\third_party\abseil-cpp\absl\base\clang-cl 1
Many files have the same problem, One solution is to open the xxxxx.ninja file and delete '-fno-delete-null-pointer-checks', But it's very troublesome. I'm wondering if there's any other solution? Qusetion 2: field '_hRecThread' will be initialized after field '_hDeviceRestartEvent' [-Werror,-Wreorder-ctor] owt_sdk_conf D:\owt-client-native\src\out\Defualt\obj\third_party\webrtc\modules\audio_device\win\audio_device_core_win.cc 400 Many files have the same problem, One solution is swap the order of the two in the constructor, Also it's very troublesome. I'm wondering if there's any other solution? Qusetion 3: '../../third_party/ced/src/compact_enc_det/compact_enc_det.cc', needed by 'obj/third_party/ced/ced/compact_enc_det.obj', missing and no known rule to make it base_perftests D:\owt-client-native\src\out\Defualt\obj\base\ninja 1
Many files have the same problem, and i I don't know how to solve it