1

我尝试了从 GIT 构建最新 QT5-Alpha(http://qt-project.org/wiki/Qt-5-Alpha http://qt-project.org/wiki/Building_Qt_5_from_Git)的说明,但在 Wayland 中面临编译文件

Ubuntu Linux 11.10

__make[4]: Entering directory `/home/xyz/build/newqt5/qt5/qtwayland/src/plugins/platforms/wayland'
g++ -c -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -Wall -W -fPIC -DQT_NO_LIBUDEV -DQ_PLATFORM_WAYLAND -DQT_NO_WAYLAND_XKB -DQT_WAYLAND_GL_SUPPORT -DQT_WAYLAND_WINDOWMANAGER_SUPPORT -DQ_FONTCONFIGDATABASE -DQT_COMPILES_IN_HARFBUZZ -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I/home/xyz/build/newqt5/qt5/qtbase/mkspecs/linux-g++ -I. -I/home/xyz/build/newqt5/qt5/qtbase/include/QtCore/5.0.0 -I/home/xyz/build/newqt5/qt5/qtbase/include/QtCore/5.0.0/QtCore -I/home/xyz/build/newqt5/qt5/qtbase/include/QtCore -I/home/xyz/build/newqt5/qt5/qtbase/include/QtGui/5.0.0 -I/home/xyz/build/newqt5/qt5/qtbase/include/QtGui/5.0.0/QtGui -I/home/xyz/build/newqt5/qt5/qtbase/include/QtGui -I/home/xyz/build/newqt5/qt5/qtbase/include/QtPlatformSupport/5.0.0 -I/home/xyz/build/newqt5/qt5/qtbase/include/QtPlatformSupport/5.0.0/QtPlatformSupport -I/home/xyz/build/newqt5/qt5/qtbase/include/QtPlatformSupport -I/home/xyz/build/newqt5/qt5/qtbase/include -I../../../shared -Igl_integration/xcomposite_share -I.moc/debug-shared -o .obj/debug-shared/qwaylandintegration.o qwaylandintegration.cpp

在 qwaylandshmwindow.h:45:0 包含的文件中,来自 qwaylandintegration.cpp:46: qwaylandwindow.h:112:18: 错误:'wl_callback_listener' 没有命名类型

make[4]: *** [.obj/debug-shared/qwaylandintegration.o] Error 1_

有什么办法可以克服这个问题吗?

4

1 回答 1

1

在此处下载 alpha 源包:http ://releases.qt-project.org/qt5.0/alpha/并使用 README 文件中的步骤。

git 中的 master 不是作为 alpha 发布的。构建脚本不同。您必须等待他们添加 alpha 标签才能从 git 中提取它。但是为什么不直接抓取 gz 文件呢?

于 2012-04-05T04:11:16.290 回答