Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Mac 版本 10.9,我正在尝试构建 LuaJava。我构建 Lua 5.0 没有问题,但是在使用本教程时出现此错误:
In file included from src/c/luajava.c:39: src/c/luajava.h:2:10: fatal error: 'jni.h' file not found #include <jni.h>
当我运行 make 时从终端。我追踪了 jni 标头,但现在我不知道如何处理它/将它放在哪里以便找到它。
要使包含问题消失,请替换
INCS= -I$(JDK)/include -I$(JDK)/include/linux -I$(LUA_INCLUDES)
和
INCS= -I/System/Library/Frameworks/JavaVM.framework/Headers -I$(LUA_INCLUDES)
在名为的文件中config
config