$ ndk-build SDL2
…
Compile thumb : SDL2 <= SDL_events.c
In file included from /home/greno/build/SDL/jni/SDL/src/events/SDL_events.c:27:
/home/greno/build/SDL/jni/SDL/include/SDL_syswm.h:68:22: error: X11/Xlib.h: No such file or directory
/home/greno/build/SDL/jni/SDL/include/SDL_syswm.h:69:23: error: X11/Xatom.h: No such file or directory
Does this mean that we cannot have X11 headers installed when cross-compiling? Because if so that is a big problem.
X11 headers are installed for other projects and there are a lot of dependencies (20+) on them. Which turns into even more if you try to actually remove them. It is now almost impossible to remove them.
So how can we get around this issue for cross-compiles?
Message-ID: <1335575984.m2f.32652 at forums.libsdl.org>
Content-Type: text/plain; charset=“iso-8859-1”
$ ndk-build SDL2
…
Compile thumb : SDL2 <= SDL_events.c
In file included from
/home/greno/build/SDL/jni/SDL/src/events/SDL_events.c:27:
/home/greno/build/SDL/jni/SDL/include/SDL_syswm.h:68:22: error: X11/Xlib.h:
No such file or directory
/home/greno/build/SDL/jni/SDL/include/SDL_syswm.h:69:23: error: X11/Xatom.h:
No such file or directory
Does this mean that we cannot have X11 headers installed when
cross-compiling? Because if so that is a big problem.
I think you’re misunderstanding the error. The compiler doesn’t seem
to be saying that you need to get rid of the X headers, it’s saying
that it CANNOT FIND THE X11 HEADERS. SDL2 isn’t clashing with X11,
it’s depending on it. You should check your cross-compiler setup to
make certain that the files are in the right place.> Date: Fri, 27 Apr 2012 18:19:44 -0700
From: “greno”
To: sdl at lists.libsdl.org
Subject: [SDL] SDL-2.0: cross-compile problem with X11 headers