我们正在尝试从 Fedora
机器为 powerpc
编译 maliit
框架。它给出以下警告
cc1plus: warning: include location "/usr/include/dbus-1.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
看来maliit
没有完全交叉编译,或者它需要交叉编译dbus-1.0
和glib-2.0 librar
。
如何解决?
最佳答案
您需要提供dbus-1.0
和glib-2.0
您正在交叉编译的架构。
为此,请在系统中安装这些交叉编译的库并使用选项
-L/path/to/your/ppc/libs/dir
和-I/path/to/your/ppc/headers
.
正如 R 在下面的评论中指出的那样,不要使用 #include <myheader.h>
对于您的 dbus 和 glib 特定 header ,您应该使用: #include "myheader.h"
关于c++ - "usr/include/dbus-1.0"在 Maliit 框架中交叉编译不安全,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24996357/