owt-client-native
owt-client-native copied to clipboard
own build owt.framework link failed
Hello guys,
I download source code success, and build owt.framework success. But link in my project , it come to a link error , seem like c++ complie error with "std::_ _ 1::" ,I don't know about c++. and looking forward for some help, thank you all.

Undefined symbols for architecture arm64: "owt::base::CustomizedCapturer::Create(std::__1::shared_ptr<owt::base::LocalCustomizedStreamParameters>, owt::base::VideoEncoderInterface*)", referenced from: owt::base::LocalEncodedCaptureTrackSource::Create(std::__1::shared_ptr<owt::base::LocalCustomizedStreamParameters>, owt::base::VideoEncoderInterface*) in OWT(stream.o) "owt::base::CustomizedCapturer::Create(std::__1::shared_ptr<owt::base::LocalCustomizedStreamParameters>, std::__1::unique_ptr<owt::base::VideoFrameGeneratorInterface, std::__1::default_delete<owt::base::VideoFrameGeneratorInterface> >)", referenced from: owt::base::LocalRawCaptureTrackSource::Create(std::__1::shared_ptr<owt::base::LocalCustomizedStreamParameters>, std::__1::unique_ptr<owt::base::VideoFrameGeneratorInterface, std::__1::default_delete<owt::base::VideoFrameGeneratorInterface> >) in OWT(stream.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Here is part of gclient sync describe.
` ... ... ...... [0:11:04] Still working on: [0:11:04] src/third_party
[0:11:14] Still working on: [0:11:14] src/third_party
[0:11:24] Still working on: [0:11:24] src/third_party
[0:11:34] Still working on: [0:11:34] src/third_party
[0:11:44] Still working on:
[0:11:44] src/third_party
Syncing projects: 100% (37/37), done.
Running hooks: 43% (10/23) mac_toolchain
________ running 'vpython src/build/mac_toolchain.py' in '/Users/ashine/Project/iOS/OWT/src'
Skipping Mac toolchain installation for mac
Running hooks: 52% (12/23) clang
________ running 'vpython src/tools/clang/scripts/update.py' in '/Users/ashine/Project/iOS/OWT/src'
Downloading https://commondatastorage.googleapis.com/chromium-browser-clang/Mac/clang-n346557-4e0d9925-1.tgz .......... Done.
Running hooks: 65% (15/23) clang_format_mac
________ running 'download_from_google_storage --no_resume --platform=darwin --no_auth --bucket chromium-clang-format -s src/buildtools/mac/clang-format.sha1' in '/Users/ashine/Project/iOS/OWT/src'
NOTICE: You have PROXY values set in your environment, but gsutilin depot_tools does not (yet) obey them.
Also, --no_auth prevents the normal BOTO_CONFIG environmentvariable from being used.
To use a proxy in this situation, please supply those settingsin a .boto file pointed to by the NO_AUTH_BOTO_CONFIG environmentvariable.
0> Downloading src/buildtools/mac/clang-format@62bde1baa7196ad9df969fc1f06b66360b1a927b...
Downloading 1 files took 27.512336 second(s)
Hook 'download_from_google_storage --no_resume --platform=darwin --no_auth --bucket chromium-clang-format -s src/buildtools/mac/clang-format.sha1' took 27.58 secs
Running hooks: 95% (22/23)
________ running 'download_from_google_storage --directory --recursive --num_threads=10 --no_auth --quiet --bucket chromium-webrtc-resources src/third_party/webrtc/resources' in '/Users/ashine/Project/iOS/OWT/src'
NOTICE: You have PROXY values set in your environment, but gsutilin depot_tools does not (yet) obey them.
Also, --no_auth prevents the normal BOTO_CONFIG environmentvariable from being used.
To use a proxy in this situation, please supply those settingsin a .boto file pointed to by the NO_AUTH_BOTO_CONFIG environmentvariable.
Hook 'download_from_google_storage --directory --recursive --num_threads=10 --no_auth --quiet --bucket chromium-webrtc-resources src/third_party/webrtc/resources' took 324.65 secs
Running hooks: 100% (23/23)
________ running 'vpython src/scripts/prepare_dev.py' in '/Users/ashine/Project/iOS/OWT/src'
Applying: Use OpenSSL for usrsctp
Applying: Use OpenSSL for libsrtp
Applying: Remove webrtc_overrides
Applying: Fixed compile issue and disable thin archive for Linux
Applying: Fix examples path error
Applying: Export WebRTC symbols on iOS.
Applying: Apply libjpeg_turbo fix for CVE-2018-20330 & CVE-2018-19664
Applying: Remove unused gni for av1 build
Applying: Fix missing ffmpeg configure item for msvc build
Running hooks: 100% (23/23), done.
`
so i can sure download success.
Hi,
Custom video input is not supported on iOS. Not sure why Xcode reported this error because it should not be called by any Objective-C code.
here is my build operation log in terminal with
Ashine% python3 scripts/build.py --scheme release --arch arm64 --skip_tests
Ashine% python3 scripts/build.py --scheme release --arch arm64 --skip_tests Done. Made 1612 targets from 248 files in 2768ms ninja: Entering directoryout/Release-device-arm64'
[2837/2837] LIBTOOL-STATIC obj/talk/owt/libowt_sdk_base.a
ninja: Entering directory out/Release-device-arm64' [7/7] LIBTOOL-STATIC obj/talk/owt/libowt_sdk_p2p.a ninja: Entering directory out/Release-device-arm64'
[8/8] LIBTOOL-STATIC obj/talk/owt/libowt_sdk_conf.a
ninja: Entering directory out/Release-device-arm64' [36/36] LIBTOOL-STATIC obj/talk/owt/libowt_sdk_objc.a ninja: Entering directory out/Release-device-arm64'
[1/1] LIBTOOL-STATIC obj/talk/owt/libowt_deps.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (audio_receive_stream.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(audio_receive_stream.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(audio_receive_stream.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (audio_send_stream.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(audio_send_stream.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(audio_send_stream.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (audio_state.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(audio_state.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(audio_state.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (auto_correlation.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(auto_correlation.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(auto_correlation.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (base64.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(base64.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(base64.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (common.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(common.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(common.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (convert.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(convert.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(convert.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (cross_correlation.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(cross_correlation.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(cross_correlation.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (decoder_database.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(decoder_database.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(decoder_database.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (dtls_transport.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(dtls_transport.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(dtls_transport.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (encoded_frame.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(encoded_frame.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(encoded_frame.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (err.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(err.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(err.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (escaping.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(escaping.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(escaping.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (helpers.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(helpers.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(helpers.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (histogram.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(histogram.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(histogram.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (int128.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(int128.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(int128.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (jsep_ice_candidate.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(jsep_ice_candidate.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(jsep_ice_candidate.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (logging.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(logging.o) and: out/Release-device-arm64/obj/talk/owt/libowt_sdk_base.a(logging.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (moving_average.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(moving_average.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(moving_average.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (packet_buffer.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(packet_buffer.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(packet_buffer.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (rtp_sender.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(rtp_sender.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(rtp_sender.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (sctp_transport.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(sctp_transport.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(sctp_transport.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (socket.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(socket.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(socket.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (splitting_filter.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(splitting_filter.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(splitting_filter.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (stream.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(stream.o) and: out/Release-device-arm64/obj/talk/owt/libowt_sdk_base.a(stream.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (sysinfo.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_sdk_base.a(sysinfo.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(sysinfo.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (thread.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(thread.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(thread.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (video_common.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(video_common.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(video_common.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (video_frame_buffer.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(video_frame_buffer.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(video_frame_buffer.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (video_receive_stream.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(video_receive_stream.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(video_receive_stream.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (video_send_stream.o) in output file used for input files: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(video_send_stream.o) and: out/Release-device-arm64/obj/talk/owt/libowt_deps.a(video_send_stream.o) due to use of basename, truncation and blank padding
Done.
`
I notice issues#317 report the same question. https://github.com/open-webrtc-toolkit/owt-client-native/pull/317
Sounds like the same question raised in issue 317. You could firstly pick that PR to your tree, so it wouldn't block your work.
Sounds like the same question raised in issue 317. You could firstly pick that PR to your tree, so it wouldn't block your work.
Fine , hope it fixed soon..
Finally , the #317 PR fix this issues. it' mentioned error is 'include customizedvideosource in iOS build version.'
you try add system library ,libc++.tbd