Hi. I'm trying to build jogl on FreeBSD and have come up against this error:
[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
[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.
(or any other place you could host a git repo we can pull from would be
patches are ok too, but don't forget to somehow generate them in a way
which contains git authorship information (name + email). Otherwise we
end up integrating code under our names we haven't written :)
(i'll move this forum thread to the gluegen section)
On 06/25/2010 09:39 PM, jerron [via jogamp] wrote:
I've worked it out.
I've cleaned up and corrected all of the FreeBSD logic in the build.xml
files. I've also added a correct definition for StructLayout.
JUnit tests all pass for gluegen (haven't attempted to build jogl,
the committer name is "m0". Is this ok or did you forget to set the git config?
$ git config --global user.name "foobar"
$ git config --global user.email "firstname.lastname@example.org"
you could fix it by rewriting the history of your local repo (but make a backup first):
git filter-branch --commit-filter '
if [ "$GIT_AUTHOR_NAME" = "m0" ];
git commit-tree "$@";
git commit-tree "$@";
where author name/mail should match committer name/mail.
you can check if it worked with git log or gitk.
and later push it with:
git push -f origin freebsd-fixes
doing those things after we pulled is almost impossible.
On Monday, July 12, 2010 08:35:33 jerron [via jogamp] wrote:
> Sorry, was pulled away from this work. Only saw these messages today.
> I'll rewrite the names in my repos. Forgot to set the name/email on the git
> repository when I started.