Closed pintukumarpatil closed 4 years ago
The include path should the root ofwebrtc source code
.
I guss it is webrtc.include.path=/opt/webrtc/linux/src
instead of webrtc.include.path
.
BTW, the latest commit already contains all deps which hoping resolve issues like yours. Cloud your do a quick test on your environment for me?
I did pull your latest commit and try to run, but still getting below error:
FAILURE: Build failed with an exception.
Build command failed. Error while executing process /home/gwl/Android/Sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /opt/AndroidWork/mediasoup-client-android/mediasoup-client/.externalNativeBuild/cmake/debug/x86 --target mediasoupclient_so} [1/23] Building CXX object deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Consumer.cpp.o [2/23] Building CXX object deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Device.cpp.o [3/23] Building CXX object deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Handler.cpp.o [4/23] Building CXX object deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/mediasoupclient.cpp.o [5/23] Building CXX object deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/PeerConnection.cpp.o [6/23] Building CXX object deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Producer.cpp.o FAILED: /home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=i686-none-linux-android24 --gcc-toolchain=/home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DMSC_LOG_DEV=1 -DMSC_LOG_TRACE=1 -DWEBRTC_POSIX -I../../../../deps/libmediasoupclient/include -I../../../../deps/libmediasoupclient/deps/libsdptransform/include -I../../../../deps/webrtc/src -I../../../../deps/webrtc/src/third_party/abseil-cpp -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -O0 -fno-limit-debug-info -fPIC -std=gnu++11 -Wall -MD -MT deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Consumer.cpp.o -MF deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Consumer.cpp.o.d -o deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Consumer.cpp.o -c /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/Consumer.cpp In file included from /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/Consumer.cpp:4: In file included from ../../../../deps/libmediasoupclient/include/Consumer.hpp:5: ../../../../deps/libmediasoupclient/deps/libsdptransform/include/json.hpp:1799:1: warning: 'tuple_size' defined as a class template here but previously declared as a struct template [-Wmismatched-tags] class tuple_size<::nlohmann::detail::iteration_proxy_value
> ^ /home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__tuple:25:22: note: did you mean class here? template struct _LIBCPP_TEMPLATE_VIS tuple_size; ^ In file included from /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/Consumer.cpp:4: In file included from ../../../../deps/libmediasoupclient/include/Consumer.hpp:6: ../../../../deps/webrtc/src/api/media_stream_interface.h:25:10: fatal error: 'absl/types/optional.h' file not found include "absl/types/optional.h"
^
~~~~~~ 1 warning and 1 error generated. FAILED: /home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=i686-none-linux-android24 --gcc-toolchain=/home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DMSC_LOG_DEV=1 -DMSC_LOG_TRACE=1 -DWEBRTC_POSIX -I../../../../deps/libmediasoupclient/include -I../../../../deps/libmediasoupclient/deps/libsdptransform/include -I../../../../deps/webrtc/src -I../../../../deps/webrtc/src/third_party/abseil-cpp -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -O0 -fno-limit-debug-info -fPIC -std=gnu++11 -Wall -MD -MT deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Handler.cpp.o -MF deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Handler.cpp.o.d -o deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Handler.cpp.o -c /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/Handler.cpp In file included from /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/Handler.cpp:4: In file included from ../../../../deps/libmediasoupclient/include/Handler.hpp:4: In file included from ../../../../deps/libmediasoupclient/include/PeerConnection.hpp:5: ../../../../deps/libmediasoupclient/deps/libsdptransform/include/json.hpp:1799:1: warning: 'tuple_size' defined as a class template here but previously declared as a struct template [-Wmismatched-tags] class tuple_size<::nlohmann::detail::iteration_proxy_value> ^ /home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__tuple:25:22: note: did you mean class here? template struct _LIBCPP_TEMPLATE_VIS tuple_size; ^ In file included from /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/Handler.cpp:4: In file included from ../../../../deps/libmediasoupclient/include/Handler.hpp:4: In file included from ../../../../deps/libmediasoupclient/include/PeerConnection.hpp:6: In file included from ../../../../deps/webrtc/src/api/peer_connection_interface.h:76: ../../../../deps/webrtc/src/api/audio_codecs/audio_decoder_factory.h:17:10: fatal error: 'absl/types/optional.h' file not found include "absl/types/optional.h"
^
~~~~~~ 1 warning and 1 error generated. FAILED: /home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=i686-none-linux-android24 --gcc-toolchain=/home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DMSC_LOG_DEV=1 -DMSC_LOG_TRACE=1 -DWEBRTC_POSIX -I../../../../deps/libmediasoupclient/include -I../../../../deps/libmediasoupclient/deps/libsdptransform/include -I../../../../deps/webrtc/src -I../../../../deps/webrtc/src/third_party/abseil-cpp -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -O0 -fno-limit-debug-info -fPIC -std=gnu++11 -Wall -MD -MT deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/PeerConnection.cpp.o -MF deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/PeerConnection.cpp.o.d -o deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/PeerConnection.cpp.o -c /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/PeerConnection.cpp In file included from /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/PeerConnection.cpp:4: In file included from ../../../../deps/libmediasoupclient/include/PeerConnection.hpp:5: ../../../../deps/libmediasoupclient/deps/libsdptransform/include/json.hpp:1799:1: warning: 'tuple_size' defined as a class template here but previously declared as a struct template [-Wmismatched-tags] class tuple_size<::nlohmann::detail::iteration_proxy_value> ^ /home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__tuple:25:22: note: did you mean class here? template struct _LIBCPP_TEMPLATE_VIS tuple_size; ^ In file included from /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/PeerConnection.cpp:4: In file included from ../../../../deps/libmediasoupclient/include/PeerConnection.hpp:6: In file included from ../../../../deps/webrtc/src/api/peer_connection_interface.h:76: ../../../../deps/webrtc/src/api/audio_codecs/audio_decoder_factory.h:17:10: fatal error: 'absl/types/optional.h' file not found include "absl/types/optional.h"
^
~~~~~~ 1 warning and 1 error generated. FAILED: /home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=i686-none-linux-android24 --gcc-toolchain=/home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DMSC_LOG_DEV=1 -DMSC_LOG_TRACE=1 -DWEBRTC_POSIX -I../../../../deps/libmediasoupclient/include -I../../../../deps/libmediasoupclient/deps/libsdptransform/include -I../../../../deps/webrtc/src -I../../../../deps/webrtc/src/third_party/abseil-cpp -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -O0 -fno-limit-debug-info -fPIC -std=gnu++11 -Wall -MD -MT deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Producer.cpp.o -MF deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Producer.cpp.o.d -o deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Producer.cpp.o -c /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/Producer.cpp In file included from /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/Producer.cpp:4: In file included from ../../../../deps/libmediasoupclient/include/Producer.hpp:5: ../../../../deps/libmediasoupclient/deps/libsdptransform/include/json.hpp:1799:1: warning: 'tuple_size' defined as a class template here but previously declared as a struct template [-Wmismatched-tags] class tuple_size<::nlohmann::detail::iteration_proxy_value> ^ /home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__tuple:25:22: note: did you mean class here? template struct _LIBCPP_TEMPLATE_VIS tuple_size; ^ In file included from /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/Producer.cpp:4: In file included from ../../../../deps/libmediasoupclient/include/Producer.hpp:6: ../../../../deps/webrtc/src/api/media_stream_interface.h:25:10: fatal error: 'absl/types/optional.h' file not found include "absl/types/optional.h"
^
~~~~~~ 1 warning and 1 error generated. FAILED: /home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=i686-none-linux-android24 --gcc-toolchain=/home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DMSC_LOG_DEV=1 -DMSC_LOG_TRACE=1 -DWEBRTC_POSIX -I../../../../deps/libmediasoupclient/include -I../../../../deps/libmediasoupclient/deps/libsdptransform/include -I../../../../deps/webrtc/src -I../../../../deps/webrtc/src/third_party/abseil-cpp -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -O0 -fno-limit-debug-info -fPIC -std=gnu++11 -Wall -MD -MT deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Device.cpp.o -MF deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Device.cpp.o.d -o deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/Device.cpp.o -c /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/Device.cpp In file included from /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/Device.cpp:4: In file included from ../../../../deps/libmediasoupclient/include/Device.hpp:5: In file included from ../../../../deps/libmediasoupclient/include/Handler.hpp:4: In file included from ../../../../deps/libmediasoupclient/include/PeerConnection.hpp:5: ../../../../deps/libmediasoupclient/deps/libsdptransform/include/json.hpp:1799:1: warning: 'tuple_size' defined as a class template here but previously declared as a struct template [-Wmismatched-tags] class tuple_size<::nlohmann::detail::iteration_proxy_value> ^ /home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__tuple:25:22: note: did you mean class here? template struct _LIBCPP_TEMPLATE_VIS tuple_size; ^ In file included from /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/Device.cpp:4: In file included from ../../../../deps/libmediasoupclient/include/Device.hpp:5: In file included from ../../../../deps/libmediasoupclient/include/Handler.hpp:4: In file included from ../../../../deps/libmediasoupclient/include/PeerConnection.hpp:6: In file included from ../../../../deps/webrtc/src/api/peer_connection_interface.h:76: ../../../../deps/webrtc/src/api/audio_codecs/audio_decoder_factory.h:17:10: fatal error: 'absl/types/optional.h' file not found include "absl/types/optional.h"
^
~~~~~~ 1 warning and 1 error generated. FAILED: /home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=i686-none-linux-android24 --gcc-toolchain=/home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DMSC_LOG_DEV=1 -DMSC_LOG_TRACE=1 -DWEBRTC_POSIX -I../../../../deps/libmediasoupclient/include -I../../../../deps/libmediasoupclient/deps/libsdptransform/include -I../../../../deps/webrtc/src -I../../../../deps/webrtc/src/third_party/abseil-cpp -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -O0 -fno-limit-debug-info -fPIC -std=gnu++11 -Wall -MD -MT deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/mediasoupclient.cpp.o -MF deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/mediasoupclient.cpp.o.d -o deps/libmediasoupclient/CMakeFiles/mediasoupclient.dir/src/mediasoupclient.cpp.o -c /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/mediasoupclient.cpp In file included from /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/mediasoupclient.cpp:4: In file included from ../../../../deps/libmediasoupclient/include/mediasoupclient.hpp:4: In file included from ../../../../deps/libmediasoupclient/include/Device.hpp:5: In file included from ../../../../deps/libmediasoupclient/include/Handler.hpp:4: In file included from ../../../../deps/libmediasoupclient/include/PeerConnection.hpp:5: ../../../../deps/libmediasoupclient/deps/libsdptransform/include/json.hpp:1799:1: warning: 'tuple_size' defined as a class template here but previously declared as a struct template [-Wmismatched-tags] class tuple_size<::nlohmann::detail::iteration_proxy_value> ^ /home/gwl/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__tuple:25:22: note: did you mean class here? template struct _LIBCPP_TEMPLATE_VIS tuple_size; ^ In file included from /opt/AndroidWork/mediasoup-client-android/mediasoup-client/deps/libmediasoupclient/src/mediasoupclient.cpp:4: In file included from ../../../../deps/libmediasoupclient/include/mediasoupclient.hpp:4: In file included from ../../../../deps/libmediasoupclient/include/Device.hpp:5: In file included from ../../../../deps/libmediasoupclient/include/Handler.hpp:4: In file included from ../../../../deps/libmediasoupclient/include/PeerConnection.hpp:6: In file included from ../../../../deps/webrtc/src/api/peer_connection_interface.h:76: ../../../../deps/webrtc/src/api/audio_codecs/audio_decoder_factory.h:17:10: fatal error: 'absl/types/optional.h' file not found include "absl/types/optional.h"
^
~~~~~~ 1 warning and 1 error generated. ninja: build stopped: subcommand failed.
@pintukumarpatil I see. I forgot to commit abseil-cpp
, please pull again. 🤫
Yeah, Now its working..Doing good job 👍
Issue has been fixed.
Hello @haiyangwu I am facing an issue during make project, can you help me: see error
AILURE: Build failed with an exception.
I am using below path in local.properties webrtc.include.path=/opt/webrtc/linux/ webrtc.binary.path=/opt/webrtc/linux/src/out/android-webrtc-m74 webrtc.jar.path=/opt/webrtc/linux/src/out/android-webrtc-m74/lib.java/sdk/android