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. Include another MinGW compiler into Qt creator

Include another MinGW compiler into Qt creator

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
mingw 7.2.0qt creatorcompiler setupnon-qt projects
6 Posts 2 Posters 2.8k 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.
  • K Offline
    K Offline
    koahnig
    wrote on 20 Dec 2017, 19:15 last edited by koahnig
    #1

    I have just dowloaded and installed from https://sourceforge.net/projects/mingw-w64/?source=typ_redirect

    The installation has been performed plain without any other changes.

    c:\MinGW64\mingw-w64\i686-7.2.0-posix-dwarf-rt_v5-rev1\mingw32\bin>g++ --version
    g++ (i686-posix-dwarf-rev1, Built by MinGW-W64 project) 7.2.0
    

    Since I do not intend to compile Qt libs based on this compiler I have no qmake available yet.

    However, I like to use it for some tests through Qt creator for non-Qt projects.

    Does anybody know how to setup the compiler in Qt creator?

    Vote the answer(s) that helped you to solve your issue(s)

    A 1 Reply Last reply 20 Dec 2017, 19:25
    0
    • K koahnig
      20 Dec 2017, 19:15

      I have just dowloaded and installed from https://sourceforge.net/projects/mingw-w64/?source=typ_redirect

      The installation has been performed plain without any other changes.

      c:\MinGW64\mingw-w64\i686-7.2.0-posix-dwarf-rt_v5-rev1\mingw32\bin>g++ --version
      g++ (i686-posix-dwarf-rev1, Built by MinGW-W64 project) 7.2.0
      

      Since I do not intend to compile Qt libs based on this compiler I have no qmake available yet.

      However, I like to use it for some tests through Qt creator for non-Qt projects.

      Does anybody know how to setup the compiler in Qt creator?

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 20 Dec 2017, 19:25 last edited by
      #2

      @koahnig (Disclaimer: I have never done something like this).

      You will have to add the compiler to Tools -> Options -> Build&Run -> Compilers first.

      A blog post for CMake may help you: https://blog.afach.de/?p=659

      It should be possible to achive the same using Qbs and Makefile-based projects.

      If you want to use QMake, that you will have to build at least qmake (maybe qtbase) with this compiler. Afterwards you should be able to use this compiler in QMake-based (non-Qt) projects also.

      Qt has to stay free or it will die.

      K 1 Reply Last reply 20 Dec 2017, 21:05
      2
      • A aha_1980
        20 Dec 2017, 19:25

        @koahnig (Disclaimer: I have never done something like this).

        You will have to add the compiler to Tools -> Options -> Build&Run -> Compilers first.

        A blog post for CMake may help you: https://blog.afach.de/?p=659

        It should be possible to achive the same using Qbs and Makefile-based projects.

        If you want to use QMake, that you will have to build at least qmake (maybe qtbase) with this compiler. Afterwards you should be able to use this compiler in QMake-based (non-Qt) projects also.

        K Offline
        K Offline
        koahnig
        wrote on 20 Dec 2017, 21:05 last edited by
        #3

        @aha_1980

        Thanks for this link.

        I had started out already with adding the compiler, but struggled with the ABI choices. The blog does not give details about this too.

        All my experience in recent years is with using qmake for building projects in Qt creator. I am a bit hesitant to add another tool such as CMake if not absolutely required.

        Vote the answer(s) that helped you to solve your issue(s)

        A 1 Reply Last reply 20 Dec 2017, 21:18
        0
        • K koahnig
          20 Dec 2017, 21:05

          @aha_1980

          Thanks for this link.

          I had started out already with adding the compiler, but struggled with the ABI choices. The blog does not give details about this too.

          All my experience in recent years is with using qmake for building projects in Qt creator. I am a bit hesitant to add another tool such as CMake if not absolutely required.

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 20 Dec 2017, 21:18 last edited by
          #4

          @koahnig said in Include another MinGW compiler into Qt creator:

          All my experience in recent years is with using qmake for building projects in Qt creator. I am a bit hesitant to add another tool such as CMake if not absolutely required.

          Full ack from my side - even if qmake has disadvanteges, it most often does its job. So I think the way to go is to compile qtbase with this MinGW compiler or find a pre-compiled Qt version matching the compiler. As said, I cannot really help you here.

          Qt has to stay free or it will die.

          K 1 Reply Last reply 22 Dec 2017, 13:30
          0
          • A aha_1980
            20 Dec 2017, 21:18

            @koahnig said in Include another MinGW compiler into Qt creator:

            All my experience in recent years is with using qmake for building projects in Qt creator. I am a bit hesitant to add another tool such as CMake if not absolutely required.

            Full ack from my side - even if qmake has disadvanteges, it most often does its job. So I think the way to go is to compile qtbase with this MinGW compiler or find a pre-compiled Qt version matching the compiler. As said, I cannot really help you here.

            K Offline
            K Offline
            koahnig
            wrote on 22 Dec 2017, 13:30 last edited by
            #5

            @aha_1980

            Thanks for your suggestions. I have decided to compile Qt with the new compiler just to include it to creator.
            Was quite easy and possibly less of struggle than trying to use CMake.

            Vote the answer(s) that helped you to solve your issue(s)

            A 1 Reply Last reply 22 Dec 2017, 13:46
            0
            • K koahnig
              22 Dec 2017, 13:30

              @aha_1980

              Thanks for your suggestions. I have decided to compile Qt with the new compiler just to include it to creator.
              Was quite easy and possibly less of struggle than trying to use CMake.

              A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 22 Dec 2017, 13:46 last edited by
              #6

              @koahnig said in Include another MinGW compiler into Qt creator:

              @aha_1980

              Thanks for your suggestions. I have decided to compile Qt with the new compiler just to include it to creator.
              Was quite easy and possibly less of struggle than trying to use CMake.

              Cool!

              Qt has to stay free or it will die.

              1 Reply Last reply
              0

              1/6

              20 Dec 2017, 19:15

              • Login

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