Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt-creator-2.8.0 does not build against Qt 5.1.0 on RedHat cluster

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

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 3 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wealthychef
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      steno
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wealthychef
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          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?

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved