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

version 4.2.x scripts/build_android.py error : use of undeclared identifier 'LS_NONE' #641

Open kissmymouth opened 1 year ago

kissmymouth commented 1 year ago

error message is: wmchen@ubuntu:~/open_webrtc_toolkit/android/src$ python scripts/build_android.py

args: Namespace(debug=False, output_path='/home/wmchen/open_webrtc_toolkit/android/src/out', target_arch='arm,arm64,x86')

generating args for arm release Done. Made 2618 targets from 251 files in 1592ms

building libjingle_peerconnection_so for arm release ninja: Entering directory `/home/wmchen/open_webrtc_toolkit/android/src/out/releasearm' [1724/2658] CXX obj/third_party/webrtc/rtc_base/logging/logging.o FAILED: obj/third_party/webrtc/rtc_base/logging/logging.o ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/third_party/webrtc/rtc_base/logging/logging.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DSAFE_BROWSING_DB_REMOTE -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_GNU_SOURCE -DANDROID -DHAVE_SYS_UIO_H -DANDROID_NDK_VERSION_ROLL=r16_1 -DCR_CLANG_REVISION=\"338452-1\" -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DGNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DHAVE_SCTP -DUSE_BUILTIN_SW_CODECS -DHAVE_WEBRTC_VIDEO -DHAVE_WEBRTC_VOICE -DLOGGING_INSIDE_WEBRTC -DWEBRTC_ARCH_ARM -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_HAS_NEON -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DGTEST_RELATIVE_PATH -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_ANDROID -DABSL_ALLOCATOR_NOTHROW=1 -I../.. -Igen -I../../third_party/webrtc_overrides -I../../third_party/webrtc -I../../third_party/abseil-cpp -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -DDATE= -DTIME= -DTIMESTAMP= -funwind-tables -fPIC -fcolor-diagnostics -fmerge-all-constants -no-canonical-prefixes -ffunction-sections -fno-short-enums --target=arm-linux-androideabi -isystem../../third_party/android_ndk/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API=16 -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC=1 -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -mfpu=neon -mthumb -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -Wno-ignored-pragma-optimize -Oz -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g1 -fdebug-info-for-profiling -fvisibility=hidden -Xclang -load -Xclang ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang enforce-in-thirdparty-webkit -Xclang -plugin-arg-find-bad-constructs -Xclang check-enum-max-value -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wc++11-narrowing -Wimplicit-fallthrough -Wthread-safety -Winconsistent-missing-override -Wundef -Wunused-lambda-capture -std=c++14 -fno-exceptions -fno-rtti --sysroot=../../third_party/android_ndk/sysroot -isystem../../third_party/android_ndk/sources/cxx-stl/llvm-libc++/include -isystem../../third_party/android_ndk/sources/cxx-stl/llvm-libc++abi/include -isystem../../third_party/android_ndk/sources/android/support/include -fvisibility-inlines-hidden -Wnon-virtual-dtor -Woverloaded-virtual -c ../../third_party/webrtc/rtc_base/logging.cc -o obj/third_party/webrtc/rtc_base/logging/logging.o ../../third_party/webrtc/rtc_base/logging.cc:53:36: error: use of undeclared identifier 'LS_NONE' static LoggingSeverity g_min_sev = LS_NONE; ^ ../../third_party/webrtc/rtc_base/logging.cc:54:36: error: use of undeclared identifier 'LS_NONE' static LoggingSeverity g_dbg_sev = LS_NONE; ^ ../../third_party/webrtc/rtc_base/logging.cc:82:6: error: use of undeclared identifier 'LogSink' void LogSink::OnLogMessage(const std::string& msg, ^ ../../third_party/webrtc/rtc_base/logging.cc:92:18: error: no member named 'log_tostderr' in 'rtc::LogMessage' bool LogMessage::log_tostderr = true;


../../third_party/webrtc/rtc_base/logging.cc:98:13: error: no type named 'StreamList' in 'rtc::LogMessage'
LogMessage::StreamList LogMessage::streams_ RTC_GUARDED_BY(g_log_crit);
~~~~~~~~~~~~^
../../third_party/webrtc/rtc_base/logging.cc:98:36: error: no member named 'streams_' in 'rtc::LogMessage'
LogMessage::StreamList LogMessage::streams_ RTC_GUARDED_BY(g_log_crit);