Error compiling Qt Creator 3.2.0
-
Hi,
I've received this error when trying to compile Qt Creator 3.2.0 from source:make[3]: Entering directory `/Work/DESENV/tools/qt-creator-opensource-src-3.2.0/src/plugins/coreplugin'
/usr/bin/g++44 -c -pipe -std=c++0x -O2 -fvisibility=hidden -fvisibility-inlines-hidden -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_NO_DEBUG -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../Qt-4.8.6/mkspecs/linux-g++ -I. -I../../../../Qt-4.8.6/include/QtCore -I../../../../Qt-4.8.6/include/QtNetwork -I../../../../Qt-4.8.6/include/QtGui -I../../../../Qt-4.8.6/include/QtSql -I../../../../Qt-4.8.6/include/QtScript -I../../../../Qt-4.8.6/include -I../../../../Qt-4.8.6/include/QtHelp -I../../../src -I../../libs -I/Work/DESENV/tools/qt-creator-opensource-src-3.2.0/tools -I../../plugins -I../../shared/scriptwrapper -I.moc/release-shared -I.uic -o .obj/release-shared/mainwindow.o mainwindow.cpp
mainwindow.cpp: In function ‘QListCore::IDocumentFactory* Core::Internal::getNonEditorDocumentFactories()’:
mainwindow.cpp:748: error: expected primary-expression before ‘[’ token
mainwindow.cpp:748: error: expected primary-expression before ‘]’ token
mainwindow.cpp:748: error: expected primary-expression before ‘*’ token
mainwindow.cpp:748: error: ‘factory’ was not declared in this scopeI've compiled the Qt 4.8.6 with no error. I'm using Red Hat 5 with g++44 (GCC) 4.4.7 20120313 (Red Hat 4.4.7-1)
What must I do to compile it?
-
Use a contemporary compiler. According to http://lists.qt-project.org/pipermail/qt-creator/2014-March/003417.html the required minimum to compile anything from the 3.2 branch is VS 2010, g++ 4.5 and clang 3.1.