Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Feb 2026 20:55:14 +0100
From:      Markus Graf <markus.graf@markusgraf.net>
To:        freebsd-java@freebsd.org
Subject:   Request for code review and feedback javacpp
Message-ID:  <864inhye71.fsf@beasty.markusgraf.net>

index | next in thread | raw e-mail


Hello,

I have forked javacpp in preparation for a pull request to make 
javacpp work on FreeBSD.

JavaCPP generates CPP code to be used at build time to build 
native modules to be called from Java.

This CPP Code has #ifdefs for Linux, Apple, Android and Win32 
System calls.  I added #ifdefs for FreeBSD to have the tests pass 
and changed one test.

https://github.com/markusalbertgraf/javacpp

The diff is here:

https://github.com/bytedeco/javacpp/compare/master...markusalbertgraf:javacpp:FreeBSD

The tests pass.

I don't have any experience with Java, C++, or system calls as I 
mostly work on a Clojure backend with web frontend.
I do however use https://github.com/datalevin/datalevin which 
startet depending on nativ dependencies built using javacpp, so 
here I go.

I added FreeBSD #ifdefs to 
__Linux__/__Apple__/__Win32__/__Android__ #ifdefs using Gemini 
suggestions that I then referenced with FreeBSD man pages.  I also 
had to guess what the intention of the Code was so I hope that 
most guesses are reasonable.

Additionally on one test I decided, that it was the test that 
needed a correction for FreeBSD, not the generated Code.

Please give some feedback on whether the Code is correct or what 
could be done better or instead.

Best regards

Markus

-- 
Markus Graf

Email: markus.graf@markusgraf.net



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?864inhye71.fsf>