Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JNA does not support QNX #1533

Open
dk-asaokay opened this issue Jul 24, 2023 · 2 comments
Open

JNA does not support QNX #1533

dk-asaokay opened this issue Jul 24, 2023 · 2 comments

Comments

@dk-asaokay
Copy link

  1. Version of JNA and related jars ----> 5.12.1
  2. Version and vendor of the java virtual machine ----> 1.8.0_351
  3. Operating system ----> QNX
  4. System architecture (CPU type, bitness of the JVM) ----> ARM® Cortex™-A8
  5. Complete description of the problem
     In QNX, I am trying to load a .so file built from a C/C++ project, and I get the following error at the call to the Structure class before loading the library created in JNA.

java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/qnx-aarch32/libjnidispatch.so) not found in resource path (/opt/niagara/bin/ext/annotations-13.0.jar:/opt/niagara/bin/ext/bcstd/bcpkix-jdk15on-1.70.jar:/opt/niagara/bin/ext/bcstd/bcprov-jdk15on-1.70.jar:/opt/niagara/bin/ext/bcstd/bctls-jdk15on-1.70.jar:/opt/niagara/bin/ext/bcstd/bcutil-jdk15on-1.70.jar:/opt/niagara/bin/ext/encoder-1.2.3.jar:/opt/niagara/bin/ext/hsm-2.0.3.jar:/opt/niagara/bin/ext/javax.servlet-api-3.1.0.jar:/opt/niagara/bin/ext/jetty-all-compact3-9.4.48.v20220622.jar:/opt/niagara/bin/ext/jose4j-0.7.11.jar:/opt/niagara/bin/ext/kotlin-stdlib-1.4.20.jar:/opt/niagara/bin/ext/kotlin-stdlib-common-1.4.20.jar:/opt/niagara/bin/ext/niagarad.jar:/opt/niagara/bin/ext/nre.jar:/opt/niagara/bin/ext/okhttp-3.14.9.jar:/opt/niagara/bin/ext/okio-2.10.0.jar:/opt/niagara/bin/ext/slf4j-api-1.8.0.jar:/opt/niagara/bin/ext/tridium-JavaMail-1.5.2.1.jar:/opt/niagara/bin/ext/tridium-activation-1.0.jar)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1059)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:1015)
at com.sun.jna.Native.(Native.java:221)
at com.sun.jna.Structure.setAlignType(Structure.java:291)
at com.sun.jna.Structure.(Structure.java:208)
at com.sun.jna.Structure.(Structure.java:204)
at com.sun.jna.Structure.(Structure.java:191)
at com.sun.jna.Structure.(Structure.java:183)

@matthiasblaesing matthiasblaesing changed the title java.lang.UnsatisfiedLinkError: Unable to load library ----> JNA on QNX JNA does not support QNX Jul 24, 2023
@matthiasblaesing
Copy link
Member

Yes JNA does not support QNX. To fix this, a build environment must be accessible without charge, either provided as a remotely accessible service or (prefereably) an SDK usable on other platform (again preferable on linux linux).

@dk-asaokay
Copy link
Author

The readme has the following description, is it possible to build for QNX?

JNA will build on most linux-like platforms with a reasonable set of GNU tools and a JDK. See the native Makefile for native configurations that have been built and tested. If your platform is supported by libffi, then chances are you can build JNA for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants