表说,在网上搜索了半天,没找到jna的编译文章。而官方的网页名又不明确,折腾了几次。后来还是发现了编译内容。
- 参考:
https://github.com/java-native-access/jna/blob/master/www/Contributing.md
- 安装依赖库
sudo apt install git ant openjdk-8-jdk make gcc # sudo apt install openjdk-11-jdk # 提示找不到 sudo apt install autotools
- 源码下载链接:
https://github.com/java-native-access/jna
git clone git@github.com:java-native-access/jna
- 编译
xport JAVA_HOME=${HOME}/tsjdk8-kylin-64 export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${JAVA_HOME}/jre/bin/lib ant dist test test-platform