Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building LibWebRTC for windows leads to error #90

Open
maurosimoes78 opened this issue Oct 10, 2023 · 2 comments
Open

Building LibWebRTC for windows leads to error #90

maurosimoes78 opened this issue Oct 10, 2023 · 2 comments

Comments

@maurosimoes78
Copy link

Hello all,

My build of LibWebRTC for windows is failing. I'm following the procedure as described in README.MD as follows:

set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set GYP_MSVS_VERSION=2019
set GYP_GENERATORS=ninja,msvs-ninja
set GYP_MSVS_OVERRIDE_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community

md e:\google\libwebrtc_build
cd e:\google\libwebrtc_build
edit .gclient

solutions = [
{
"name" : 'src',
"url" : 'https://github.com/webrtc-sdk/webrtc.git@m104_release',
"deps_file" : 'DEPS',
"managed" : False,
"custom_deps" : {
},
"custom_vars": {},
},
]
target_os = ['win']

run in e:\google\libwebrtc_build>gclient sync >>>>>>>>>>>>>
Updating depot_tools...
Syncing projects: 100% (42/42), done.
Running hooks: 55% (15/27) clang_format_win
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=win32 --no_auth --bucket chromium-clang-format -s src/buildtools/win/clang-format.exe.sha1' in 'E:\google\libwebrtc_build'
0> Downloading src/buildtools/win/clang-format.exe@66882fadbf9e99cc00b8677d8c1e7e8b3cfdf4fe...
Downloading 1 files took 13.507035 second(s)
Hook 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --platform=win32 --no_auth --bucket chromium-clang-format -s src/buildtools/win/clang-format.exe.sha1' took 13.88 secs
Running hooks: 70% (19/27) rc_win
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth --bucket chromium-browser-clang/rc -s src/build/toolchain/win/rc/win/rc.exe.sha1' in 'E:\google\libwebrtc_build'
0> Downloading src/build/toolchain/win/rc/win/rc.exe@7d3a485bb5bae0cf3c6b8af95d21f36aa7d02832...
Downloading 1 files took 6.302651 second(s)
Running hooks: 81% (22/27) test_fonts
________ running 'download_from_google_storage --no_resume --extract --no_auth --bucket chromium-fonts -s src/third_party/test_fonts/test_fonts.tar.gz.sha1' in 'E:\google\libwebrtc_build'
0> Downloading src/third_party/test_fonts/test_fonts.tar.gz@336e775eec536b2d785cc80eff6ac39051931286...
0> Extracting 33 entries from src/third_party/test_fonts/test_fonts.tar.gz to src/third_party/test_fonts/test_fonts
Downloading 1 files took 9.438952 second(s)
Hook 'download_from_google_storage --directory --recursive --num_threads=10 --no_auth --quiet --bucket chromium-webrtc-resources src/resources' took 214.28 secs
Running hooks: 100% (27/27), done.

e:\google\libwebrtc_build>cd E:\google\libwebrtc_build\src
e:\google\libwebrtc_build\src>git clone https://github.com/webrtc-sdk/libwebrtc
change BUILD.gn default to
{
....
deps = [ ":webrtc","//libwebrtc", ]
....
}

run E:\google\libwebrtc_build\src>gn gen out-debug/Windows-x64 --args="target_os="win" target_cpu="x64" is_component_build=false is_clang=true is_debug=true rtc_use_h264=true ffmpeg_branding="Chrome" rtc_include_tests=false rtc_build_examples=false libwebrtc_desktop_capture=true" --ide=vs2019 >>>>>>>>
Generating Visual Studio projects took 2732ms
Done. Made 1170 targets from 263 files in 23963ms

run E:\google\libwebrtc_build\src>ninja -C out-debug/Windows-x64 libwebrtc >>>>>>>>>>>>>>

