Skip to content

Add FreeBSD support#824

Merged
saudet merged 7 commits intobytedeco:masterfrom
markusalbertgraf:FreeBSD
Feb 18, 2026
Merged

Add FreeBSD support#824
saudet merged 7 commits intobytedeco:masterfrom
markusalbertgraf:FreeBSD

Conversation

@markusalbertgraf
Copy link
Copy Markdown
Contributor

@markusalbertgraf markusalbertgraf commented Feb 17, 2026

Hi,

this adds FreeBSD support.

All tests pass on my FreeBSD amd64 machine except ThreadTest.
ThreadTest prints:
Callback from Thread[#51,JavaCPP Thread ID 115907,5,main]
Callback from Thread[#52,JavaCPP Thread ID 115907,5,main]
Callback from Thread[#53,JavaCPP Thread ID 115907,5,main]
I have to guess the tests intention. I changed the test under the assumption that these threads should be considered equal, since they have the same Thread ID.

I submit this because I use https://github.com/datalevin/datalevin which uses https://github.com/datalevin/dtlvnative which uses JavaCPP. Both of their tests pass too when the latter is ported to this version of JavaCPP here datalevin/dtlvnative@master...markusalbertgraf:dtlvnative:FreeBSD.

Best regards

warning: deleting object of polymorphic class type 'JavaCPP__0003a_0003aCallback' which has non-virtual destructor might cause undefined behavior
The assumption being, that the tests intention is to compare the JavaCCP
Thread ID, which is the part after ID.

Callback from Thread[bytedeco#51,JavaCPP Thread ID 115907,5,main]
Callback from Thread[bytedeco#52,JavaCPP Thread ID 115907,5,main]
Callback from Thread[bytedeco#53,JavaCPP Thread ID 115907,5,main]
@saudet
Copy link
Copy Markdown
Member

saudet commented Feb 17, 2026

Looks good, but what does Loader.getPlatform() return? Is it "freebsd-x86_64" or something else?

@saudet
Copy link
Copy Markdown
Member

saudet commented Feb 17, 2026

And could you also add a freebsd-x86_64.properties even if it's just a copy of generic.properties?

@markusalbertgraf
Copy link
Copy Markdown
Contributor Author

Yes, Loader.getPlatform() returns "freebsd-x86_64".

@markusalbertgraf
Copy link
Copy Markdown
Contributor Author

With the platform/pom.xml I just repeated the patterns in there without really knowing what I am doing. Just delete it if it is not needed.

@saudet saudet merged commit ec58bf7 into bytedeco:master Feb 18, 2026
13 checks passed
@markusalbertgraf markusalbertgraf deleted the FreeBSD branch February 18, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants