Update version of NDK

This commit is contained in:
grummbeer
2023-03-13 14:58:57 +01:00
parent 1ded1d0d92
commit 745e529550
8 changed files with 26 additions and 26 deletions

View File

@@ -13,10 +13,10 @@ cd
# Para ahorrar su tiempo y el nuestro, preparamos archivos dependientes para usted.
wget https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/dep.tar.gz
tar xzf dep.tar.gz
# use r22b, el nuevo NDK tiene el siguiente problema
# use r23c, el nuevo NDK tiene el siguiente problema
# https://stackoverflow.com/questions/68873570/how-do-i-fix-ld-error-unable-to-find-library-lgcc-when-cross-compiling-rust
wget https://dl.google.com/android/repository/android-ndk-r22b-linux-x86_64.zip
unzip android-ndk-r22b-linux-x86_64.zip
wget https://dl.google.com/android/repository/android-ndk-r23c-linux.zip
unzip android-ndk-r23c-linux.zip
# install ffigen and llvm
dart pub global activate ffigen 5.0.1
@@ -29,7 +29,7 @@ rustup target add aarch64-linux-android
cargo install cargo-ndk
VCPKG_ROOT=$HOME/vcpkg ANDROID_NDK_HOME=$HOME/android-ndk-r22b flutter/ndk_arm64.sh
VCPKG_ROOT=$HOME/vcpkg ANDROID_NDK_HOME=$HOME/android-ndk-r23c flutter/ndk_arm64.sh
```
## Compilar Flutter