First post, by superfury
I've just migrated my emulator(UniPCemu)'s project to also include buildfiles for Android Studio(managed to screw up the old classic installation I've had before, which is deprecated by Google, apparently). It used to be a simple combination of Android SDK, Android NDK (r12b), Apache Ant and Sun Java's JDK. Since I couldn't find the Android SDK anymore(all others could be found easily), I needed to upgrade the project to the Android Studio project, which after some configuration(with options that almost seem unreachable somethimes, finding the build version to set to 1.8 instead of invalid/blank(which I can't find most of the time)) actually starts to compile(after having modified the paths somewhat). Eventually, it reaches the common emulator framework's number_optimizations.c, but then it craps out about not being able to find a .o.d file in the build directory?
Build SDL2_net x86
make: `Z:/MinGW64/msys/home/Tim/unipcemu/android-studio/app/build/intermediates/ndkBuild/debug/obj/local/x86/libSDL2_net.so' is up to date.
Build main x86
[x86] Compile : main <= number_optimizations.c
error
: error opening 'Z:/MinGW64/msys/home/Tim/unipcemu/android-studio/app/build/intermediates/ndkBuild/debug/obj/local/x86/objs-debug/main/Z_/MinGW64/msys/home/Tim/unipcemu/android-project/jni/src/__/__/__/UniPCemu/__/commonemuframework/emu/core/number_optimizations.o.d': No such file or directory
1
error generated.
make: *** [Z:/MinGW64/msys/home/Tim/unipcemu/android-studio/app/build/intermediates/ndkBuild/debug/obj/local/x86/objs-debug/main/Z_/MinGW64/msys/home/Tim/unipcemu/android-project/jni/src/__/__/__/UniPCemu/__/commonemuframework/emu/core/number_optimizations.o] Error 1
:app:externalNativeBuildDebug FAILED
Those __ parts are simply results of parent directory paths being used. All other files (including files with _ in their filenames) compile without a problem. It seems to be 250 characters long(the full path to the file). Maybe it's got something to do with Windows filename limitations?
Edit: After replacing the LOCAL_SRC_PATH 's paths to be relative to the LOCAL_PATH directory, it now continues on compiling, only to error out on linkage to EVERY SINGLE INLINED function? Changing every "inline" keyword to ""(essentially remove it), will make the code much slower, but not doing so causes a lot of undefined reference messages on the inlined functions?
Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io