Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Configure Qt5
Qt 6.11 is out! See what's new in the release blog

Configure Qt5

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 11.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.
  • G Offline
    G Offline
    GrahamL
    wrote on last edited by
    #1

    Hi
    I downloaded Qt5 and ran the following configure command
    configure -platform win32-g++
    This gave me the following error

    cc1plus.exe: error: unrecognized command line option "-fno-keep-inline-dllexport"
    mingw32-make: *** [tmp/obj/debug_shared/arch.o] Error 1

    What can I do to fix this?

    Thanks

    Graham

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      You need a GCC version >= 4.6 to build Qt5.

      You can find a recent version "here":http://sourceforge.net/projects/mingwbuilds/.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        GrahamL
        wrote on last edited by
        #3

        Hi
        Thanks for your quick reply
        I have downloaded the latest mingw compiler and the configure command ran successfully
        However, the build fails

        codecs\qtextcodec.cpp: In function 'void setup()':
        codecs\qtextcodec.cpp:269:16: error: expected type-specifier before 'QIconvCodec'
        codecs\qtextcodec.cpp:269:16: error: expected ';' before 'QIconvCodec'
        mingw32-make[4]: *** [tmp/obj/debug_shared/qtextcodec.o] Error 1
        mingw32-make[3]: *** [debug-all] Error 2
        mingw32-make[2]: *** [sub-corelib-make_first] Error 2
        mingw32-make[1]: *** [sub-src-make_first] Error 2
        mingw32-make: *** [module-qtbase-make_first] Error 2

        any idea on how to fix this?

        Thanks

        Graham

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lgeyer
          wrote on last edited by
          #4

          You are most probably using an outdated Qt5 (the mentioned error has been fixed in "Ic3c4ccce":https://codereview.qt-project.org/33691).

          Either download the latest sources or, as I would recommend, clone latest from git.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            simonmeaden
            wrote on last edited by
            #5

            I downloaded 32 bit windows mingw version of 5.0.1 yesterday and I get the same error when compiling my project.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              ad5xj
              wrote on last edited by
              #6

              I have the same problem exactly on Win XP. I downloaded the MinGW 32 bit version of Qt 5.0.1 install so MinGW, gcc, and g++ in the installed bin should all be up to date - I would think? ? ?

              Ken AD5XJ

              1 Reply Last reply
              0
              • A Offline
                A Offline
                ad5xj
                wrote on last edited by
                #7

                On another forum I found a single post that suggested to use the option arguments :

                @
                -no-qt3support CXXFLAGS="-fno-keep-inline-dllexport"
                @

                This worked on my system. It may work for yours as well Graham.

                Ken AD5XJ

                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