我尝试了构建最新QT5-Alpha的说明(http://qt-project.org/wiki/Qt-5-Alpha http://qt-project.org/wiki/Building_Qt_5_from_Git) 来自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_
有什么指示可以克服这个问题吗?
答案 0 :(得分:1)
在此处下载alpha源包:http://releases.qt-project.org/qt5.0/alpha/并使用自述文件中的步骤。
git中的master不是alpha版本。构建脚本是不同的。你必须等待他们添加alpha标签以从git中提取它。但为什么不抓住gz文件?