Android build tries to include Xlib.h

When I try to build an Android app using either
build-scripts/androidbuild.sh or the android-project, I get the following
error:

Compile thumb : SDL2 <= SDL_events.c
In file included from jni/SDL/src/events/SDL_events.c:27:0:
jni/SDL/include/SDL_syswm.h:66:22: fatal error: X11/Xlib.h: No such file or
directory
compilation terminated.
make: *** [obj/local/armeabi/objs/SDL2/src/events/SDL_events.o] Error 1

The build system is trying to include libx11, which is probably not right.
This is with hg 7805:4f0f7b64afa5 on linux x86_64 using android-ndk-r9 and
android-sdk-18 (Android 4.3).

Any ideas?

This sounds like you executed configure in your sdl checkout for your
local system. make sure to use a clean checkout for building for android.Am 12.10.2013 14:53, schrieb Stefanos A.:

When I try to build an Android app using either
build-scripts/androidbuild.sh or the android-project, I get the
following error:

Compile thumb : SDL2 <= SDL_events.c
In file included from jni/SDL/src/events/SDL_events.c:27:0:
jni/SDL/include/SDL_syswm.h:66:22: fatal error: X11/Xlib.h: No such
file or directory
compilation terminated.
make: *** [obj/local/armeabi/objs/SDL2/src/events/SDL_events.o] Error 1

The build system is trying to include libx11, which is probably not
right. This is with hg 7805:4f0f7b64afa5 on linux x86_64 using
android-ndk-r9 and android-sdk-18 (Android 4.3).

Any ideas?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Same problem here. Using ndk-build to compile, with android-ndk-r9b, this
error appear:

//workspace/sdl/android-project-test/jni/SDL/include/SDL_syswm.h:66:22:
fatal error: X11/Xlib.h: No such file or directory/

If someone has been solve this issue and can help me, It will be awesome.

Stefanos A. wrote> Compile thumb : SDL2 <= SDL_events.c

In file included from jni/SDL/src/events/SDL_events.c:27:0:
jni/SDL/include/SDL_syswm.h:66:22: fatal error: X11/Xlib.h: No such file
or
directory
compilation terminated.
make: *** [obj/local/armeabi/objs/SDL2/src/events/SDL_events.o] Error 1

The build system is trying to include libx11, which is probably not right.
This is with hg 7805:4f0f7b64afa5 on linux x86_64 using android-ndk-r9 and
android-sdk-18 (Android 4.3).


SDL mailing list

SDL at .libsdl

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


View this message in context: http://sdl.5483.n7.nabble.com/Android-build-tries-to-include-Xlib-h-tp37307p38629.html
Sent from the SDL mailing list archive at Nabble.com.

2013/12/17 piperoman <mrpiperoman.hot at gmail.com>

Same problem here. Using ndk-build to compile, with android-ndk-r9b, this
error appear:

//workspace/sdl/android-project-test/jni/SDL/include/SDL_syswm.h:66:22:
fatal error: X11/Xlib.h: No such file or directory/

If someone has been solve this issue and can help me, It will be awesome.

I just tried to verified using the 9b NDK, everything worked fine. Make
sure you haven’t run the configure script. Try building something using
build-scripts/androidbuild.sh and see if that works.

Gabriel.

A clean checkout-configure-make cycle worked for me. It didn’t work if I
just used make dist-clean before reconfiguring.
??? 17 ??? 2013 12:47 ?.?., ? ??? “piperoman” <
mrpiperoman.hot at gmail.com> ???:> Same problem here. Using ndk-build to compile, with android-ndk-r9b, this

error appear:

//workspace/sdl/android-project-test/jni/SDL/include/SDL_syswm.h:66:22:
fatal error: X11/Xlib.h: No such file or directory/

If someone has been solve this issue and can help me, It will be awesome.

Stefanos A. wrote

Compile thumb : SDL2 <= SDL_events.c
In file included from jni/SDL/src/events/SDL_events.c:27:0:
jni/SDL/include/SDL_syswm.h:66:22: fatal error: X11/Xlib.h: No such file
or
directory
compilation terminated.
make: *** [obj/local/armeabi/objs/SDL2/src/events/SDL_events.o] Error 1

The build system is trying to include libx11, which is probably not
right.
This is with hg 7805:4f0f7b64afa5 on linux x86_64 using android-ndk-r9
and
android-sdk-18 (Android 4.3).


SDL mailing list

SDL at .libsdl

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


View this message in context:
http://sdl.5483.n7.nabble.com/Android-build-tries-to-include-Xlib-h-tp37307p38629.html
Sent from the SDL mailing list archive at Nabble.com.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

The problem was, I have used cmake before, and config.h have been created
with Linux parameters. X11 is the Linux’s windows system.

So with a new checkout, and using ndk-build in android-project folder made
the trick.

Thanks, hope this help.–
View this message in context: http://sdl.5483.n7.nabble.com/Android-build-tries-to-include-Xlib-h-tp37307p38633.html
Sent from the SDL mailing list archive at Nabble.com.