如何为ARM Linux设备交叉构建luajit-5.1?(尝试构建LÖVE框架)

我正在尝试为ARM Linux设备(Rockchip RK3066)从Ubuntu 16.04交叉构建 LÖVE(https://love2d.org)。

正如文档所述,我在Ubuntu上安装了所有依赖项,并能够构建它(作为测试用途,为Ubuntu构建)。 现在我要进行交叉构建。

在构建之前,我必须运行./configure。到目前为止,我已经能够获取到工具链的gcc编译器被接受,但当它寻找依赖项时,我会遇到这个错误:

checking for luajit5.1... no
checking for luajit51... no
checking for luajit... no
configure: error: Package requirements (luajit) were not met:

No package 'luajit' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables lua_CFLAGS
and lua_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

这可以通过为设备交叉构建luajit并将其添加到工具链二进制文件中来修复,或者我可以尝试让./configure脚本查找我在Ubuntu中安装的luajit吗?

如果是后者,是否有人可以指出正确的方向? 我已经打开了像20个类似错误消息的网页,但没有一个有有效的答案。

提前感谢您的帮助。

点赞