要为 NXJ 砖安装 leJos,我遵循文档教程,我将变量设置为:`
export NXJ_HOME=$HOME/leJOS_NXJ_0.9.1beta-3
export LEJOS_NXT_JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
export PATH=$HOME/mohand/leJOS_NXJ_0.9.1beta-3/bin:$PATH
`我去构建目录在终端中执行ant命令,构建失败并出现以下错误,我知道问题肯定在jni.h中,我试图修复它但我不能:
Buildfile: /home/mohand/leJOS_NXJ_0.9.1beta-3/build/build.xml
jlibnxt:
clean:
jlibnxt:
[cc] 1 total files to be compiled.
[cc] In file included from /home/mohand/leJOS_NXJ_0.9.1beta-3/build/libnxt/main_jlibnxt.c:30:0:
[cc] /home/mohand/leJOS_NXJ_0.9.1beta-3/build/libnxt/jlibnxt.h:2:10: fatal error: jni.h: Aucun fichier ou dossier de ce type
[cc] #include <jni.h>
[cc] ^~~~~~~
[cc] compilation terminated.
BUILD FAILED
/home/mohand/leJOS_NXJ_0.9.1beta-3/build/build.xml:87: The following error occurred while executing this line:
/home/mohand/leJOS_NXJ_0.9.1beta-3/build/libnxt/build.xml:39: gcc failed with return code 1
Total time: 0 seconds