It requires vcpkg to be installed, in this case at /opt: pushd /opt You might also need to activate ffigen: dart pub global activate ffigen 5.0.1įor this tutorial we prepared some dependencies for you, feel free to use them. Sudo apt-get -qq install -y git curl wget nasm yasm libgtk-3-dev clang libxcb-randr0-dev libxdo-dev libxfixes-dev libxcb-shape0-dev libxcb-xfixes0-dev libasound2-dev libpulse-dev cmake libclang-dev ninja-build libappindicator3-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libvdpau-dev libva-dev libclang-dev llvm-dev libclang-10-dev llvm-10-dev pkg-config tree g++ libc6-dev gcc-multilib g++-multilib openjdk-11-jdk-headless If everything worked fine, you should see something like this in your’s terminal window:Ģ023 /02/27 20:44:39 Success! 2023 /02/27 20:44:39 Now go and use it :) Building RustDesk for Android □ Installing dependenciesĪt this step you might require some additional dependencies, you could install them by running this: sudo apt update -y In order for everything to work you’ll need to generate Flutter Rust Bridge, in order to do it simply run: ~/.cargo/bin/flutter_rust_bridge_codegen -rust-input. This might take some time depending on your internet connection speed and overall desktop performance: cargo install flutter_rust_bridge_codegen Installing Flutter Rust Bridge dependenciesĪt this step you’ll install additional dependencies required by Flutter Rust Bridge also you’ll download flutter dependencies from pubspec.yaml file. Sudo apt install -y g++ gcc git curl wget nasm yasm libgtk-3-dev clang cmake libclang-dev ninja-build llvm-dev libclang-10-dev llvm-10-dev pkg-config You also might be required to install some prerequisites if you are doing this first time: sudo apt install ca-certificates -y Then you’ll be able to change your directory into rustdesk: cd rustdesk If you did not have one, clone RustDesk repository, you can achieve that by running: git clone Generating Bridge □ĭue to fact that this project is based on Flutter Rust Bridge you should first generate it, you can achieve it by running following commands.Ĭhange your current directory into rustdesk directory: cd rustdesk If you missing any of these prerequisites, obtain and configure them, then return back here. This part of tutorial is based on clean Ubuntu 20.04 instance with prerequisites like Flutter, Rust and vcpkg already installed and configured. You already installed Flutter, vcpkg and Rust.You are using Ubuntu 20.04 or later (due to fact that this tutorial is based on this version).It is possible to build, run end edit Android version on Windows, but it requires patched flutter directory.īy “patched” I mean directory in state like before running flutter build on Linux machine. If you encounter any problems feel free to contact us on our Discord or by other communication channel. This tutorial is based on latest working workflow file, to ensuree that everything will just works. Here you will learn how to prepare your environment to such an extent that you will be able to successfully build the application and enable yourself to work on the code through, for example, Android Studio. It is possible to build RustDesk Android on Windows and macOS but this instruction is still under active development.
0 Comments
Leave a Reply. |