Skip to content
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

[Not for merge] Fixes #601 #603

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions build-android-arm64-v8a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,10 @@ echo "ANDROID_NDK: $ANDROID_NDK"
sleep 1
onnxruntime_version=1.17.0

if [ ! -f $onnxruntime_version/jni/arm64-v8a/libonnxruntime.so ]; then
mkdir -p $onnxruntime_version
pushd $onnxruntime_version
wget -q https://github.com/csukuangfj/onnxruntime-libs/releases/download/v${onnxruntime_version}/onnxruntime-android-${onnxruntime_version}.zip
unzip onnxruntime-android-${onnxruntime_version}.zip
rm onnxruntime-android-${onnxruntime_version}.zip
popd
fi
wget https://github.com/l3utterfly/jetified-onnxruntime-android-1.17.0/archive/refs/heads/main.zip
unzip main.zip
rm main.zip
mv jetified-onnxruntime-android-1.17.0-main $onnxruntime_version

export SHERPA_ONNXRUNTIME_LIB_DIR=$dir/$onnxruntime_version/jni/arm64-v8a/
export SHERPA_ONNXRUNTIME_INCLUDE_DIR=$dir/$onnxruntime_version/headers/
Expand Down
12 changes: 4 additions & 8 deletions build-android-armv7-eabi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,10 @@ sleep 1

onnxruntime_version=1.17.0

if [ ! -f $onnxruntime_version/jni/armeabi-v7a/libonnxruntime.so ]; then
mkdir -p $onnxruntime_version
pushd $onnxruntime_version
wget -q https://github.com/csukuangfj/onnxruntime-libs/releases/download/v${onnxruntime_version}/onnxruntime-android-${onnxruntime_version}.zip
unzip onnxruntime-android-${onnxruntime_version}.zip
rm onnxruntime-android-${onnxruntime_version}.zip
popd
fi
wget https://github.com/l3utterfly/jetified-onnxruntime-android-1.17.0/archive/refs/heads/main.zip
unzip main.zip
rm main.zip
mv jetified-onnxruntime-android-1.17.0-main $onnxruntime_version

export SHERPA_ONNXRUNTIME_LIB_DIR=$dir/$onnxruntime_version/jni/armeabi-v7a/
export SHERPA_ONNXRUNTIME_INCLUDE_DIR=$dir/$onnxruntime_version/headers/
Expand Down
12 changes: 4 additions & 8 deletions build-android-x86-64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,10 @@ sleep 1

onnxruntime_version=1.17.0

if [ ! -f $onnxruntime_version/jni/x86_64/libonnxruntime.so ]; then
mkdir -p $onnxruntime_version
pushd $onnxruntime_version
wget -q https://github.com/csukuangfj/onnxruntime-libs/releases/download/v${onnxruntime_version}/onnxruntime-android-${onnxruntime_version}.zip
unzip onnxruntime-android-${onnxruntime_version}.zip
rm onnxruntime-android-${onnxruntime_version}.zip
popd
fi
wget https://github.com/l3utterfly/jetified-onnxruntime-android-1.17.0/archive/refs/heads/main.zip
unzip main.zip
rm main.zip
mv jetified-onnxruntime-android-1.17.0-main $onnxruntime_version

export SHERPA_ONNXRUNTIME_LIB_DIR=$dir/$onnxruntime_version/jni/x86_64/
export SHERPA_ONNXRUNTIME_INCLUDE_DIR=$dir/$onnxruntime_version/headers/
Expand Down
12 changes: 4 additions & 8 deletions build-android-x86.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,10 @@ sleep 1

onnxruntime_version=1.17.0

if [ ! -f $onnxruntime_version/jni/x86/libonnxruntime.so ]; then
mkdir -p $onnxruntime_version
pushd $onnxruntime_version
wget -q https://github.com/csukuangfj/onnxruntime-libs/releases/download/v${onnxruntime_version}/onnxruntime-android-${onnxruntime_version}.zip
unzip onnxruntime-android-${onnxruntime_version}.zip
rm onnxruntime-android-${onnxruntime_version}.zip
popd
fi
wget https://github.com/l3utterfly/jetified-onnxruntime-android-1.17.0/archive/refs/heads/main.zip
unzip main.zip
rm main.zip
mv jetified-onnxruntime-android-1.17.0-main $onnxruntime_version

export SHERPA_ONNXRUNTIME_LIB_DIR=$dir/$onnxruntime_version/jni/x86/
export SHERPA_ONNXRUNTIME_INCLUDE_DIR=$dir/$onnxruntime_version/headers/
Expand Down
Loading