Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt Creator 2.4.1 build on RHEL 4 fails



  • Hi

    I have succesfully built both Qt-4.8.0 and Qt-4.7.4 on my RHEL 4 system.
    Now I am trying to build Qt-Creator-2.4.1 as well, but it fails during compiling of the texteditor plugin:

    gmake[3]: Entering directory /share/apps/Qt-Creator-2.4.1/src/plugins/texteditor' g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DTEXTEDITOR_LIBRARY -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../Qt-4.7.4/mkspecs/linux-g++-64 -I/home/roha/software/qt-creator-2.4.1-src/src/plugins/texteditor -I../../../../Qt-4.7.4/include/QtCore -I../../../../Qt-4.7.4/include/QtNetwork -I../../../../Qt-4.7.4/include/QtGui -I../../../../Qt-4.7.4/include/QtXml -I../../../../Qt-4.7.4/include -I../../../src -I/home/roha/software/qt-creator-2.4.1-src/src/libs -I/home/roha/software/qt-creator-2.4.1-src/tools -I/home/roha/software/qt-creator-2.4.1-src/src/plugins -I/home/roha/software/qt-creator-2.4.1-src/src/libs/3rdparty/botan/build -I/home/roha/software/qt-creator-2.4.1-src/src/plugins/texteditor/generichighlighter -I/home/roha/software/qt-creator-2.4.1-src/src/plugins/texteditor/tooltip -I/home/roha/software/qt-creator-2.4.1-src/src/plugins/texteditor/snippets -I/home/roha/software/qt-creator-2.4.1-src/src/plugins/texteditor/codeassist -I.moc/release-shared -I.uic -I. -o .obj/release-shared/behaviorsettings.o /home/roha/software/qt-creator-2.4.1-src/src/plugins/texteditor/behaviorsettings.cpp In file included from /home/roha/software/qt-creator-2.4.1-src/src/plugins/texteditor/behaviorsettings.cpp:35: ../../../../Qt-4.7.4/include/QtCore/qglobal.h: In instantiation ofQForeachContainer<const QStringList&>':
    /home/roha/software/qt-creator-2.4.1-src/src/libs/utils/settingsutils.h:51: instantiated from here
    ../../../../Qt-4.7.4/include/QtCore/qglobal.h:2251: error: forming reference to reference type const QStringList&' ../../../../Qt-4.7.4/include/QtCore/qglobal.h:2254: error:const QStringList&' is not a class, struct, or union type
    ../../../../Qt-4.7.4/include/QtCore/qglobal.h:2254: error: const QStringList&' is not a class, struct, or union type /home/roha/software/qt-creator-2.4.1-src/src/libs/utils/settingsutils.h: In functionvoid Utils::fromSettings(const QString&, const QString&, const QSettings*, SettingsClassT*)':
    /home/roha/software/qt-creator-2.4.1-src/src/libs/utils/settingsutils.h:51: error: 'class QForeachContainer<const QStringList&>' has no member named 'i'
    /home/roha/software/qt-creator-2.4.1-src/src/libs/utils/settingsutils.h:51: error: 'class QForeachContainer<const QStringList&>' has no member named 'e'
    /home/roha/software/qt-creator-2.4.1-src/src/libs/utils/settingsutils.h:51: error: 'class QForeachContainer<const QStringList&>' has no member named 'i'
    /home/roha/software/qt-creator-2.4.1-src/src/libs/utils/settingsutils.h:51: error: 'class QForeachContainer<const QStringList&>' has no member named 'i'
    /home/roha/software/qt-creator-2.4.1-src/src/libs/utils/settingsutils.h: In function void Utils::fromSettings(const QString&, const QString&, const QSettings*, SettingsClassT*) [with SettingsClassT = TextEditor::BehaviorSettings]': /home/roha/software/qt-creator-2.4.1-src/src/plugins/texteditor/behaviorsettings.cpp:62: instantiated from here /home/roha/software/qt-creator-2.4.1-src/src/libs/utils/settingsutils.h:51: error: no matching function for call toQForeachContainer<const QStringList&>::QForeachContainer(const QStringList&)'
    ../../../../Qt-4.7.4/include/QtCore/qglobal.h:2249: note: candidates are: QForeachContainer<const QStringList&>::QForeachContainer(const QForeachContainer<const QStringList&>&)
    gmake[3]: *** [.obj/release-shared/behaviorsettings.o] Error 1
    gmake[3]: Leaving directory /share/apps/Qt-Creator-2.4.1/src/plugins/texteditor' gmake[2]: *** [sub-texteditor-make_default] Error 2 gmake[2]: Leaving directory/share/apps/Qt-Creator-2.4.1/src/plugins'
    gmake[1]: *** [sub-plugins-make_default-ordered] Error 2
    gmake[1]: Leaving directory `/share/apps/Qt-Creator-2.4.1/src'
    gmake: *** [sub-src-make_default-ordered] Error 2

    Please help!!!



  • Can anybody help me on this?


  • Moderators

    Sorry, I never tried to build creator on such an old system. My guess would be that libstdc++ or g++ are too old and do not yet support something we do.

    You will need to try and work around the issue by changing the code.


Log in to reply