Setting up compiler in Qt 5.0.1 MSVC2010 - qt

I just installed Qt 5.0.1 MSVC2010 32bit, i need to configure the Kits and the compiler. I have installed minGW and its detected by Qt Automatically. But at Qt Version tab in Tools->Option->Build & Run menu, i get this:
No compiler can produce code for this Qt version
What should I do? which compiler I have to use? I can't build/run anything.

You should either use MSVS 2010 for your downloaded Qt or download the MinGW Qt distribution.

Related

A mess with Qt/Qwt versions - how to revert to original state?

I'm on Ubuntu 14.04 64-bit. I obviously made a mess by installing Qt Creator and Qt4 Designer. I've built and installed the Qwt (6.1.0) libraries (widgets) that are visible to Qt4 Designer but not to Qt Creator... I'm pretty sure it is the Qt (qmake) version that made these installations incompatible and messy...
The Qt Creator reports:
Qt Creator 3.0.1
Based on Qt 5.2.1 (GCC 4.8.2, 64 bit)
The Qt4 Designer reports:
Version 4.8.6
Both installations were done through synaptic utility. Later on, I've used an online installed from Qt project and installed another (opensource) version of Qt Creator (Based on Qt 5.3.2; GCC 4.6.1, 64 bit).
What I'd like to do is use Qwt widgets in Qt Creator and have a working version of Qt Designer (not it doesn't start; Segmentation fault).
Is there a way to wipe all Qt stuff and begin from scratch? Which directories, profiles, etc. should be erased?
Many thanks.
Assuming that you want to work with a Qt creator based on Qt 5.2 and you want to build an application using Qr 4.8.
a) build and install Qwt for Qt 4.8 - like always
b) build and install Qwt for Qt 5.2 ( maybe with enabling QwtDesignerSelfContained in qwtconfig.pri ).
Use qmake from the directory of the Qt version you want to build Qwt for.
Then all that's left to do is tell the creator where to find the plugin, that has been built for Qt 5.2 - f.e. by setting the QT_PLUGIN_PATH.

How to set a compiler in Qt?

I'm totally new with Qt and I downloaded the offline version " Qt 5.3.2 for Windows 64-bit (VS 2013, OpenGL, 573 MB)"
I'm unable to compile my project.
I have:
Qt Creator 3.2.1 (opensource)
Based on Qt 5.3.2 (MSVC 2010, 32 bit)
In my Build & Run, I have,
For the kit: Desktop Qt 5.3 MSVC2013 OpenGL 64bit
For Qt version: Qt 5.3 MSVC2013 OpenGL 64bit
and there is nothing for the compilers tab. I don't know what I should put in that section. What did I miss?
I got the following error message while trying to compile my project:
14:44:12: Configuration is faulty. Check the Issues view for details.
Error while building/deploying project TextFinder (kit: Desktop Qt 5.3
MSVC2013 OpenGL 64bit) When executing step "Make"
and
Qt creator needs a compiler set up to build. Configure a compiler in
the kit options.
Go to Tools->Options->Build & Run and on the Compilers tab click Add to add a new compiler. You can also manage kits on the Kits tab. Don't forget to setup qmake on the Qt Versions tab.
Also if you want the MSVC version of Qt you need to install Microsoft Visual Studio 2010 or 2013 depending on the version of Qt you use.
If you are a beginner I recommend you download the MinGW version from qt-project.org and everything should work just fine.
MinGW versions use the windows versions of GCC while VS uses Microsoft's compiler.

QT 5.2 has no kit or qmake with MingW after installation

I downloaded the QT 5.2 build for MingW/OpenGL build and installed it. When I run QTCreator and try to create a project, I can't set it up because there is no kit available to choose from. I have MingW installed, so I tried to point QT to this installation, but there is qmake as well missing. I'm not sure if the manual configuration of the compiler would suffice to have a kit to choose from, but that would be my expectation.
So the question is, how do I setup QT properly that it recognizes my MingW installation and how do I get qmake to continue with QT? After downloading a 600MB package I would have expected that it works out of the box.
OS is Windows 7 and my MingW uses gcc 4.8 so it should be the same version that QT brings in it's package as well.

Qt Creator 2.6.2 and Qt 4.8.4: Qt version is not properly installed

Windows 7: I have installed Qt 4.8.4 Win and Qt Creator 2.6.2 Win, VS2010 (from here). When I try to open a project (previously compiled with Qt 4.8.3 / Creator 2.5.2), it says I need a kit (no valid kit) and eventually I end up at Qt version is not properly installed. All is shown in the screenshots below.
I have checked some solutions:
SO QT version is not properly installed, please run make install is for Linux
Some say, I need to install Qt SDK, but where do I find this (this one contains older Creator / Qt versions), and what sense would the individual installers make if I need SDK?
Some say, I need to add Qt to path, but what exactly? Creator? The Qt 4.8.4, the qmake dir?
Somehow I fail with this make install, nothing happens.
I have installed the 5.0.1 including Creator 2.6.2 as one installation, this works. But when I then download 4.8.4. and try to add it as QT Version, same issue: Qt version is not properly installed
Any idea what I would need to do or install.
-- Edit -- List of trials ---
Added my Qt 4.8.4 and its qmake dir to PATH
Re-installed Qt in different order: Qt 4.8.4 first / Creator 2.6.2 thereafter
Opened Qt CMD Prompt qmake install (as in the suggestions): 4.8.4\install:1: Parse Error ('INSTALLING Qt Source Package Version 4.8.4.') Error processing project file: install
qmake install from Qt CMD. Runs 20 minutes, Laptop gets extremly hot, then it crashes
P:\Qt\Libs\4.8.4>qmake\qmake.exe install
QMAKESPEC has not been set, so configuration cannot be deduced.
Error processing project file: install
I had the same problem. Try to choose "qmake.exe" from the BIN folder, not the qmake folder, so in your case probably P:\Qt\Libs\4.8.4\bin\qmake.exe
Based on SO: How to install Qt on Windows after building? I eventually got to http://qt-project.org/doc/qt-4.8/install-win.html
Simply running configure solved it for me, I did not build, nothing else. The installer did apply several patches, so I still do not get why I have to run configure.

To avoid Qt Creator from source mistakes the version of Qt upon building

I got the following error when I try building Qt Creator from source.
user#host:/usr/share/qtcreator/qtcreator_build$ qmake -version
QMake version 2.01a
Using Qt version 4.8.2 in /usr/local/Trolltech/Qt-4.8.2/lib
user#host:/usr/share/qtcreator/qtcreator_build$ sudo qmake ../qtcreator_fromSrc/qtcreator.pro
Project MESSAGE: Cannot build Qt Creator with Qt version 4.6.2.
Project ERROR: Use at least Qt 4.7.4.
As shown, the Qt library in use above is 4.8.2, which should be qualifying ver 4.7.2. It's installed from source. How can I let the qtcreator installer recognize the right qt version?
My workaround was to copy the source of Qt Creator to the area that doesn't require super user permission. HTH.

Resources