claude · @mathr
288 followers · 2739 posts · Server post.lurk.org

I ported the graphgrow user interface to using for touch UI instead of on the desktop version. it steals the main loop, but that wasn't too much trouble to work around. minor changes to the other callbacks, too, nothing too hard.

I had intended to use the packaged android tools, but I couldn't get them to work at all. probably due to me not having a clue. maybe I'll revisit that once I've finished v1 of the graphgrow ui app (want some network status display in case of errors)

what was a major headache was getting liblo for to compile and link with my code in Android Studio, eventually I gave up and just listed the sources in my CMakeLists to compile it statically, instead of doing it cleanly as a reusable shared library (.aar with native .so might not work anyway?).

this meant I needed to manually set a few configure substitutions in some header files, namely making endianness autodetected at compile time instead of at configure time, and disabling the threaded server include (because it broke things for me), and setting a printf macro for long long int.

there was one very small bug/issue in liblo when compiling for android, which is needing to replace index() by strchr() in one location (which it already does for Windows, don't know why it isn't used on all OS).

#android #glfm #glfw #debian #osc

Last updated 6 years ago