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. Why is Qt Creator for Windows built with MSVC++ and not MinGW gcc?
Forum Updated to NodeBB v4.3 + New Features

Why is Qt Creator for Windows built with MSVC++ and not MinGW gcc?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 3.4k 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.
  • R Offline
    R Offline
    Red Baron
    wrote on 29 Aug 2016, 15:58 last edited by
    #1

    Hi!

    First let me clarify that I know that the two (Qt Creator and Qt SDK) are two separate entities (even though the first uses the libraries of the second) and that Qt Creator can be used without the Qt SDK being installed on the system used.

    The Qt SDK comes with MinGW gcc and - unless build from source - the libraries themselves are built with it (not good to mix stuff made by multiple compilers). For my surprise (I've only recently started using Windows at work after a pause of a approx. 3-4 years) a couple of days ago while looking at a tutorial on developing plugins for the IDE I discovered this and I was (still am) pretty disappointed.

    I would like to know why Qt Creator is built with a compiler that is not (and cannot be for obvious reasons) shipped with the SDK which is to be used to develop plugins for it. This is counterproductive to say the least and I doubt that in terms of optimization (which one might be tempted to point out when it comes to comparing GCC with MSVC++ on Windows) the performance gain is big enough to make up for that (of course I might be wrong).

    While there is a relatively big chance that a Windows installation used for developing software has Windows SDK installed on it (or Visual Studio) in case of a multiplatform development this would not be the case. Hence a developer using Qt Creator is basically forced to install the whole Windows SDK just to create a hello world plugin for Qt Creator on Windows.

    1 Reply Last reply
    0
    • H Online
      H Online
      hskoglund
      wrote on 29 Aug 2016, 16:40 last edited by
      #2

      Hi, it's pretty easy to build your own flavor of Qt Creator, for example with another MSVC version than 2013 or MinGW, just download the source .zip file and open qtcreator.pro.

      (Download and compiling Qt Creator's source code is a process you have to go through anyway to build a plugin for Qt Creator, because you'll need the .h and .lib files, e.g. Core4.lib etc.)

      1 Reply Last reply
      1
      • C Offline
        C Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on 29 Aug 2016, 18:02 last edited by
        #3

        The Qt SDK comes with MinGW gcc

        That's only partially true. If you're talking about the online installer MinGW is an optional component. If you're talking about the offline packages then it only comes with the MinGW builds (obviously), not MSVC ones.
        So the difference is minimal - download MinGW from Qt Company or MSVC from Microsoft. In no case you need both.

        I was (still am) pretty disappointed

        Well, there are two major compilers for Windows and it would be waste of time and effort to maintain builds of Qt Creator done with two compilers so whichever you choose users of the other one will be disappointed. Such is life.

        This is counterproductive to say the least

        Well, to people using MinGW it might be. I'm using MSVC and have never used MinGW for anything major so it's very fortunate to me. See how this works? ;)

        Hence a developer using Qt Creator is basically forced to install the whole Windows SDK.

        As you said it yourself. There's a big chance that if you're using MSVC you already have Windows SDK installed. If you're writing plugins for a desktop app (Qt Creator) it's not surprising that you need a desktop SDK.
        If you don't want the Microsoft toolchain on your machine then just compile Qt Creator with MinGW, as @hskoglund suggested.

        H 1 Reply Last reply 29 Aug 2016, 18:21
        1
        • C Chris Kawa
          29 Aug 2016, 18:02

          The Qt SDK comes with MinGW gcc

          That's only partially true. If you're talking about the online installer MinGW is an optional component. If you're talking about the offline packages then it only comes with the MinGW builds (obviously), not MSVC ones.
          So the difference is minimal - download MinGW from Qt Company or MSVC from Microsoft. In no case you need both.

          I was (still am) pretty disappointed

          Well, there are two major compilers for Windows and it would be waste of time and effort to maintain builds of Qt Creator done with two compilers so whichever you choose users of the other one will be disappointed. Such is life.

          This is counterproductive to say the least

          Well, to people using MinGW it might be. I'm using MSVC and have never used MinGW for anything major so it's very fortunate to me. See how this works? ;)

          Hence a developer using Qt Creator is basically forced to install the whole Windows SDK.

          As you said it yourself. There's a big chance that if you're using MSVC you already have Windows SDK installed. If you're writing plugins for a desktop app (Qt Creator) it's not surprising that you need a desktop SDK.
          If you don't want the Microsoft toolchain on your machine then just compile Qt Creator with MinGW, as @hskoglund suggested.

          H Online
          H Online
          hskoglund
          wrote on 29 Aug 2016, 18:21 last edited by
          #4

          Hi, just want to add to what @Chris-Kawa said, building it with MinGW takes about 30 minutes and then you'll see this glorious About dialog box: Glorious image

          1 Reply Last reply
          1

          1/4

          29 Aug 2016, 15:58

          • Login

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