15 messages in net.java.dev.jna.usersRe: [jna-users] linux libc link error
FromSent OnAttachments
QuartzOct 27, 2007 7:55 am 
Timothy WallOct 27, 2007 8:14 am 
QuartzOct 27, 2007 11:10 am 
Timothy WallOct 27, 2007 12:54 pm 
QuartzOct 28, 2007 11:03 am 
QuartzOct 28, 2007 12:44 pm 
Timothy WallOct 28, 2007 1:44 pm 
Timothy WallOct 28, 2007 1:49 pm 
Timothy WallOct 28, 2007 1:55 pm 
Timothy WallOct 28, 2007 2:30 pm 
QuartzOct 29, 2007 8:23 am 
Timothy WallOct 29, 2007 1:56 pm 
QuartzOct 29, 2007 7:39 pm 
Timothy WallOct 30, 2007 6:37 am 
QuartzNov 3, 2007 9:39 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] linux libc link errorActions...
From:Timothy Wall (twal@dev.java.net)
Date:Oct 28, 2007 1:55:41 pm
List:net.java.dev.jna.users

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.