-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Build] how to compile ios static library #23835
Comments
The static library and framework should be inside
Note: The onnxruntime static binary does not have .a extension in this case |
yes, i have got build_ios/MinSizeRel/MinSizeRel-iphoneos/static_framework/onnxruntime.framework/onnxruntime,but when i link this library in other project,it occurs errors。such as ld64.lld: error: undefined symbol: std::__1::basic_streambuf<char, std::__1::char_traits>::~basic_streambuf()
can u tell me how to solve this problem?forward ur replay |
You need to link the C++ standard library if it's missing std::basic_streambuf. Do your linker flags have |
yes i do,i have soloved this problem |
Describe the issue
./build.sh --ios
--skip_tests
--skip_submodule_sync
--parallel
--build_dir ./build_ios
--apple_sysroot iphoneos
--osx_arch arm64
--apple_deploy_target 13.0
--cmake_generator Xcode
--config=MinSizeRel
--minimal_build
--build_apple_framework
--include_ops_by_config=required_operators_ORT.config
--enable_reduced_operator_type_support
--cmake_extra_defines CMAKE_CXX_FLAGS="-stdlib=libc++"
--compile_no_warning_as_error
i use this scripts to compile ios static library, but i cant find the libonnxruntime.a for ios
Urgency
No response
Target platform
ios
Build script
./build.sh --ios
--skip_tests
--skip_submodule_sync
--parallel
--build_dir ./build_ios
--apple_sysroot iphoneos
--osx_arch arm64
--apple_deploy_target 13.0
--cmake_generator Xcode
--config=MinSizeRel
--minimal_build
--build_apple_framework
--include_ops_by_config=required_operators_ORT.config
--enable_reduced_operator_type_support
--cmake_extra_defines CMAKE_CXX_FLAGS="-stdlib=libc++"
--compile_no_warning_as_error
Error / output
i use this scripts to compile ios static library, but i cant find the libonnxruntime.a for ios
Visual Studio Version
No response
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: