我目前正在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
评论区
写评论这个问题最后解决了,是编译的时候缺少GTK的相关动态库的问题。交叉编译GTK的应用,相关的库实在是多。