-
Notifications
You must be signed in to change notification settings - Fork 612
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
link bug #748
Comments
@mpromonet help me |
dltc@dltc-GeekPro-17IRR: |
Hi @CalebShiffe Please look to readme file. Best Regards |
Thank you, you are truly a sage. I discovered that this was a conflict between two compilers, and then I modified: bash gn gen out/Release-gcc --args='target_os="linux" target_cpu="x64" is_debug=false is_component_build=false use_sysroot=false is_clang=false use_lld=false treat_warnings_as_errors=false rtc_include_tests=false rtc_build_examples=false use_custom_libcxx=false use_rtti=true' After compilation, I directly copied out/Release-gcc to out/Release. Then, when compiling webrtc-streamer again, the following issues were reported:sudo cmake .. |
thank you |
[ 96%] Linking CXX executable webrtc-streamer
ld.lld: error: undefined symbol: webrtc::H265::ParseNaluType(unsigned char)
ld.lld: error: undefined symbol: webrtc::H265SpsParser::ParseSps(rtc::ArrayView<unsigned char const, -4711l>)
ld.lld: error: undefined symbol: cricket::StunServer::StunServer(rtc::AsyncUDPSocket*)
ld.lld: error: undefined symbol: cricket::TurnServer::TurnServer(webrtc::TaskQueueBase*)
ld.lld: error: undefined symbol: cricket::TurnServer::AddInternalServerSocket(rtc::Socket*, cricket::ProtocolType, std::unique_ptr<rtc::SSLAdapterFactory, std::default_deletertc::SSLAdapterFactory>)
ld.lld: error: undefined symbol: cricket::TurnServer::AddInternalSocket(rtc::AsyncPacketSocket*, cricket::ProtocolType)
ld.lld: error: undefined symbol: cricket::TurnServer::SetExternalSocketFactory(rtc::PacketSocketFactory*, rtc::SocketAddress const&)
|
my system is ubbuntu 22.04
i download webrtc
fetch --no-history --nohooks webrtc
gn gen out/Release
ninja -C out/Release
/workspace/webrtc-streamer/build$ sudo cmake ..
/workspace/webrtc-streamer/build$ sudo make
[ 98%] Building CXX object CMakeFiles/webrtc-streamer.dir/src/main.cpp.o
In file included from /home/dltc/workspace/webrtc-streamer/../webrtc/src/rtc_base/ssl_stream_adapter.h:29,
from /home/dltc/workspace/webrtc-streamer/../webrtc/src/rtc_base/ssl_adapter.h:21,
from /home/dltc/workspace/webrtc-streamer/src/main.cpp:15:
/home/dltc/workspace/webrtc-streamer/../webrtc/src/rtc_base/stream.h: In destructor ‘virtual rtc::StreamInterface::~StreamInterface()’:
/home/dltc/workspace/webrtc-streamer/../webrtc/src/rtc_base/stream.h:57:30: warning: ‘rtc::StreamInterface::SignalEvent’ is deprecated: Use SetEventCallback instead [-Wdeprecated-declarations]
57 | virtual ~StreamInterface() {}
| ^
/home/dltc/workspace/webrtc-streamer/../webrtc/src/rtc_base/stream.h:105:48: note: declared here
105 | sigslot::signal3<StreamInterface*, int, int> SignalEvent
| ^~~~~~~~~~~
/home/dltc/workspace/webrtc-streamer/../webrtc/src/rtc_base/stream.h:57:30: warning: ‘rtc::StreamInterface::SignalEvent’ is deprecated: Use SetEventCallback instead [-Wdeprecated-declarations]
57 | virtual ~StreamInterface() {}
| ^
/home/dltc/workspace/webrtc-streamer/../webrtc/src/rtc_base/stream.h:105:48: note: declared here
105 | sigslot::signal3<StreamInterface*, int, int> SignalEvent
| ^~~~~~~~~~~
/home/dltc/workspace/webrtc-streamer/../webrtc/src/rtc_base/stream.h: In member function ‘void rtc::StreamInterface::FireEvent(int, int)’:
/home/dltc/workspace/webrtc-streamer/../webrtc/src/rtc_base/stream.h:138:5: warning: ‘rtc::StreamInterface::SignalEvent’ is deprecated: Use SetEventCallback instead [-Wdeprecated-declarations]
138 | SignalEvent(this, stream_events, err);
| ^~~~~~~~~~~
/home/dltc/workspace/webrtc-streamer/../webrtc/src/rtc_base/stream.h:105:48: note: declared here
105 | sigslot::signal3<StreamInterface*, int, int> SignalEvent
| ^~~~~~~~~~~
/home/dltc/workspace/webrtc-streamer/../webrtc/src/rtc_base/stream.h:138:5: warning: ‘rtc::StreamInterface::SignalEvent’ is deprecated: Use SetEventCallback instead [-Wdeprecated-declarations]
138 | SignalEvent(this, stream_events, err);
| ^~~~~~~~~~~
/home/dltc/workspace/webrtc-streamer/../webrtc/src/rtc_base/stream.h:105:48: note: declared here
105 | sigslot::signal3<StreamInterface*, int, int> SignalEvent
| ^~~~~~~~~~~
[ 98%] Building CXX object CMakeFiles/webrtc-streamer.dir/src/rtpvideocapturer.cpp.o
[ 99%] Building CXX object CMakeFiles/webrtc-streamer.dir/src/rtspaudiocapturer.cpp.o
[ 99%] Building CXX object CMakeFiles/webrtc-streamer.dir/src/rtspvideocapturer.cpp.o
[100%] Linking CXX executable webrtc-streamer
/usr/bin/ld: /home/dltc/workspace/webrtc/src/out/Release/obj/rtc_base/rtc_json/json.o: unknown type [0x40000014] section
.crel.text' /usr/bin/ld: /home/dltc/workspace/webrtc/src/out/Release/obj/third_party/jsoncpp/jsoncpp/json_reader.o: unknown type [0x40000014] section
.crel.text'/usr/bin/ld: /home/dltc/workspace/webrtc/src/out/Release/obj/third_party/jsoncpp/jsoncpp/json_value.o: unknown type [0x40000014] section
.crel.text' /usr/bin/ld: /home/dltc/workspace/webrtc/src/out/Release/obj/third_party/jsoncpp/jsoncpp/json_writer.o: unknown type [0x40000014] section
.crel.text'/usr/bin/ld: /home/dltc/workspace/webrtc/src/out/Release/obj/p2p/p2p_server_utils/stun_server.o: unknown type [0x40000014] section
.crel.text' /usr/bin/ld: /home/dltc/workspace/webrtc/src/out/Release/obj/p2p/p2p_server_utils/turn_server.o: unknown type [0x40000014] section
.crel.text'/usr/bin/ld: ../../webrtc/src/out/Release/obj/api/video_codecs/libbuiltin_video_encoder_factory.a: error adding symbols: archive has no index; run ranlib to add one
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/webrtc-streamer.dir/build.make:258: webrtc-streamer] Error 1
make[1]: *** [CMakeFiles/Makefile2:124: CMakeFiles/webrtc-streamer.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
The text was updated successfully, but these errors were encountered: