https://github.com/microsoft/onnxruntime/archive/refs/tags/v1.24.1.zip
macos_x64平台的程序
export HTTP_PROXY=http://127.0.0.1:6789
export HTTPS_PROXY=http://127.0.0.1:6789
rm -rf build/macos_x64
./build.sh \
--osx_arch x86_64 \
--config Release \
--skip_tests \
--skip_submodule_sync \
--build_shared_lib \
--build_dir build/macos_x64 \
--compile_no_warning_as_error \
--parallel 8 \
--cmake_extra_defines FETCHCONTENT_TRY_FIND_PACKAGE_MODE=NEVER
ios
rm -rf build/ios
export HTTP_PROXY=http://127.0.0.1:6789
export HTTPS_PROXY=http://127.0.0.1:6789
ONNX Runtime 1.24.1 iOS 终极完整命令
./build.sh \
--ios \
--cmake_generator Xcode \
--apple_sysroot $(xcrun --sdk iphoneos --show-sdk-path) \
--apple_deploy_target 13.0 \
--config Release \
--build_shared_lib \
--skip_tests \
--skip_submodule_sync \
--build_dir build/ios \
--cmake_extra_defines FETCHCONTENT_TRY_FIND_PACKAGE_MODE=NEVER \
--parallel 8 \
--disable_contrib_ops \
--disable_ml_ops \
--compile_no_warning_as_error
android
./build.sh \
--android \
--android_abi arm64-v8a \
--android_api 21 \
--android_sdk_path /Users/chenhuan/Library/Android/sdk \
--android_ndk_path /Users/chenhuan/Library/Android/sdk/ndk/28.2.13676358 \
--config Release \
--skip_tests \
--skip_submodule_sync \
--build_shared_lib \
--build_dir build/android \
--compile_no_warning_as_error \
--parallel 8 \
--disable_contrib_ops \
--disable_ml_ops \
--cmake_extra_defines FETCHCONTENT_TRY_FIND_PACKAGE_MODE=NEVER

