jni_md.h not found on freebsd
Posted by jerron on Jun 25, 2010; 6:00pm
URL: https://forum.jogamp.org/jni-md-h-not-found-on-freebsd-tp922667.html
Hi. I'm trying to build jogl on FreeBSD and have come up against this error:
c.build:
[echo] Output lib name = gluegen-rt
[mkdir] Created dir: /storage/home/m0/git-ext/jogamp/gluegen/build/obj
[echo] Compiling src/native/unix/*.c src/native/common/*.c
[echo] user.dir=/storage/home/m0/git-ext/jogamp/jogl/make
[cc] 4 total files to be compiled.
[cc] cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
[cc] In file included from /storage/home/m0/git-ext/jogamp/gluegen/src/native/common/Platform.c:2:
[cc] /usr/local/openjdk7/include/jni.h:45:20: error: jni_md.h: No such file or directory
The file does exist:
$ file /usr/local/openjdk7/include/freebsd/jni_md.h
/usr/local/openjdk7/include/freebsd/jni_md.h: ASCII C program text
But jogl (actually gluegen) doesn't seem to be telling the C compiler to look in that directory.
What's the correct way to fix this?