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. Compile with gcc 4.7 failed[solved]
Forum Updated to NodeBB v4.3 + New Features

Compile with gcc 4.7 failed[solved]

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 4 Posters 2.5k 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.
  • S Offline
    S Offline
    syrianzoro
    wrote on last edited by
    #1

    Gcc 4.7 is conformant compiler with c++11 , so I want to use latest version of qt with this compiler .
    I tried to compile but some errors were issued . please how can I do that

    Qt is the future

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Please fix the errors and provide a patch via "Gerrit":http://codereview.qt-project.org/ .

      Sorry, but with the information you provide that is the only answer that I can give.

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

        [quote author="syrianzoro" date="1347350273"]I tried to compile but some errors were issued .[/quote]
        Like Tobias said, we need more information before we can help you:

        Compile what? -- Compile Qt, or compile your app?

        What errors were issued?

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

        1 Reply Last reply
        0
        • S Offline
          S Offline
          syrianzoro
          wrote on last edited by
          #4

          Current Mingw version of Qt4.8.2 works fine with Mingw 4.4 , there is no Qt version for mingw say 4.7

          Qt is the future

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

            Yes, Qt only supports GCC 4.4 for now -- there's no support for GCC 4.7 yet

            The DLLs from the website were compiled with GCC 4.4

            GCC 4.4 and GCC 4.7 are incompatible. If your app is compiled with GCC 4.7, you cannot link it to Qt DLLs which were compiled with GCC 4.4

            Solution: Use GCC 4.7 to compile Qt yourself. See this thread for details: http://qt-project.org/forums/viewthread/20105/

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

            1 Reply Last reply
            0
            • S Offline
              S Offline
              syrianzoro
              wrote on last edited by
              #6

              thank you JKSH

              Qt is the future

              1 Reply Last reply
              0
              • sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #7

                Or consider an early move to Qt5, which actually benefits largely from C++11 features in GCC 4.7.

                (Z(:^

                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