Qt-creator-2.8.0 does not build against Qt 5.1.0 on RedHat cluster



  • I am getting the following error in my build log. Is qtcreator 2.8 not compatible with Qt 5.1.0?
    Thanks for any help.

    Details:
    The cluster is RedHat RHEL 6:
    uname -a
    Linux rzgpu2 2.6.32-358.11.1.2chaos.ch5.1.x86_64 #1 SMP Wed Jul 24 17:45:01 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux

    g++ -c -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DEXTENSIONSYSTEM_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 -DIDE_TEST_DIR="/tmp/dpkg-mkdeb.MPdzi5zdoJ/src/qt-creator-2.8.0-src" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_CONCURRENT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/local/tools/qt-5.1.0/mkspecs/linux-g++ -I. -I../../../src -I../../libs -I/tmp/dpkg-mkdeb.MPdzi5zdoJ/src/qt-creator-2.8.0-src/tools -I../../plugins -I/usr/local/tools/qt-5.1.0/include -I/usr/local/tools/qt-5.1.0/include/QtWidgets -I/usr/local/tools/qt-5.1.0/include/QtConcurrent -I/usr/local/tools/qt-5.1.0/include/QtGui -I/usr/local/tools/qt-5.1.0/include/QtCore -I.moc/release-shared -I.uic -o .obj/release-shared/pluginerrorview.o pluginerrorview.cpp
    cc1plus: warnings being treated as errors
    In file included from /usr/local/tools/qt-5.1.0/include/QtCore/qobject.h:56,
    from /usr/local/tools/qt-5.1.0/include/QtCore/qsharedpointer_impl.h:65,
    from /usr/local/tools/qt-5.1.0/include/QtCore/qsharedpointer.h:50,
    from /usr/local/tools/qt-5.1.0/include/QtCore/QSharedPointer:1,
    from api/../language/forward_decls.h:32,
    from api/project.h:32,
    from api/project.cpp:29:
    /usr/local/tools/qt-5.1.0/include/QtCore/qbytearray.h: In function 'int qRegisterNormalizedMetaType(const QByteArray&, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2::Defined && (! QMetaTypeId2::IsBuiltIn))>::DefinedType) [with T = qbs::Internal::InternalJob*]':
    /usr/local/tools/qt-5.1.0/include/QtCore/qbytearray.h:433: error: dereferencing pointer '<anonymous>' does break strict-aliasing rules
    /usr/local/tools/qt-5.1.0/include/QtCore/qbytearray.h:438: error: dereferencing pointer '<anonymous>' does break strict-aliasing rules
    /usr/local/tools/qt-5.1.0/include/QtCore/qarraydata.h:104: error: dereferencing pointer '<anonymous>' does break strict-aliasing rules
    /usr/local/tools/qt-5.1.0/include/QtCore/qgenericatomic.h:96: error: dereferencing pointer '<anonymous>' does break strict-aliasing rules
    /usr/local/tools/qt-5.1.0/include/QtCore/qbytearray.h:395: note: initialized from here



  • You can use creator 2.8 to develop apps with Qt 5.1.0. If you are building creator, I think you have to build against 4.8.4.



  • I think so too. I just wonder if this is intentional, a bug, or what!
    Anyhow thanks for the response!


  • Moderators

    Hi,

    AFAIK, Qt Creator can be built against both Qt 4.8 and Qt 5.1. Their unit tests have covered both versions for many months now.

    I'm not sure what's causing your issue.

    Could you use the precompiled version?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.