Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fltk-rs/fltk-rs-android
An example counter app using fltk-rs on Android
https://github.com/fltk-rs/fltk-rs-android
Last synced: about 2 months ago
JSON representation
An example counter app using fltk-rs on Android
- Host: GitHub
- URL: https://github.com/fltk-rs/fltk-rs-android
- Owner: fltk-rs
- Created: 2020-09-24T16:34:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-14T17:58:41.000Z (over 3 years ago)
- Last Synced: 2024-04-20T08:56:33.903Z (9 months ago)
- Language: Java
- Homepage:
- Size: 198 KB
- Stars: 21
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fltk-rs-android
An example counter app using fltk-rs on Android.
![image](ex.jpg)
## Requirements
- Android Studio
- Android ndk## Usage
- Make sure you have the targets installed:
```
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
```
- Clone the repo
- Open in Android Studio
- In the Android Studio terminal, set the ANDROID_SDK_ROOT and ANDROID_NDK_ROOT environment variables.
For windows, it's usually something like:
```
set ANDROID_SDK_ROOT=C:\Users\\AppData\Local\Android\Sdk
set ANDROID_NDK_ROOT=C:\Users\\AppData\Local\Android\Sdk\ndk\21.0.6113669
```
For posix systems:
```
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
export ANDROID_NDK_ROOT=$ANDROID_SDK_ROOT/ndk/21.0.6113669
```
- From the terminal, run the build for your emulator's triple, assuming it's a Nexus 5 x86:
```
cd app\src\main\cpp\app (windows)
cd app/src/main/cpp/app (posix)
cargo build --target i686-linux-android
```
- Hit the Run App button