jni_md.h not found on freebsd

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

jni_md.h not found on freebsd

jerron
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?
Reply | Threaded
Open this post in threaded view
|

Re: jni_md.h not found on freebsd

jerron
I've worked it out.

I've cleaned up and corrected all of the FreeBSD logic in the build.xml and gluegen-cpptasks-base.xml
files. I've also added a correct definition for StructLayout.

JUnit tests all pass for gluegen (haven't attempted to build jogl, yet).

Where should I send patches?
Reply | Threaded
Open this post in threaded view
|

Re: jni_md.h not found on freebsd

Michael Bien
hello jerron,

just fork a repository on github (e.g http://github.com/mbien/gluegen) and push the changeset into your repo. We will integrate it later.

(or any other place you could host a git repo we can pull from would be sufficient)

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)

thanks!,

michael


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 and gluegen-cpptasks-base.xml
files. I've also added a correct definition for StructLayout.

JUnit tests all pass for gluegen (haven't attempted to build jogl, yet).

Where should I send patches?


View message @ http://jogamp.762907.n3.nabble.com/jni-md-h-not-found-on-freebsd-tp922667p922905.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.

Reply | Threaded
Open this post in threaded view
|

Re: jni_md.h not found on freebsd

jerron
Will do!
Reply | Threaded
Open this post in threaded view
|

Re: jni_md.h not found on freebsd

Sven Gothel
Administrator
On Friday, June 25, 2010 11:18:22 pm jerron [via jogamp] wrote:
>
> Will do!
>
> ______________________________________
> View message @ http://jogamp.762907.n3.nabble.com/jni-md-h-not-found-on-freebsd-tp922667p922989.html
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, click http://jogamp.762907.n3.nabble.com/subscriptions/Unsubscribe.jtp?code=c2dvdGhlbEBqYXVzb2Z0LmNvbXw3NjI5MDd8MzkxNDI4MzU5
>

Awesome .. thanks a lot

~Sven
Reply | Threaded
Open this post in threaded view
|

Re: jni_md.h not found on freebsd

jerron
You're welcome.

gluegen fork (freebsd-fixes branch) is at:

http://github.com/rothwell/gluegen/tree/freebsd-fixes

Builds and passes JUnit tests. Hope I didn't break any other platforms...
Reply | Threaded
Open this post in threaded view
|

Re: jni_md.h not found on freebsd

Michael Bien
jerron,

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 "foobar@somewhere.com"

you could fix it by rewriting the history of your local repo (but make a backup first):
script:
git filter-branch --commit-filter '
        if [ "$GIT_AUTHOR_NAME" = "m0" ];
        then
                GIT_COMMITTER_NAME="<New Name>";
                GIT_AUTHOR_NAME="<New Name>";
                GIT_COMMITTER_EMAIL="<New Email>";
                GIT_AUTHOR_EMAIL="<New Email>";
                git commit-tree "$@";
        else
                git commit-tree "$@";
        fi' HEAD


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.

regards,
michael

jerron wrote
You're welcome.

gluegen fork (freebsd-fixes branch) is at:

http://github.com/rothwell/gluegen/tree/freebsd-fixes

Builds and passes JUnit tests. Hope I didn't break any other platforms...
Reply | Threaded
Open this post in threaded view
|

Re: jni_md.h not found on freebsd

Michael Bien
hello jerron,

whats your opinion to the naming issue? I know its a bit boring to talk about those things but its also somewhat important.

should we use "m0" as author name or should we wait until you replace it (description is on the last mail) or should we replace it for you with the name you used for the github account?

best regards,
and thanks again for the patch,

michael
Reply | Threaded
Open this post in threaded view
|

Re: jni_md.h not found on freebsd

jerron
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.
Reply | Threaded
Open this post in threaded view
|

Re: jni_md.h not found on freebsd

Sven Gothel
Administrator
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.
>

Thank you.

Reply | Threaded
Open this post in threaded view
|

Re: jni_md.h not found on freebsd

jerron
It seems to have worked (at long last).
Reply | Threaded
Open this post in threaded view
|

freebsd fixes

Michael Bien
thanks.

Merged your changes into master and pushed to Sven's and my repositories.

-michael
On 07/17/2010 01:16 PM, jerron [via jogamp] wrote:
It seems to have worked (at long last).


View message @ http://jogamp.762907.n3.nabble.com/jni-md-h-not-found-on-freebsd-tp922667p974689.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.