I’ve downloaded QT 5.2 mingw. Then i had trouble with QtCreator loading the plugings(compiled with mingw). After that i found that the QtCreator is built with MSVC 2010!!!!
So why in Qt 5.2 (which is built with Mingw), its QtCreator is built with MSVC?!
Probably because all Qt Creator releases are built once and repackaged in the various installers. It's not a good reason, and might even be a bad reason given your problem, but it's probably the reason. Note the Qt SDK is not meant to be used for actual Qt (Creator) development (you will use the git repositories for that), which is probably why nobody ever ran into this mismatch.
Note you can easily rebuild Qt Creator from source. It's as simple as
qmake ../qt-creator-3.0.0 -r
mingw32-make release
If you have a qt-creator-3.0.0-build directory next to the extracted source.
Related
I installed qt and qmake is using Qt version on 5.5.1.
qmake -v
version 3.0
Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu
so how can i update qt version on ubuntu 16 to 5.7.
It appears that the most recent version available in the repo is 5.5.1.
So the way to go would be to just go to the Qt site and download either the online or the offline installer. You can also get the source and build it yourself, but that's rather slow and not recommended unless you actually need a custom build.
The installer will also give you a maintenance tool you can use to add or remove features and update in the future.
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.
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.
I just installed Qt 5.2 package on ubuntu. I simply created a Qt widget application, and when I tried to build it, I got the following message:
Qt Creator needs a compiler set up to build. Configure a compiler in
kit options
I have tried several things, all of which were unsuccessful. I tried setting the compiler kit to
Desktop Qt 5.2.0 GCC 32bit (default)
However it didn't work
After that I set the compiler to
GCC (x86 32bit in use/bin)
However that didn't work either.
I also tried adding gcc manually and gave it the path
/usr/bin/g++-4.6
but it still didn't work.
This is what appears in there Qt Version tab
This is what I get when I remove the .pro.user file and restart the IDE, Whats the difference between configuring a project as Desktop and Desktop Qt 5.2.0 GCC 32bit?
Qt Creator needs a version of tools that are able to link against the Qt binaries that the downloaded package contains. In your case, the local toolchain and the binaries don't match. That means that you would actually have to build the Qt with your toolkit and make sure that QtCreator can find the built binaries.
The simpler way for Ubuntu is to use the packaged version of the tools; they play well with the already delivered binaries. Use sudo apt-get install qtcreator to install it with all the dependencies.
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.