我正在尝试构建Qt创建者。 Qt lib在同一台机器上构建得很好。
我使用看似标准的
获得了qt创建者 git clone --recursive https://git.gitorious.org/qt-creator/qt-creator.git
在Qt 5.3中,我有:
g++ -c -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -Wall -W -D_REENTRANT -fPIC -DCORE_LIBRARY -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_DISABLE_DEPRECATED_BEFORE=0x040900 -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PRINTSUPPORT_LIB -DQT_HELP_LIB -DQT_WIDGETS_LIB -DQT_CONCURRENT_LIB -DQT_SQL_LIB -DQT_SCRIPT_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/opt/Qt5/mkspecs/linux-g++ -I/opt/qt-creator/src/plugins/coreplugin -I../../../src -I/opt/qt-creator/src/libs -I/opt/qt-creator/tools -I/opt/qt-creator/src/plugins -I/opt/qt-creator/src/shared/scriptwrapper -I/opt/Qt5/include -I/opt/Qt5/include/QtPrintSupport -I/opt/Qt5/include/QtHelp -I/opt/Qt5/include/QtWidgets -I/opt/Qt5/include/QtConcurrent -I/opt/Qt5/include/QtSql -I/opt/Qt5/include/QtScript -I/opt/Qt5/include/QtNetwork -I/opt/Qt5/include/QtGui -I/opt/Qt5/include/QtCore -I.moc/release-shared -I.uic -I. -o .obj/release-shared/tabpositionindicator.o /opt/qt-creator/src/plugins/coreplugin/tabpositionindicator.cpp
/opt/qt-creator/src/plugins/coreplugin/iwizardfactory.cpp: In member function ‘bool Core::IWizardFactory::isAvailable(const QString&) const’:
/opt/qt-creator/src/plugins/coreplugin/iwizardfactory.cpp:198: error: expected primary-expression before ‘[’ token
/opt/qt-creator/src/plugins/coreplugin/iwizardfactory.cpp:198: error: expected primary-expression before ‘]’ token
/opt/qt-creator/src/plugins/coreplugin/iwizardfactory.cpp:198: error: expected primary-expression before ‘*’ token
/opt/qt-creator/src/plugins/coreplugin/iwizardfactory.cpp:198: error: ‘s’ was not declared in this scope
make[3]: *** [.obj/release-shared/iwizardfactory.o] Error 1
任何线索如何避免错误是值得赞赏的。系统是CentOS 6(CERN克隆)
答案 0 :(得分:1)
无法保证HEAD能够构建。请查看发布分支/标记。