Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

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

Open
kissmymouth opened this issue Dec 27, 2022 · 0 comments

Comments

@kissmymouth
Copy link

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" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D__GNU_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 -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -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_to_stderr_' in 'rtc::LogMessage'
bool LogMessage::log_to_stderr_ = 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);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant