0

我正在尝试从 Ubuntu 16.04 为 ARM Linux 设备(Rockchip RK3066)交叉构建 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 页类似的错误消息,但没有一个有有效的答案。

提前非常感谢。

4

0 回答 0