Closed lopezloo closed 4 months ago
Managed to build it.
> ls /data/data/com.termux/files/usr/lib | grep libc++
libc++_shared.so
thus, you do:
export CXX=clang++
export CC=clang
export CXXFLAGS="-I/data/data/com.termux/files/usr/include/c++/v1"
export LDFLAGS="-L/data/data/com.termux/files/usr/lib -lc++_shared"
export RUSTFLAGS="-C link-arg=-L/data/data/com.termux/files/usr/lib -C link-arg=-lc++_shared"
Now figuring out how to run it.
To run, basically: ./target/release/aero2solver
from project main directory.
Termux people never fail to amaze me. An Android app wouldn't be a bad idea though. I believe there already is/was an app that helps you enter the codes manually, automating it is the natural next step. The only problem would be the fact that many phone manufacturers like killing apps in the background, see: dontkillmyapp.com. I wonder how hard would it be to build this against NDK
How to build this on Android device?
Tried to build this on Android 14 phone with Termux 0.118.1 without success: