Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt-creator 3.3.0 : compilation error

Qt-creator 3.3.0 : compilation error

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 2.0k Views
  • 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.
  • J Offline
    J Offline
    john_d
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • J Offline
      J Offline
      john_d
      wrote on last edited by
      #2

      up

      anyone ?

      Thanks

      1 Reply Last reply
      0
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • J Offline
          J Offline
          john_d
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • hskoglundH Offline
            hskoglundH Offline
            hskoglund
            wrote on last edited by
            #5

            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 :-(

            1 Reply Last reply
            0
            • J Offline
              J Offline
              john_d
              wrote on last edited by
              #6

              Thanks, I'll give it a try.

              Cheers

              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