< 返回版块

jasper2007111 发表于 2023-09-07 17:59

我目前正在Mac OS上编译GTK4的Rust绑定的工程,会运行在PinePhone Pro这个手机上,按照官方的给的文档https://wiki.pine64.org/wiki/Cross-compiling#Installing_The_Toolchain

编译会报一系列如下的错误: own-linux-gnu/bin/ld.bfd: cannot find -lgdk_pixbuf-2.0 /usr/local/Cellar/aarch64-unknown-linux-gnu/11.2.0_1/toolchain/bin/../lib/gcc/aarch64-unknown-linux-gnu/11.2.0/../../../../aarch64-unknown-linux-gnu/bin/ld.bfd: cannot find -lgraphene-1.0 /usr/local/Cellar/aarch64-unknown-linux-gnu/11.2.0_1/toolchain/bin/../lib/gcc/aarch64-unknown-linux-gnu/11.2.0/../../../../aarch64-unknown-linux-gnu/bin/ld.bfd: cannot find -lgdk_pixbuf-2.0 collect2: error: ld returned 1 exit status

评论区

写评论
作者 jasper2007111 2023-09-10 17:04

这个问题最后解决了,是编译的时候缺少GTK的相关动态库的问题。交叉编译GTK的应用,相关的库实在是多。

1 共 1 条评论, 1 页