Fazecast / jSerialComm

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

Libray validation failing on Mac OSX app #301

Closed derek-baxter closed 3 years ago

derek-baxter commented 4 years ago

This never happened before but all of a sudden I am now getting this error when running my complied Mac osx application:

java.lang.UnsatisfiedLinkError: /private/var/folders/0f/trlp6tp95qjbzm99ds8pt8zm0000gp/T/1590983115354-libjSerialComm.jnilib: dlopen(/private/var/folders/0f/trlp6tp95qjbzm99ds8pt8zm0000gp/T/1590983115354-libjSerialComm.jnilib, 1): no suitable image found.  Did find:
    /private/var/folders/0f/trlp6tp95qjbzm99ds8pt8zm0000gp/T/1590983115354-libjSerialComm.jnilib: code signature in (/private/var/folders/0f/trlp6tp95qjbzm99ds8pt8zm0000gp/T/1590983115354-libjSerialComm.jnilib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.

Is it possible to include the native libjSerialComm.jnilib and manually point to where it's located?

hedgecrw commented 3 years ago

This seems related to this issue: https://github.com/opencv/opencv/issues/15645

Please check that out and see if you are able to solve the problem. There is no way to manually specify the native library location.