Closed godreborn closed 9 months ago
here's the error:
[CXX1405] error when building with ndkBuild using C:\Users\GODREBORN\Desktop\test\Sonic-CD-11-Decompilation\android\app\jni\Android.mk: Android NDK: WARNING: Unsupported source file extensions in C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/jni/src/Android.mk for module main
Android NDK: C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/ C:/Users/GODREBORN/Desktop/test/Sonic-CD-11-Decompilation/android/app/
C++ build system [configure] failed while executing:
@echo off
"C:\Users\GODREBORN\AppData\Local\Android\Sdk\ndk\22.1.7171670\ndk-build.cmd" ^
"NDK_PROJECT_PATH=null" ^
"APP_BUILD_SCRIPT=C:\Users\GODREBORN\Desktop\test\Sonic-CD-11-Decompilation\android\app\jni\Android.mk" ^
"NDK_APPLICATION_MK=C:\Users\GODREBORN\Desktop\test\Sonic-CD-11-Decompilation\android\app\jni\Application.mk" ^
"APP_ABI=arm64-v8a" ^
"NDK_ALL_ABIS=arm64-v8a" ^
"NDK_DEBUG=1" ^
"NDK_OUT=C:\Users\GODREBORN\Desktop\test\Sonic-CD-11-Decompilation\android\app\build\intermediates\cxx\Debug\53678206/obj" ^
"NDK_LIBS_OUT=C:\Users\GODREBORN\Desktop\test\Sonic-CD-11-Decompilation\android\app\build\intermediates\cxx\Debug\53678206/lib" ^
"APP_PLATFORM=android-23" ^
"APP_SHORT_COMMANDS=false" ^
"LOCAL_SHORT_COMMANDS=false" ^
-B ^
-n
from C:\Users\GODREBORN\Desktop\test\Sonic-CD-11-Decompilation\android\app
fcntl(): Bad file descriptor
C:/Users/GODREBORN/AppData/Local/Android/Sdk/ndk/22.1.7171670/build//../build/core/build-binary.mk:654: Android NDK: Module main depends on undefined modules: SDL2
C:/Users/GODREBORN/AppData/Local/Android/Sdk/ndk/22.1.7171670/build//../build/core/build-binary.mk:667: *** Android NDK: Note that old versions of ndk-build silently ignored this error case. If your project worked on those versions, the missing libraries were not needed and you can remove those dependencies from the module to fix your build. Alternatively, set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies. . Stop.
nm, I figured out the problem. it was the wrong SDL2 type.
I spoke too soon. I get SDL2 error upon opening the game. it says missing x file. I used the source code, so I don't understand what's gone wrong.
here's what it does, someone said you needed android 8 or lower for this game to work, is that true?:
The symlinks are broken on your end, you can fix it by going to android/app/jni
and deleting the files SDL and src (they shouldn't have any format).
Then open cmd on this location and type
mklink /D src ..\..\..
mklink /D SDL ..\..\..\dependencies\android\SDL
The symlinks are broken on your end, you can fix it by going to
android/app/jni
and deleting the files SDL and src (they shouldn't have any format). Then open cmd on this location and typemklink /D src ..\..\.. mklink /D SDL ..\..\..\dependencies\android\SDL
I had already done that, but still the same error. android studio warns against a file decryptor error. this is a new pc, and a new build. not sure what the problem is.
just tried again, same error:
this may be the problem. I may be using the wrong SDL type. I was using the source code one, because that's what it says. is that correct?:
same problem with sonics 1 and 2. I don't understand what's wrong with sdl2. the symlinks are correct. I was able to build sonic mania just fine with symlinks, but it didn't ask for an sdl2 one. I don't understand what's going on.
which application did you use to compile the Android version??
I compiled them a while ago. sorry, I had forgotten about this posting. it requires SDL 2.0.16 or it won't work on android. it will compile, but you'll get an error when launching the older sonics.
btw, I was using linux and android sdk as well as android studio. either is fine with my setup.
Closing due to inactivity and because we've since overhauled the building process
think it said unknown file extensions in the android.mk and application.mk. I followed the instructions to the letter. I'm thinking it has to do with the ndk version, so I'm installing all of them. will that work?