PDA

View Full Version : Can't select qmake version in Qt Creator



Yes
21st October 2012, 16:06
Upon using Qt Creator the first time, you have to select Qt version (Tools->Options...->Build & Run->Qt Versions) by selecting a qmake executable (unless you're using Qt SDK where everything come pre-installed and already set up properly). I'm using Windows 7, and the first time I opened Qt Creator and selected the qmake.exe file that was located in the bin folder for Qt Library MinGW, it added the qmake file under "Manual" but it think it said something about that it couldn't create a toolchain for it, and the Qt version (the qmake file) was marked in red. I tried adding it a few more times by first removing the Qt version (the qmake file) and then adding it again, not knowing why it couldn't create the toolchain. Eventually, Qt Creator stopped adding the qmake file at all, and didn't say anything when I tried to open the qmake file. I tried running the "Build Debug Libraries" script that's located in the start menu folder for Qt Library MinGW, but I know this step isn't necessary when using Qt Library with Qt Creator and it didn't solve my problem; Qt Creator still wouldn't react when I was selecting the qmake executable. I also tried restarting the computer but that didn't help either. Then I uninstalled Qt Creator, removed the folder and reinstalled it again, but Qt Creator still wouldn't react when I selected the qmake executable.

So my question is, why does Qt Creator behave like this? How comes it has locked up completely and refuses to react when I select the qmake executable, and why wasn't it able to create the toolchain from the qmake executable (the file qmake.exe in the bin folder for Qt Library MinGW) back when it still hadn't locked up? And what should I do to solve both these problems?

wysota
21st October 2012, 16:51
Do you have the toolchain (aka compiler and stuff) available? Did you set it up in Qt Creator if it wasn't found automatically?

Yes
21st October 2012, 17:22
The compiler is available as I have MinGW installed on the computer. I don't know if I have any debugger; that would be if it comes with MinGW, which I don't know if it does. I haven't set any toolchain up manually in Qt Creator.

wysota
22nd October 2012, 08:20
I haven't set any toolchain up manually in Qt Creator.

So do it now and everything should work fine.

Yes
22nd October 2012, 22:53
When I do that Qt Creator crashes. Then when I open Qt Creator again it still says there is no valid Qt version. And when I go to Tool Chains the tool chain I selected has been duplicated for some reason, and the debugger isn't selected although I selected it. And still nothing happens when I manually choose Qt version. Yeah, everything seems to work fine now, thanks.

Added after 1 3 minutes:

Not trying to be rude, just a bit frustrated over why this isn't working.

wysota
22nd October 2012, 23:51
When I do that Qt Creator crashes.
Strange, never happened to me. Do you have Creator installed as part of QtSDK?


Not trying to be rude, just a bit frustrated over why this isn't working.
No problem, we're all trying to help. I know software can be hard at times :)

Yes
23rd October 2012, 20:55
Do you have Creator installed as part of QtSDK?

No, I only installed MinGW, Qt Library MinGW and Qt Creator to save some space on my hard drive.

wysota
23rd October 2012, 22:28
No, I only installed MinGW, Qt Library MinGW and Qt Creator to save some space on my hard drive.

You're not saving any space here since QtSDK is exactly what you installed (only that it's preconfigured to work).

marcot
24th November 2012, 19:35
Same thing here.

Qt Creator 2.6.0

"Tools" => "Options..." => "Build & Run" tag => "Qt Versions" tag.

Empty list. There is none, either listed under "auto-detected" or under "manual".
(nice auto-detection!)

I click on "add...".
It asks for a "qmake.exe".
In my manually installed QT 4.8.3 (mingw) there are two such files:
C:\Qt\4.8.3\qmake\qmake.exe
C:\Qt\4.8.3\bin\qmake.exe
(total mystery as to WHY...)

No matter which one I pick... NOTHING AT ALL HAPPENS.
Lists of QtVersions remains empty.

Nothing. It just doesn't like my "qmake.exe"s anymore...
I pick either one... no error messages, no complaints, no nothing, just STONEWALLS me.
List of "QT versions" remains empty.

Needless to say, I cannot compile anything because it complains having to QT Version in the kits (previously called tool chains, if I understand).

Tried a few things. Rebooted, deleted roaming QT files (to the effect of making it forget any kits, compilers, etc previously defined), messed with every option.



((Digression... now it has been three full days trying to install QT creator plus QT liberaries...
No avail. If this was done on purpose to give non paying users an hard time installing the thing, then, I must admit, it was REALLY well done.))

Yes
24th November 2012, 21:34
I took wysota's advice and installed Qt SDK instead, and it works like a charm. Although I of course think that the way I tried before should work too.