From d2a2890e03cc8bde4d298c44e10c82074fcb9ba0 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Fri, 20 May 2022 15:30:54 +0800 Subject: [PATCH] ffigen not tested on iOS yet --- content/dev/build/android/_index.zh-cn.md | 9 ++++++++- content/dev/build/android/_index.zh-tw.md | 9 ++++++++- content/dev/build/ios/_index.en.md | 1 + 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/content/dev/build/android/_index.zh-cn.md b/content/dev/build/android/_index.zh-cn.md index fe8f914..24f162a 100644 --- a/content/dev/build/android/_index.zh-cn.md +++ b/content/dev/build/android/_index.zh-cn.md @@ -17,11 +17,18 @@ tar xzf dep.tar.gz # 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 + +# install ffigen and llvm +dart pub global activate ffigen +sudo apt-get install libclang-dev + git clone https://github.com/rustdesk/rustdesk cd rustdesk rustup target add aarch64-linux-android + cargo install cargo-ndk -OPENSSL_DIR=$HOME/openssl AARCH64_LINUX_ANDROID_OPENSSL_LIB_DIR=$HOME/openssl 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-r22b flutter/ndk_arm64.sh ``` ## 构建 Flutter diff --git a/content/dev/build/android/_index.zh-tw.md b/content/dev/build/android/_index.zh-tw.md index a4de37f..eb0dab8 100644 --- a/content/dev/build/android/_index.zh-tw.md +++ b/content/dev/build/android/_index.zh-tw.md @@ -17,11 +17,18 @@ tar xzf dep.tar.gz # 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 + +# install ffigen and llvm +dart pub global activate ffigen +sudo apt-get install libclang-dev + git clone https://github.com/rustdesk/rustdesk cd rustdesk rustup target add aarch64-linux-android + cargo install cargo-ndk -OPENSSL_DIR=$HOME/openssl AARCH64_LINUX_ANDROID_OPENSSL_LIB_DIR=$HOME/openssl 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-r22b flutter/ndk_arm64.sh ``` ## 構建 Flutter diff --git a/content/dev/build/ios/_index.en.md b/content/dev/build/ios/_index.en.md index 5a07c3a..4a80974 100644 --- a/content/dev/build/ios/_index.en.md +++ b/content/dev/build/ios/_index.en.md @@ -13,6 +13,7 @@ cd rustdesk # For simulator: VCPKG_ROOT=$HOME/vcpkg ./flutter/ios_x64.sh VCPKG_ROOT=$HOME/vcpkg ./flutter/ios_arm64.sh cd flutter +dart pub global activate ffigen # Good Luck! # For simulator: sed 's/aarch64/x86_64/g' ios/Runner.xcodeproj/project.pbxproj # Forget if need: cd ios; pod install; cd -;