3 messages in net.java.dev.jna.usersRe: [jna-users] MinGW build can't fin...
FromSent OnAttachments
bb...@cox.netJul 9, 2007 8:45 am 
Timothy WallJul 9, 2007 9:12 am 
bb...@cox.netJul 10, 2007 5:53 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] MinGW build can't find jni_md.hActions...
From:Timothy Wall (twal@dev.java.net)
Date:Jul 9, 2007 9:12:27 am
List:net.java.dev.jna.users

What JDK are you using? Sun's JDK for windows puts jni_md.h into $JDK_HOME/include/win32, not 'w32'. We can always tweak the makefile to support variants... T.

On Jul 9, 2007, at 11:45 AM, <bb@cox.net> <bb@cox.net> wrote:

Seeing the recent changes since the last jna.jar available for download was built, I've set out to build my own.

I'm trying to build on WinXP. I decided to use MinGW and MSYS as build tools for the native stuff. Using "make CC=gcc", it fails trying to compile the first file, distpatch.c.

The reason is that the include path seems to be not quite right. It can find jni.h in .../jdk.6.0._01/include/ But jni.h includes jni_md.h, and that is not found, because it is in .../jdk.6.0._01/include/w32/

I can guess how to fix this by hand, but suspect I am doing something wrong overall...