gpt4 book ai didi

linux - 生成错误 : QT Headers before X11

转载 作者:太空宇宙 更新时间:2023-11-04 09:37:14 26 4
gpt4 key购买 nike

我正在使用 Buildroot 为嵌入式系统创建 Rootfs

尝试构建 QT 时,出现此构建错误:

`compiling egl/qegl_qws.cpp
egl/qegl_qws.cpp:1:0: warning: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch [enabled by default]
/****************************************************************************
^
moc embedded/qsoundqss_qws.h
moc embedded/qcopchannel_qws.h
moc embedded/qdecorationplugin_qws.h
moc embedded/qdirectpainter_qws.h
moc embedded/qwsmanager_qws.h
In file included from /home/hamzah/buildroot/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/X11/Xlib.h:44:0,
from /home/hamzah/buildroot/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/EGL/eglplatform.h:118,
from /home/hamzah/buildroot/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/EGL/egl.h:36,
from egl/qegl_p.h:66,
from egl/qegl_qws.cpp:46:
../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:70:9: error: expected identifier before numeric constant
None = 0, // invalid event
^
../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:70:9: error: expected '}' before numeric constant
../../include/QtCore/../../src/corelib/kernel/qcoreevent.h:70:9: error: expected unqualified-id before numeric constant`

这是因为 None 在 X11 header 中被 #defined 为 0,这在用作枚举成员时会产生冲突。从互联网上,有人建议我将 X11 header 放在 QT header 之后。我已经在我能找到的地方试过了,但它并没有解决问题。我想我错过了一些文件

我尝试#undef 符号和#define 后来,但如预期的那样产生了更多的错误。有没有人以前处理过这个并且可以告诉我进行更改的确切位置,或者我是否必须自己浏览大量文件才能进行更改?

此外,如果您有任何使此任务变得简单的技巧,请分享。我什至很想知道所有 X11 头文件的名称

最佳答案

请向 Buildroot 社区报告您的错误,方法是向邮件列表发送电子邮件,或在项目错误跟踪器中提交错误。无论哪种情况,请确保包含 Buildroot 版本以及完整的 Buildroot .config 文件以重现问题。

关于linux - 生成错误 : QT Headers before X11,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25311908/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com