Hi
I want to build srt for iOS-simulator.
However, the following error occurs.
What's wrong?
All other architectures have succeeded.
any ideas?
thanks!
export IOS_OPENSSL="/Users/moonbc/OpenSSL-for-iPhone/bin/iPhoneSimulator12.1-x86_64.sdk"
./configure --cmake-prefix-path=$IOS_OPENSSL --cmake-toolchain-file=scripts/iOS.cmake --ios-platform=SIMULATOR64 --ios-arch=x86_64
make
ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES)
ld: building for iOS Simulator, but linking in object file built for iOS, file 'CMakeFiles/srt-multiplex.dir/apps/srt-multiplex.cpp.o' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [srt-multiplex] Error 1
make[1]: *** [CMakeFiles/srt-multiplex.dir/all] Error 2
make: *** [all] Error 2
How do commands for building the srt-multiplex.cpp.o file and linking the app look like?
@moonbc,
Looks like the following message should give you a hint.
building for iOS Simulator, but linking in object file built for iOS
Try to google for this issue. There seem to be a lot of discussions on this topic. Let us know if that helps.
@moonbc,
Set IPHONEOS_DEPLOYMENT_TARGET lower than 12.0 when build libsrt
IPHONEOS_DEPLOYMENT_TARGET=11.0 make
I changed the OpenSSL Target version so I compiled it successfully. Thanks for your help.