webRTC 우분투 설치관련 문제
글쓴이: 초쎈님 / 작성시간: 목, 2018/06/28 - 2:29오후
https://github.com/mpromonet/webrtc-streamer
위에 github에서 webrtc-streamer를 사용하기 위해 webRTC를 우분투에 build하고 있습니다.
mkdir ../webrtc pushd ../webrtc fetch webrtc gn gen out/Release --args='is_debug=false use_custom_libcxx=false rtc_use_h264=true ffmpeg_branding="Chrome" rtc_include_tests=false use_ozone=true rtc_include_pulse_audio=false' ninja -C out/Release popd
fetch webrtc
후 gn
까지는 문제없이 진행했는데 ninja -C out/Release
에서 문제가 발생하더군요 ㅜ
[4/2925] CXX obj/api/audio_options_api/audio_options.o FAILED: obj/api/audio_options_api/audio_options.o ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/api/audio_options_api/audio_options.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DCR_CLANG_REVISION=\"334100-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCR_SYSROOT_HASH=4e7db513b0faeea8fb410f70c9909e8736f5c0ab -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DHAVE_SCTP -DUSE_BUILTIN_SW_CODECS -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -fcomplete-member-pointers -m64 -march=x86-64 -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-address-of-packed-member -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -Wno-ignored-pragma-optimize -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -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 -isystem ../../third_party/abseil-cpp -std=gnu++11 -fno-exceptions -fno-rtti --sysroot=../../build/linux/debian_sid_amd64-sysroot -fvisibility-inlines-hidden -Wnon-virtual-dtor -Woverloaded-virtual -c ../../api/audio_options.cc -o obj/api/audio_options_api/audio_options.o In file included from ../../api/audio_options.cc:11: In file included from ../../api/audio_options.h:16: In file included from ../../third_party/abseil-cpp/absl/types/optional.h:39: In file included from ../../third_party/abseil-cpp/absl/utility/utility.h:51: In file included from ../../third_party/abseil-cpp/absl/meta/type_traits.h:39: ../../build/linux/debian_sid_amd64-sysroot/usr/lib/gcc/x86_64-linux-gnu/6/../../../../include/c++/6/functional:1453:30: error: member pointer has incomplete base type 'std::_Undefined_class' void (_Undefined_class::*_M_member_pointer)(); ^ ../../build/linux/debian_sid_amd64-sysroot/usr/lib/gcc/x86_64-linux-gnu/6/../../../../include/c++/6/functional:1446:9: note: forward declaration of 'std::_Undefined_class' class _Undefined_class; ^ 1 error generated.
대략 에러를 보면 std::를 안붙여서 에러가 나는거 같은데 한 두개가 아니라서 손으로 고칠 수 있는 양도 아니고
제 생각엔 다른 g++컴파일러를 사용해야되는 거 같은데 c++에 대해서는 무지 하다보니 이렇게 질문을 올립니다..
Forums:
gn gen out/Release --args='is
gn gen out/Release --args='is_debug=false use_custom_libcxx=false rtc_use_h264=true ffmpeg_branding="Chrome" rtc_include_tests=false rtc_include_pulse_audio=false use_sysroot=false is_clang=false treat_warnings_as_errors=false'
댓글 달기