How do you compile Mupen64plus core for Android?

I’m trying to compile a version of the Mupen64plus core for android on my linux-PC as the pre-compiled version will not run on android 4.4 or lower because of some changes to the ‘srand()’ function in android since API 21.

Now I tried using this tutorial: https://github.com/libretro/RetroArch/wiki/Compilation-guide-(Android-from-Linux)/

It tells you to run "NOCLEAN=1 ./libretro-build-android-mk.sh " to build the cores which is easy enough but it doesn’t compile some cores inluding mupen.

I have some experience building code for linux but no prior experience with building c++ code for android using the NDK. It seems the mupen core is missing a jni folder with necessary make-files for building with NDK.

Can somebody give me some pointers on how to set up those files and building the core or give me a simple explanation on how to build Mupen64plus for android?

Thank you in adcance :grinning: