On Oct 28, 2007, at 3:44 PM, Quartz wrote:
Hi,
I tried to run the ant's build.xml on our buildbox.
Worked well until the X11 stuff, likely because our buildbox is
headless
and was not planned to have X.
Is there a way to turnoff all the X11 stuff with an ant property,
turning into a makefile's env
property I guess, some kind of #define HEADLESS?
I am afraid that even if compiled, the library may not load on X-
less server's JVM.
Java is linked against X11 and it still runs on your system. JNA is
no different. The X11 dependencies are only triggered if you use the
JAWT-related functionality.
Any clue? I suspect it may require moving X related native methods
into a separate class (out of
Native.java). Could it be the case?
You could simply fake it by writing a few dummy headers that defined
the missing bits, then tweaking the include paths to point to your
headers. Although if your machine is generic build machine, it would
make sense for it to be able to build binaries for non-headless targets.