Qt-creator 3.3.0 : compilation error



  • hi guys

    I can't install qt creator latest revision #3.3.0 on rhel 6.5. Here's what I got :

    @
    codegeneration.cpp: In function ‘void Utils::writeQtIncludeSection(const QStringList&, const QStringList&, bool, bool, QTextStream&)’:
    codegeneration.cpp:109: error: expected primary-expression before ‘[’ token
    codegeneration.cpp:109: error: expected primary-expression before ‘]’ token
    codegeneration.cpp:109: error: expected primary-expression before ‘const’
    codegeneration.cpp:109: error: expected ‘;’ before ‘{’ token
    codegeneration.cpp:111: error: expected primary-expression before ‘[’ token
    codegeneration.cpp:111: error: expected primary-expression before ‘]’ token
    codegeneration.cpp:111: error: expected primary-expression before ‘const’
    codegeneration.cpp:111: error: expected ‘;’ before ‘{’ token
    In file included from codegeneration.cpp:33:
    algorithm.h: At global scope:
    algorithm.h: In instantiation of ‘C<typename Utils::<unnamed>::RemoveCvAndReference<decltype (declval<F>()(declval<typename Utils::<unnamed>::ContainerType<SC>::ElementType>()))>::type> Utils::transform(const SC&, F) [with C = QSet, SC = QStringList, F = std::function<QString(const QString&)>]’:
    codegeneration.cpp:113: instantiated from here
    algorithm.h:318: sorry, unimplemented: mangling template_id_expr
    algorithm.h:318: sorry, unimplemented: mangling template_id_expr
    @

    I'm using the following :

    • gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)

    • qt-everywhere-opensource-src-5.4.,0compiled from sources with the following:
      @./configure -opensource -confirm-license -no-dbus -no-xcb@

    The configuration I use to compile qt-creator is this one:

    @
    export LDFLAGS="-Wl,-rpath,'/path/to/qtbase/lib'"

    export PATH=/path/to/qt/binaries:$PATH

    cd qt-creator-opensource-src-3.3.0

    qmake -r && make
    @

    Any help appreciated ;)

    Thanks



  • up

    anyone ?

    Thanks



  • Hi, gcc 4.4.6 has a problem compiling that template ... auto transform( ... from algorithm.h. think it's "this bug":https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48051 and it's fixed in gcc 4.7



  • hi

    Thank you very much for you answer, this is good to know ;)

    Do you know which most recent version of Qt-Creator I could use with gcc 4.4.6 ?

    cheers



  • Hmmm, gcc 4.4.6 was released in April 2011, so maybe try Qt 5.0, it was released in July 2013. If that works, you could then try Qt 5.1 or 5.2.
    And if Qt 5.0 doesn't compile, then you'll have go back to Qt 4.8 or 4.7 :-(



  • Thanks, I'll give it a try.

    Cheers


Log in to reply
 

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