ninja: Entering directory `out-debug/Windows-x64'
[3592/4058] CXX obj/libwebrtc/libwebrtc/vcm_capturer.obj
FAILED: obj/libwebrtc/libwebrtc/vcm_capturer.obj
....\third_party\llvm-build\Release+Asserts\bin\clang-cl.exe /c ../../libwebrtc/src/internal/vcm_capturer.cc /Foobj/libwebrtc/libwebrtc/vcm_capturer.obj /nologo /showIncludes:user "-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include" "-imsvcC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\ucrt" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\shared" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\um" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\cppwinrt" -DUSE_LIBYUV -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DLIB_WEBRTC_API_EXPORTS -DWEBRTC_WIN -DUSE_AURA=1 -D_HAS_NODISCARD -D_CRT_NONSTDC_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS "-DCR_CLANG_REVISION="llvmorg-15-init-11722-g3f3a235a-2"" -D_LIBCPP_ABI_NAMESPACE=Cr -D_LIBCPP_ABI_VERSION=2 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_NODISCARD -D_LIBCPP_NO_AUTO_LINK -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_FE -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBRTC_ENABLE_PROTOBUF=1 -DRTC_ENABLE_VP9 -DRTC_DAV1D_IN_INTERNAL_DECODER_FACTORY -DWEBRTC_HAVE_SCTP -DWEBRTC_USE_H264 -DWEBRTC_ENABLE_AVX2 -DRTC_ENABLE_WIN_WGC -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DABSL_ALLOCATOR_NOTHROW=1 -DLIB_WEBRTC_API_DLL -DHAVE_WEBRTC_VIDEO -I../../libwebrtc -I../../libwebrtc/include -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/abseil-cpp -I../../third_party/libyuv/include -I../../third_party/boringssl/src/include -Wno-microsoft-extra-qualification -Wno-reorder /W4 -Wimplicit-fallthrough -Wunreachable-code-aggressive -Wthread-safety /WX -Wno-missing-field-initializers -Wno-unused-parameter -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-nonportable-include-path -Wno-null-pointer-subtraction -Wenum-compare-conditional -Wno-psabi -Wno-ignored-pragma-optimize -Wno-unqualified-std-cast-call -Xclang -no-opaque-pointers -Wmax-tokens -Wshadow -fno-delete-null-pointer-checks -fno-ident -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 /clang:-ffp-contract=off -fcomplete-member-pointers /Gy /FS /bigobj /utf-8 /Zc:twoPhase -ffile-reproducible /Zc:sizedDealloc- /D__WRL_ENABLE_FUNCTION_STATICS__ -fmsc-version=1916 -m64 -msse3 /Brepro -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -ftrivial-auto-var-init=pattern /O1 /Ob2 /Oy- /Zc:inline /Gw /Oi /Z7 -gcodeview-ghash -Xclang -fuse-ctor-homing /guard:cf /MT -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-shadow -Wc++11-narrowing -Wundef -Wunused-lambda-capture /std:c++17 -Wno-trigraphs /Zc:alignedNew- /TP /GR- -I../../buildtools/third_party/libc++/trunk/include /Fd"obj/libwebrtc/libwebrtc_cc.pdb"
../../libwebrtc/src/internal/vcm_capturer.cc(42,26): error: no member named 'BlockingCall' in 'rtc::Thread'
vcm_ = worker_thread_->BlockingCall(
~~~~~~~~~~~~~~ ^
../../libwebrtc/src/internal/vcm_capturer.cc(78,36): error: no member named 'BlockingCall' in 'rtc::Thread'
int32_t result = worker_thread_->BlockingCall(
~~~~~~~~~~~~~~ ^
../../libwebrtc/src/internal/vcm_capturer.cc(91,26): error: no member named 'BlockingCall' in 'rtc::Thread'
worker_thread_->BlockingCall([&] {
~~~~~~~~~~~~~~ ^
../../libwebrtc/src/internal/vcm_capturer.cc(97,19): error: no member named 'BlockingCall' in 'rtc::Thread'
worker_thread_->BlockingCall([&] {

4 errors generated.
[3600/4058] CXX obj/libwebrtc/libwebrtc/rtc_frame_cryptor_impl.obj
FAILED: obj/libwebrtc/libwebrtc/rtc_frame_cryptor_impl.obj
..\..\third_party\llvm-build\Release+Asserts\bin\clang-cl.exe /c ../../libwebrtc/src/rtc_frame_cryptor_impl.cc /Foobj/libwebrtc/libwebrtc/rtc_frame_cryptor_impl.obj /nologo /showIncludes:user "-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include" "-imsvcC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\ucrt" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\shared" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\um" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\cppwinrt" -DUSE_LIBYUV -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DLIB_WEBRTC_API_EXPORTS -DWEBRTC_WIN -DUSE_AURA=1 -D_HAS_NODISCARD -D_CRT_NONSTDC_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS "-DCR_CLANG_REVISION=\"llvmorg-15-init-11722-g3f3a235a-2\"" -D_LIBCPP_ABI_NAMESPACE=Cr -D_LIBCPP_ABI_VERSION=2 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_NODISCARD -D_LIBCPP_NO_AUTO_LINK -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_FE -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBRTC_ENABLE_PROTOBUF=1 -DRTC_ENABLE_VP9 -DRTC_DAV1D_IN_INTERNAL_DECODER_FACTORY -DWEBRTC_HAVE_SCTP -DWEBRTC_USE_H264 -DWEBRTC_ENABLE_AVX2 -DRTC_ENABLE_WIN_WGC -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DABSL_ALLOCATOR_NOTHROW=1 -DLIB_WEBRTC_API_DLL -DHAVE_WEBRTC_VIDEO -I../../libwebrtc -I../../libwebrtc/include -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/abseil-cpp -I../../third_party/libyuv/include -I../../third_party/boringssl/src/include -Wno-microsoft-extra-qualification -Wno-reorder /W4 -Wimplicit-fallthrough -Wunreachable-code-aggressive -Wthread-safety /WX -Wno-missing-field-initializers -Wno-unused-parameter -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-nonportable-include-path -Wno-null-pointer-subtraction -Wenum-compare-conditional -Wno-psabi -Wno-ignored-pragma-optimize -Wno-unqualified-std-cast-call -Xclang -no-opaque-pointers -Wmax-tokens -Wshadow -fno-delete-null-pointer-checks -fno-ident -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 /clang:-ffp-contract=off -fcomplete-member-pointers /Gy /FS /bigobj /utf-8 /Zc:twoPhase -ffile-reproducible /Zc:sizedDealloc- /D__WRL_ENABLE_FUNCTION_STATICS__ -fmsc-version=1916 -m64 -msse3 /Brepro -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -ftrivial-auto-var-init=pattern /O1 /Ob2 /Oy- /Zc:inline /Gw /Oi /Z7 -gcodeview-ghash -Xclang -fuse-ctor-homing /guard:cf /MT -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-shadow -Wc++11-narrowing -Wundef -Wunused-lambda-capture /std:c++17 -Wno-trigraphs /Zc:alignedNew- /TP /GR- -I../../buildtools/third_party/libc++/trunk/include /Fd"obj/libwebrtc/libwebrtc_cc.pdb"
In file included from ../../libwebrtc/src/rtc_frame_cryptor_impl.cc:1:
../../libwebrtc/src/rtc_frame_cryptor_impl.h(22,17): error: no member named 'failure_tolerance' in 'webrtc::KeyProviderOptions'
  rtc_options.failure_tolerance = options->failure_tolerance;
  ~~~~~~~~~~~ ^
../../libwebrtc/src/rtc_frame_cryptor_impl.h(29,19): error: no member named 'SetSharedKey' in 'webrtc::DefaultKeyProviderImpl'
  return impl_->SetSharedKey(index, key.std_vector());
         ~~~~~~~^
../../libwebrtc/src/rtc_frame_cryptor_impl.h(33,19): error: no member named 'RatchetSharedKey' in 'webrtc::DefaultKeyProviderImpl'
  return impl_->RatchetSharedKey(key_index);
         ~~~~~~~^
../../libwebrtc/src/rtc_frame_cryptor_impl.h(37,19): error: no member named 'ExportSharedKey' in 'webrtc::DefaultKeyProviderImpl'
  return impl_->ExportSharedKey(key_index);
         ~~~~~~~^
../../libwebrtc/src/rtc_frame_cryptor_impl.h(58,12): error: no member named 'SetSifTrailer' in 'webrtc::DefaultKeyProviderImpl'
  impl_->SetSifTrailer(trailer.std_vector());
  ~~~~~~~^
../../libwebrtc/src/rtc_frame_cryptor_impl.cc(59,11): error: no matching constructor for initialization of 'webrtc::FrameCryptorTransformer'
    new webrtc::FrameCryptorTransformer(factoryImpl->signaling_thread(),
        ^                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../..\api/crypto/frame_crypto_transformer.h(247,12): note: candidate constructor not viable: requires 4 arguments, but 5 were provided
explicit FrameCryptorTransformer(const std::string participant_id,
         ^
../..\api/crypto/frame_crypto_transformer.h(234,18): note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class RTC_EXPORT FrameCryptorTransformer
               ^
../../libwebrtc/src/rtc_frame_cryptor_impl.cc(63,22): error: no member named 'RegisterFrameCryptorTransformerObserver' in 'webrtc::FrameCryptorTransformer'
e2ee_transformer_->RegisterFrameCryptorTransformerObserver(observer_);
~~~~~~~~~~~~~~~~~~~^
../../libwebrtc/src/rtc_frame_cryptor_impl.cc(89,11): error: no matching constructor for initialization of 'webrtc::FrameCryptorTransformer'
    new webrtc::FrameCryptorTransformer(factoryImpl->signaling_thread(),
        ^                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../..\api/crypto/frame_crypto_transformer.h(247,12): note: candidate constructor not viable: requires 4 arguments, but 5 were provided
explicit FrameCryptorTransformer(const std::string participant_id,
         ^
../..\api/crypto/frame_crypto_transformer.h(234,18): note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class RTC_EXPORT FrameCryptorTransformer
               ^
../../libwebrtc/src/rtc_frame_cryptor_impl.cc(93,22): error: no member named 'RegisterFrameCryptorTransformerObserver' in 'webrtc::FrameCryptorTransformer'
e2ee_transformer_->RegisterFrameCryptorTransformerObserver(observer_);
~~~~~~~~~~~~~~~~~~~^
../../libwebrtc/src/rtc_frame_cryptor_impl.cc(116,22): error: no member named 'UnRegisterFrameCryptorTransformerObserver' in 'webrtc::FrameCryptorTransformer'
e2ee_transformer_->UnRegisterFrameCryptorTransformerObserver();
~~~~~~~~~~~~~~~~~~~^
In file included from ../../libwebrtc/src/rtc_frame_cryptor_impl.cc:1:
In file included from ../../libwebrtc/src/rtc_frame_cryptor_impl.h:5:
In file included from ../../libwebrtc/src/rtc_rtp_receiver_impl.h:4:
In file included from ../..\api/rtp_receiver_interface.h:20:
In file included from ../..\api/crypto/frame_decryptor_interface.h:16:
In file included from ../..\api/array_view.h:19:
In file included from ../..\rtc_base/checks.h:59:
../..\api/scoped_refptr.h(103,13): error: no member named 'Release' in 'libwebrtc::RTCFrameCryptorObserverAdapter'
    ptr_->Release();
    ~~~~  ^
../../libwebrtc/src/rtc_frame_cryptor_impl.cc(39,22): note: in instantiation of member function 'rtc::scoped_refptr<libwebrtc::RTCFrameCryptorObserverAdapter>::~scoped_refptr' requested here
RTCFrameCryptorImpl::RTCFrameCryptorImpl(
                   ^
11 errors generated.
[3602/4058] CXX obj/libwebrtc/libwebrtc/rtc_peerconnection_impl.obj
FAILED: obj/libwebrtc/libwebrtc/rtc_peerconnection_impl.obj
..\..\third_party\llvm-build\Release+Asserts\bin\clang-cl.exe /c ../../libwebrtc/src/rtc_peerconnection_impl.cc /Foobj/libwebrtc/libwebrtc/rtc_peerconnection_impl.obj /nologo /showIncludes:user "-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include" "-imsvcC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\ucrt" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\shared" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\um" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\cppwinrt" -DUSE_LIBYUV -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DLIB_WEBRTC_API_EXPORTS -DWEBRTC_WIN -DUSE_AURA=1 -D_HAS_NODISCARD -D_CRT_NONSTDC_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS "-DCR_CLANG_REVISION=\"llvmorg-15-init-11722-g3f3a235a-2\"" -D_LIBCPP_ABI_NAMESPACE=Cr -D_LIBCPP_ABI_VERSION=2 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_NODISCARD -D_LIBCPP_NO_AUTO_LINK -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_FE -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBRTC_ENABLE_PROTOBUF=1 -DRTC_ENABLE_VP9 -DRTC_DAV1D_IN_INTERNAL_DECODER_FACTORY -DWEBRTC_HAVE_SCTP -DWEBRTC_USE_H264 -DWEBRTC_ENABLE_AVX2 -DRTC_ENABLE_WIN_WGC -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DABSL_ALLOCATOR_NOTHROW=1 -DLIB_WEBRTC_API_DLL -DHAVE_WEBRTC_VIDEO -I../../libwebrtc -I../../libwebrtc/include -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/abseil-cpp -I../../third_party/libyuv/include -I../../third_party/boringssl/src/include -Wno-microsoft-extra-qualification -Wno-reorder /W4 -Wimplicit-fallthrough -Wunreachable-code-aggressive -Wthread-safety /WX -Wno-missing-field-initializers -Wno-unused-parameter -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-nonportable-include-path -Wno-null-pointer-subtraction -Wenum-compare-conditional -Wno-psabi -Wno-ignored-pragma-optimize -Wno-unqualified-std-cast-call -Xclang -no-opaque-pointers -Wmax-tokens -Wshadow -fno-delete-null-pointer-checks -fno-ident -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 /clang:-ffp-contract=off -fcomplete-member-pointers /Gy /FS /bigobj /utf-8 /Zc:twoPhase -ffile-reproducible /Zc:sizedDealloc- /D__WRL_ENABLE_FUNCTION_STATICS__ -fmsc-version=1916 -m64 -msse3 /Brepro -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -ftrivial-auto-var-init=pattern /O1 /Ob2 /Oy- /Zc:inline /Gw /Oi /Z7 -gcodeview-ghash -Xclang -fuse-ctor-homing /guard:cf /MT -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-shadow -Wc++11-narrowing -Wundef -Wunused-lambda-capture /std:c++17 -Wno-trigraphs /Zc:alignedNew- /TP /GR- -I../../buildtools/third_party/libc++/trunk/include /Fd"obj/libwebrtc/libwebrtc_cc.pdb"
../../libwebrtc/src/rtc_peerconnection_impl.cc(920,18): error: no member named 'timestamp' in 'webrtc::RTCStats'
return stats_->timestamp().us();
       ~~~~~~~~^
1 error generated.
[3605/4058] CXX obj/libwebrtc/libwebrtc/rtc_peerconnection_factory_impl.obj
FAILED: obj/libwebrtc/libwebrtc/rtc_peerconnection_factory_impl.obj
..\..\third_party\llvm-build\Release+Asserts\bin\clang-cl.exe /c ../../libwebrtc/src/rtc_peerconnection_factory_impl.cc /Foobj/libwebrtc/libwebrtc/rtc_peerconnection_factory_impl.obj /nologo /showIncludes:user "-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include" "-imsvcC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\ucrt" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\shared" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\um" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\cppwinrt" -DUSE_LIBYUV -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DLIB_WEBRTC_API_EXPORTS -DWEBRTC_WIN -DUSE_AURA=1 -D_HAS_NODISCARD -D_CRT_NONSTDC_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS "-DCR_CLANG_REVISION=\"llvmorg-15-init-11722-g3f3a235a-2\"" -D_LIBCPP_ABI_NAMESPACE=Cr -D_LIBCPP_ABI_VERSION=2 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_NODISCARD -D_LIBCPP_NO_AUTO_LINK -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_FE -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBRTC_ENABLE_PROTOBUF=1 -DRTC_ENABLE_VP9 -DRTC_DAV1D_IN_INTERNAL_DECODER_FACTORY -DWEBRTC_HAVE_SCTP -DWEBRTC_USE_H264 -DWEBRTC_ENABLE_AVX2 -DRTC_ENABLE_WIN_WGC -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DABSL_ALLOCATOR_NOTHROW=1 -DLIB_WEBRTC_API_DLL -DHAVE_WEBRTC_VIDEO -I../../libwebrtc -I../../libwebrtc/include -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/abseil-cpp -I../../third_party/libyuv/include -I../../third_party/boringssl/src/include -Wno-microsoft-extra-qualification -Wno-reorder /W4 -Wimplicit-fallthrough -Wunreachable-code-aggressive -Wthread-safety /WX -Wno-missing-field-initializers -Wno-unused-parameter -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-nonportable-include-path -Wno-null-pointer-subtraction -Wenum-compare-conditional -Wno-psabi -Wno-ignored-pragma-optimize -Wno-unqualified-std-cast-call -Xclang -no-opaque-pointers -Wmax-tokens -Wshadow -fno-delete-null-pointer-checks -fno-ident -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 /clang:-ffp-contract=off -fcomplete-member-pointers /Gy /FS /bigobj /utf-8 /Zc:twoPhase -ffile-reproducible /Zc:sizedDealloc- /D__WRL_ENABLE_FUNCTION_STATICS__ -fmsc-version=1916 -m64 -msse3 /Brepro -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -ffile-compilation-dir=. -no-canonical-prefixes -ftrivial-auto-var-init=pattern /O1 /Ob2 /Oy- /Zc:inline /Gw /Oi /Z7 -gcodeview-ghash -Xclang -fuse-ctor-homing /guard:cf /MT -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-shadow -Wc++11-narrowing -Wundef -Wunused-lambda-capture /std:c++17 -Wno-trigraphs /Zc:alignedNew- /TP /GR- -I../../buildtools/third_party/libc++/trunk/include /Fd"obj/libwebrtc/libwebrtc_cc.pdb"
../../libwebrtc/src/rtc_peerconnection_factory_impl.cc(63,21): error: no member named 'BlockingCall' in 'rtc::Thread'
  worker_thread_->BlockingCall([=] { CreateAudioDeviceModule_w(); });
  ~~~~~~~~~~~~~~~~^
../../libwebrtc/src/rtc_peerconnection_factory_impl.cc(89,19): error: no member named 'BlockingCall' in 'rtc::Thread'
worker_thread_->BlockingCall([&] {
~~~~~~~~~~~~~~~~^
../../libwebrtc/src/rtc_peerconnection_factory_impl.cc(95,21): error: no member named 'BlockingCall' in 'rtc::Thread'
  worker_thread_->BlockingCall([this] { DestroyAudioDeviceModule_w(); });
  ~~~~~~~~~~~~~~~~^
../../libwebrtc/src/rtc_peerconnection_factory_impl.cc(137,21): error: no member named 'BlockingCall' in 'rtc::Thread'
  worker_thread_->BlockingCall([this] { CreateAudioDeviceModule_w(); });
  ~~~~~~~~~~~~~~~~^
../../libwebrtc/src/rtc_peerconnection_factory_impl.cc(183,63): error: no member named 'BlockingCall' in 'rtc::Thread'
  scoped_refptr<RTCVideoSource> source = signaling_thread_->BlockingCall(
                                         ~~~~~~~~~~~~~~~~~~~^
../../libwebrtc/src/rtc_peerconnection_factory_impl.cc(267,11): error: no viable conversion from 'rtc::scoped_refptr<webrtc::VideoTrackSourceInterface>' to 'const std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char>>')
        source_adapter->rtc_source_track(), track_id.std_string());
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../buildtools/third_party/libc++/trunk/include\string(779,5): note: candidate constructor not viable: no known conversion from 'rtc::scoped_refptr<webrtc::VideoTrackSourceInterface>' to 'const std::string &' for 1st argument
  basic_string(const basic_string& __str);
  ^
../../buildtools/third_party/libc++/trunk/include\string(784,5): note: candidate constructor not viable: no known conversion from 'rtc::scoped_refptr<webrtc::VideoTrackSourceInterface>' to 'std::string &&' for 1st argument
  basic_string(basic_string&& __str)
  ^
../../buildtools/third_party/libc++/trunk/include\string(797,5): note: candidate constructor template not viable: no known conversion from 'rtc::scoped_refptr<webrtc::VideoTrackSourceInterface>' to 'const char *' for 1st argument
  basic_string(const _CharT* __s) : __r_(__default_init_tag(), __default_init_tag()) {
  ^
../../buildtools/third_party/libc++/trunk/include\string(850,5): note: candidate constructor not viable: no known conversion from 'rtc::scoped_refptr<webrtc::VideoTrackSourceInterface>' to 'initializer_list<char>' for 1st argument
  basic_string(initializer_list<_CharT> __il);
  ^
../../buildtools/third_party/libc++/trunk/include\string(772,40): note: explicit constructor is not a candidate
  _LIBCPP_INLINE_VISIBILITY explicit basic_string(const allocator_type& __a)
                                     ^
../../buildtools/third_party/libc++/trunk/include\string(836,18): note: explicit constructor is not a candidate
      explicit basic_string(const _Tp& __t);
               ^
../..\api/peer_connection_interface.h(1549,26): note: passing argument to parameter 'label' here
    const std::string& label,
                       ^
../../libwebrtc/src/rtc_peerconnection_factory_impl.cc(304,28): error: no member named 'BlockingCall' in 'rtc::Thread'
      signaling_thread_->BlockingCall([this, media_type] {
      ~~~~~~~~~~~~~~~~~~~^
../../libwebrtc/src/rtc_peerconnection_factory_impl.cc(332,28): error: no member named 'BlockingCall' in 'rtc::Thread'
      signaling_thread_->BlockingCall([this, media_type] {
      ~~~~~~~~~~~~~~~~~~~^
8 errors generated.
ninja: build stopped: subcommand failed.
@cloudwebrtc
Copy link
Member

ah, maybe you can try changing m104_release to m114_release. I need to update the README.

@maurosimoes78
Copy link
Author

Build successfully done following the build procedure: https://github.com/webrtc-sdk/webrtc-build/blob/main/docs/windows.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants