mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2025-01-24 15:08:36 +01:00
android
This commit is contained in:
parent
d4ac245496
commit
912000b718
@ -3,4 +3,34 @@ title: Android
|
||||
weight: 22
|
||||
---
|
||||
|
||||
**COMMING SOON**
|
||||
{{% notice note %}}
|
||||
This tutorial is based on **Linux**, and supposing you are **familiar** with [Android NDK](https://developer.android.com/ndk/downloads), [Rust](https://rustup.rs/) and [Flutter](https://flutter.dev/). If you are not, please skip.
|
||||
{{% /notice %}}
|
||||
|
||||
## Build Rust
|
||||
```
|
||||
cd
|
||||
# For saving your time and our time, we prepared dependent files for you.
|
||||
wget https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/dep.tar.gz
|
||||
tar xzf dep.tar.gz
|
||||
# please use r22b, new NDK has below problem
|
||||
# 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
|
||||
git clone https://github.com/rustdesk/rustdesk
|
||||
cd rustdesk
|
||||
cargo install cargo-ndk
|
||||
OPENSSL_DIR=$HOME/openssl VCPKG_ROOT=$HOME/vcpkg ANDROID_NDK_HOME=$HOME/android-ndk-r22b flutter/ndk_arm64.sh
|
||||
```
|
||||
|
||||
## Build Flutter
|
||||
|
||||
```
|
||||
cd flutter
|
||||
wget https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/so.tar.gz
|
||||
tar xzf so.tar.gz
|
||||
cp ../target/aarch64-linux-android/release/liblibrustdesk.so android/app/src/main/jniLibs/arm64-v8a/librustdesk.so
|
||||
# Run on your android device, not support simulator yet (Please do not ask why).
|
||||
# Good Luck!
|
||||
flutter run
|
||||
```
|
||||
|
@ -1,6 +1,36 @@
|
||||
---
|
||||
title: Android
|
||||
title: 安卓
|
||||
weight: 22
|
||||
---
|
||||
|
||||
[English](/docs/en/dev/build/android)
|
||||
{{% notice note %}}
|
||||
本教程基于**Linux**,假设您**熟悉** [Android NDK](https://developer.android.com/ndk/downloads)、[Rust](https://rustup.rs/) 和 [Flutter](https://flutter.dev/)。 如果你是初学者,可能比较费劲。
|
||||
{{% /notice %}}
|
||||
|
||||
## 构建 Rust
|
||||
```
|
||||
cd
|
||||
# For saving your time and our time, we prepared dependent files for you.
|
||||
wget https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/dep.tar.gz
|
||||
tar xzf dep.tar.gz
|
||||
# please use r22b, new NDK has below problem
|
||||
# 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
|
||||
git clone https://github.com/rustdesk/rustdesk
|
||||
cd rustdesk
|
||||
cargo install cargo-ndk
|
||||
OPENSSL_DIR=$HOME/openssl VCPKG_ROOT=$HOME/vcpkg ANDROID_NDK_HOME=$HOME/android-ndk-r22b flutter/ndk_arm64.sh
|
||||
```
|
||||
|
||||
## 构建 Flutter
|
||||
|
||||
```
|
||||
cd flutter
|
||||
wget https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/so.tar.gz
|
||||
tar xzf so.tar.gz
|
||||
cp ../target/aarch64-linux-android/release/liblibrustdesk.so android/app/src/main/jniLibs/arm64-v8a/librustdesk.so
|
||||
# Run on your android device, not support simulator yet (Please do not ask why).
|
||||
# Good Luck!
|
||||
flutter run
|
||||
```
|
||||
|
@ -3,4 +3,34 @@ title: Android
|
||||
weight: 22
|
||||
---
|
||||
|
||||
[English](/docs/en/dev/build/android)
|
||||
{{% notice note %}}
|
||||
本教程基於**Linux**,假設您**熟悉** [Android NDK](https://developer.android.com/ndk/downloads)、[Rust](https://rustup.rs/) 和 [Flutter](https://flutter.dev/)。如果你是初學者,可能比較費勁。
|
||||
{{% /notice %}}
|
||||
|
||||
## 構建 Rust
|
||||
```
|
||||
cd
|
||||
# For saving your time and our time, we prepared dependent files for you.
|
||||
wget https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/dep.tar.gz
|
||||
tar xzf dep.tar.gz
|
||||
# please use r22b, new NDK has below problem
|
||||
# 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
|
||||
git clone https://github.com/rustdesk/rustdesk
|
||||
cd rustdesk
|
||||
cargo install cargo-ndk
|
||||
OPENSSL_DIR=$HOME/openssl VCPKG_ROOT=$HOME/vcpkg ANDROID_NDK_HOME=$HOME/android-ndk-r22b flutter/ndk_arm64.sh
|
||||
```
|
||||
|
||||
## 構建 Flutter
|
||||
|
||||
```
|
||||
cd flutter
|
||||
wget https://github.com/rustdesk/doc.rustdesk.com/releases/download/console/so.tar.gz
|
||||
tar xzf so.tar.gz
|
||||
cp ../target/aarch64-linux-android/release/liblibrustdesk.so android/app/src/main/jniLibs/arm64-v8a/librustdesk.so
|
||||
# Run on your android device, not support simulator yet (Please do not ask why).
|
||||
# Good Luck!
|
||||
flutter run
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user