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. Same problem different compiler -- Need qmake to specify the "-std" flags when invoking g++
Qt 6.11 is out! See what's new in the release blog

Same problem different compiler -- Need qmake to specify the "-std" flags when invoking g++

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
10 Posts 3 Posters 1.9k 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.
  • T Offline
    T Offline
    theKid
    wrote on last edited by
    #1

    Re: [Setting QtCreator compiler build flags when using cmake](gcc on linux -std=c++14)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What compiler are you using ?
      Did you follow the propositions already made on that thread ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • T Offline
        T Offline
        theKid
        wrote on last edited by
        #3

        win32-g++-4.6

        I went into the .pro file and added

        QMAKE_CXXFLAGS += -std=c++1z
        

        But I still see the same problem where qmake is not generating Makefile with the -std=c++11 or -std=gnu++11

        So I am trying to force qmake to specify the "-std" flags when invoking g++

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          How did you install that compiler ?
          How did you install Qt ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • T Offline
            T Offline
            theKid
            wrote on last edited by
            #5

            Compiler:
            MinGW - Minimalist GNU for Windows
            mingw-get-setup.exe

            Qt:
            qt-opensource-windows-x86-mingw482-4.8.7.exe

            jsulmJ 1 Reply Last reply
            0
            • T theKid

              Compiler:
              MinGW - Minimalist GNU for Windows
              mingw-get-setup.exe

              Qt:
              qt-opensource-windows-x86-mingw482-4.8.7.exe

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @theKid Is there a reason why you're using Qt4?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • T Offline
                T Offline
                theKid
                wrote on last edited by
                #7

                Yes, the program I am trying to build requires Qt4 and specficly states that to not use Qt5

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Why not use the MinGW version that is provided with the Qt installer ?

                  What reason did they give to not use Qt 5 ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1
                  • T Offline
                    T Offline
                    theKid
                    wrote on last edited by theKid
                    #9

                    I use the QT prompt to compile because otherwise nothing happens when i do a

                    qmake
                    

                    I would like to do that but I haven't been able to figure out how to get it done. When I do any kind of qmake outside the Qt prompt.

                    They give no reason. They just inform you that you are not able to build with Qt 5

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      If you are outside of Qt's prompt you need to either use the full path to the qmake.exe file. Or you have to extend the PATH environment variable to include your build of Qt's bin folder.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      1

                      • Login

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