Fazecast / jSerialComm

Platform-independent serial port access for Java
GNU Lesser General Public License v3.0
1.35k stars 287 forks source link

OpenBSD #392

Closed clx69 closed 2 years ago

clx69 commented 2 years ago

Hi is there any plan to support also OpenBSD ? I saw that FreeBSD is supported, but I have tried on OpenBSD and I get error at loading native library (as expected).

Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load native libraries /root/.jSerialComm/1642454992907-libjSerialComm.so or /root/.jSerialComm/1642454992907-backup-libjSerialComm.so with expected architectures: FreeBSD/x86_64 or FreeBSD/x86 at com.fazecast.jSerialComm.SerialPort.<clinit>(SerialPort.java:368)

hedgecrw commented 2 years ago

Let me see if I can get a cross-compiler set up for OpenBSD.

hedgecrw commented 2 years ago

Please test the following beta version and see if it works for you:

https://www.dropbox.com/t/9wgo19QSwSRuk78y

Serial port enumeration is not well-defined on OpenBSD unfortunately, so this library should auto-enumerate USB-based devices, and any physical serial ports will need to be opened by specifying their /dev/XXX location directly in getCommPort().

hedgecrw commented 2 years ago

This has now been officially released in v2.8.3. Please test and close issue once done. Thanks!

clx69 commented 2 years ago

It works !!! Thank you !!!