JNA does not support QNX
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
调研方向
从 Native.loadNativeDispatchLibraryFromClasspath 和 Native.loadNativeDispatchLibrary 开始,堆栈跟踪显示 JNA 正在查找 qnx-aarch32/libjnidispatch.so。检查如何针对平台和架构选择并打包 native 资源;完成的标准是 QNX ARM Cortex-A8 runtime 能够加载 JNA dispatch 库,然后加载用户的 .so。
由索引模型根据 Issue 内容生成。
描述
- Version of JNA and related jars ----> 5.12.1
- Version and vendor of the java virtual machine ----> 1.8.0_351
- Operating system ----> QNX
- System architecture (CPU type, bitness of the JVM) ----> ARM® Cortex™-A8
- 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)
- 主要语言
- Java
- 星标
- 8.9k
- 派生
- 1.7k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
java-native-access/jna 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
java-native-access/jna#1740 ·
-
难度 4/5 3-5 天 新手友好度 66/100
java-native-access/jna#1738 ·
-
难度 4/5 3-5 天 新手友好度 45/100
java-native-access/jna#1736 ·
-
难度 3/5 1-2 天 新手友好度 65/100
java-native-access/jna#1717 ·
-
Windows32Exception - The parameter is incorrect可能重新可做 @marktech0813 于 330 天前认领,目前没有进行中的 PR。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
java-native-access/jna#1700 · 11 条评论 ·
查看 java-native-access/jna 的全部 Issue
相似的 Issue
-
waiting-for-triage
难度 1/5 1 小时以内 新手友好度 72/100
spring-cloud/spring-cloud-openfeign#1443 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 84/100
ADORSYS-GIS/keycloak-oid4vp-plugin#221 ·
维护者通常 2 天内回复
-
status: team-only type: dependency-upgrade
难度 2/5 1-3 小时 新手友好度 65/100
spring-projects/spring-boot#52099 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
tchiotludo/akhq#3307 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
objectionary/jeo-maven-plugin#1885 ·
维护者通常 4 天内回复