Wintermute Engine Forum
Wintermute Engine => WME Lite => Topic started by: fernandonn on September 09, 2013, 11:32:44 PM
-
Hi.. we are trying to compile wmelite for Android, but we are unsuccessful so far.
After trying several things, we manage to get to an error that says jni/src/../../../src/PlatformSDL.h:30:22: fatal error: SDL2/SDL.h: No such file or directory
The error happens after we copy the dependency folder in the wmelite root.
We tried adding to LOCAL_C_INCLUDES the path /usr/local/includes, where the .h from the linux system reside, but after that, we have trouble finding iconv.
Any help would be much appreciated. ::slug
-
Hi,
you should never use Linux include files or include paths in your Android project. All dependencies shall be satisfied by the "dependencies" and "prebuilt" folders, which you copy to the wmelite project after compiling all dependent libraries.
Could you successfully compile all the dependent libraries (including SDL2)? If that didn't work, wmelite itself will most likely also not compile ;-)
-
I tried not using Linux dependencies but there were many .h not found. But thanks for the adivce. I'll try again and come back with more information if I have other problems.
All the others libraries were compiled without problem in Android.
Thanks !
-
Hi,
please check that the paths from the file
wmelite / android / jni / src / Android.mk
can be resolved. For SDL, for instance, the path is defined like this:
SDL_PATH := ../../../dependencies/SDL/jni/
LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include ...
so you should have a path "wmelite/dependencies/SDL/jni/include" on your system. The same is true for the other include paths.
This way you should get rid of all "evil" ;) Linux include paths.
-
Hi! I'm having this very same error but I'm trying to compile the Xcode build on a mac. It highlights the line
#include "SDL.h"
not found.