Unsolved How to tell Qt which compiler to use
-
Hi, can someone please help me figure out how to tell Qt which compiler to use? I just installed latest Qt and tried to run an example, but it says "no compiler can produce code for Qt..." etc.
Under "Build and Run" it auto-detected MingGW (c:\minGW\bin\g++.exe) but apparently it wants a newer/different version? I tried reinstalling minGW (mysteriously,, it put it in C:\Program Files (x86)\mingw-w64\i686-5.2.0-posix-dwarf-rt_v4-rev0\mingw32\bin\g++.exe). Why it put it there ...and refer to posix, I have no idea. This doesn't sound right to me.
thank you!
-
Hi and welcome to devnet,
which version did you installed?? Online/Offline installer?
-
@mcosta Hi, thank you for the welcome.
I have installed:
Qt Creator 3.5.1
Based on Qt 5.5.1 (MSVC 2013, 32 bit)
I installed it using qt-unified-windows-x86-2.0.2-2-online.exe -
@pi_in_the_sky said:
Based on Qt 5.5.1 (MSVC 2013, 32 bit)
if you're using the MSVC version of Qt you need to install MS Visual Studio
-
@mcosta oh, ok! thanks for the tip. I was wondering what MSVC was :) OK, guess I''l try again from a new download...I didn't intend to use MSVC. I just want to use Qt/minGW.
Maybe I need to tell the Qt installer to ignore anything MSVC. There must be something lying around my computer making it think I use MSVC (I don't). I'll try uninstalling and then re-installed Qt unless you have a better suggestion.
thank you!!!
-
It looks like it's still installing the MSVC version of Qt. Do you know how to tell it not to?
-
On the Qt downloads page I found
Qt 5.5.1 for Windows 32-bit (MinGW 4.9.2, 1.0 GB) (info)Is there one for Windows 64-bit?
-
Hi,
at the moment no.
If you need 64bit version you have to build from sources -
@mcosta How strange. I thought I had installed Qt on my machine a couple months ago and it worked fine. I don't remember building it but maybe I did. Anyway it works fine on my Raspberry Pi but I wish I could run it on my PC too.
-
Do you really need a 64bit Qt version? If not just install MinGW 32bit version (in online installer you can select what you want to install).
-
@jsulm I don't understand how to do that. I'm running windows 7 Intel core i3 which I think is a 64-bit machine. Don't I need a 64-bit version of Qt?
-
I installed Qt usng qt-unified-windows-x86-2.0.2-2-online.exe
But this installed Qt configured as MSVC. But I want Qt configured for mingGW.
Is there a version of Qt online configured for mingGW? Or is there a way I can tell Qt that I want to use mingGW (already installed on my machine)?
-
By the way, on my Raspberry pi (running linux) I simply selected Options->Build&Run->Tool Chains to point Qt to minGW. Is there something similar to this for Windows7?
-
@pi_in_the_sky
In windows 7 , It is a similar way Tools->options->build and run . Check for kits tab and you can point to MinGW -
Windows x86_64 can run 32bit applications without any problems. In fact there is lots of 32bit software out there (like Firefox for example). In the online installer you can select Qt for MinGW and MinGW itself, just check the options the installer provides. Actually, the online installer suggests to install MinGW Qt by default, but check under Qt/Tools that the latest MinGW version is selected. The installer by default installs QtCreator as well. After installation QtCreator should auto-detect Qt and MinGW, if not configure a kit.