-
Notifications
You must be signed in to change notification settings - Fork 9
Need more detailed info on how to use this #7
Comments
First of all, building native libraries for Android is such a complicated task ;-) Okay, things can be explained in depth, but here are some quick answers for you. The build system assumes Linux or at least environment that "cerbero" build system works (it is for GNOME desktop which is for Linux). Since fluidsynth depends on glib which is part of GNOME desktop, it kind of makes sense to use cerbero. Cerbero supports many environments including Android, and building native libraries for Android involves, cross compiling, its own toolchains (Android NDK), and more factors that makes it complicated.
There is a Makefile which will build some artifacts. It is supposed to take all care when you run "make" there. |
Thanks, some progress made. I understand what cerbero is for and can run it on Windows using MinGW. Installing cerbero to a separarate directory and running "cerbero bootstrap" also succeeded. However, I need to bootstrap cerbero in android-fluidsynth/external/cerbero, by calling "make prepare" as stated in your readme. This gives me the following errors: $ make prepare Traceback (most recent call last): usage: cerbero-uninstalled [-h] [-c CONFIG] |
I have no idea if cerbero as of the version that I checked out for android-fluidsynth supports your Windows environment. As for the error with related to missing Android NDK, you might want to check how cerbero detects Android NDK from your build environment. It is not done automagically. It looks for android-ndk-r15b at certain location that some specific environment variable indicates. (cerbero in the original source tree was based on android-ndk-r13b and I made minimum changes to get it working with r15b. r16 may not work because it has some big changes in the header files that old cerbero might not work fine with them.) |
I'm familiar with C/C++, Java, JNI, Android and still completely lost how to build this.
Are you assuming a Linux environment? I'm on Windows and don't understand what I'm supposed to do about this cerbero thing. Took me a long time to even realize the "external" folder points to a separate repo that I apparently need to download separately. Where do I go from there - do I need to copy that into the android-fluidsynth repo somewhere? Do I need to have gcc installed? Many questions...
The text was updated successfully, but these errors were encountered: