Compiling SDL Error

Subforum for discussion and help with ScummVM's Android port

Moderator: ScummVM Team

Post Reply
Cirno
Posts: 8
Joined: Tue Mar 17, 2009 6:19 pm

Compiling SDL Error

Post by Cirno » Sun Feb 10, 2019 11:09 pm

Hi there,

I got stuck compiling the latest source for an Android SDL version.
I'm following the guide from the readme.
I assume that the ndk has changed up to today so has the API.

Code: Select all

cirno@cirno:~/scummvm/dists/androidsdl$ sh build.sh 
Switching build target to scummvm
Android NDK: The armeabi ABI is no longer supported. Use armeabi-v7a.    
Android NDK: NDK Application 'local' targets unknown ABI(s): armeabi    
Android NDK: Please fix the APP_ABI definition in ./jni/Application.mk    
/home/cirno/Android/Sdk/ndk-bundle/build/core/setup-app.mk:79: *** Android NDK: Aborting    .  Stop.
mv: Aufruf von stat für 'project/bin/MainActivity-debug.apk' nicht möglich: Datei oder Verzeichnis nicht gefunden
If I just add "APP_ABI := armeabi-v7a" into the Application.mk file it results in the next error.

Code: Select all

cirno@cirno:~/scummvm/dists/androidsdl$ sh build.sh 
Switching build target to scummvm
/home/cirno/Android/Sdk/ndk-bundle/build/core/build-binary.mk:663: Android NDK: Module application depends on undefined modules: curl    
/home/cirno/Android/Sdk/ndk-bundle/build/core/build-binary.mk:676: *** Android NDK: Aborting (set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies)    .  Stop.
mv: Aufruf von stat für 'project/bin/MainActivity-debug.apk' nicht möglich: Datei oder Verzeichnis nicht gefunden
Adding "APP_ALLOW_MISSING_DEPS=true" leads to another error and this is the point where I stop because I don't think that it will lead to a successful result.
Any help in showing me how to properly compile this would be great.

Thanks

mim2011
Posts: 8
Joined: Thu Feb 22, 2018 7:54 am

Re: Compiling SDL Error

Post by mim2011 » Mon Feb 11, 2019 8:39 am

hi,

please check my post on the topic "ScummVM2.0.0 crash upon start [reproducable]"...I think that you help you

Cirno
Posts: 8
Joined: Tue Mar 17, 2009 6:19 pm

Re: Compiling SDL Error

Post by Cirno » Sun Feb 17, 2019 12:19 am

Thank you.
That did actually help onto another error later on.
I then restarted and now this is where I am stuck at (and never encountered the curl error again :shock:):

Code: Select all

+ ../configure
checking for ICU version numbers... release 62.1, library 62.1, unicode version 11.0
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking whether to build debug libraries... no
checking whether to build release libraries... yes
checking for clang... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/scumm/androidsdl/project/jni/iconv/src/arm64-v8a/icu/source/cross':
configure: error: C compiler cannot create executables
See `config.log' for more details
+ exit 1
Makefile.prebuilt:21: recipe for target 'iconv/lib/armeabi/libiconv.so' failed
make: *** [iconv/lib/armeabi/libiconv.so] Error 1
make: Leaving directory '/home/scumm/androidsdl/project/jni'
Done
Android NDK: WARNING: APP_PLATFORM android-18 is higher than android:minSdkVersion 1 in jni/../AndroidManifest.xml. NDK binaries will *not* be compatible with devices older than android-18. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.    
/home/scumm/Android/Sdk/ndk-bundle/build/core/add-application.mk:178: *** Android NDK: APP_STL gnustl_static is no longer supported. Please switch to either c++_static or c++_shared. See https://developer.android.com/ndk/guides/cpp-support.html for more information.    .  Stop.
mv: cannot stat 'project/app/build/outputs/apk/app-release.apk': No such file or directory
Once I remove "gnustl_static" from line 5 in Application.mk (~/androidsdl/project/jni/) it changes to

Code: Select all

scumm@scumm:~/scummvm/dists/androidsdl$ ./build.sh 
Switching build target to scummvm
Android NDK: WARNING: APP_PLATFORM android-18 is higher than android:minSdkVersion 1 in jni/../AndroidManifest.xml. NDK binaries will *not* be compatible with devices older than android-18. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.    
Android NDK: ERROR:jni/../jni/charset/Android.mk:charset: LOCAL_SRC_FILES points to a missing file    
Android NDK: Check that jni/../jni/charset/lib/armeabi-v7a/libcharset.so exists  or that its path is correct   
/home/scumm/Android/Sdk/ndk-bundle/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting    .  Stop.
mv: cannot stat 'project/app/build/outputs/apk/app-release.apk': No such file or directory
Only folder inside charset is /src/arm64-v8a with a libcharset.so
What file am I supposed to change?

Post Reply