9
votes

I installed QT-creator from a downloaded copy of qt-creator-linux-x86-opensource-2.6.1.bin using

sudo ./qt-creator-linux-x86-opensource-2.6.1.bin 

in Ubuntu 11.04

I tried to add QT versions in QT-Creator/Build/QT-versions configuration and it asked for a qmake executable.

I installed it using:

sudo apt-get install qt4-devel

which deployed qmake in /usr/bin/qmake

I selected it in QT-Creator/Build/QT-versions configuration as manual, Qt-4.7.2 (System) /usr/bin/qmake-qt4 but QT version is not properly installed, please run make install message appears and I can't use it in QT-Creator/Build/Kits configuration.

How can I solve the problem and configure qmake for Qt-creator use in project creation?

4
this solved the issue of invalid QT version, but still getting back "No qmlviewer installed". It seems like a separate issue however.kchoi

4 Answers

21
votes

This solved the problem for me on recent Ubuntu version:

sudo apt-get install qt5-default
3
votes

Just so this no longer shows up as unanswered:

To install all qt-devel libraries, use

sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui
0
votes

In Linux Mint 18.3 (32 bit) it also solved the problem:

sudo apt-get install qt5-default

So that Qt5 (5.5.1) was installed ready-to-use as a kit in QtCreator.

Although to install the Qt 5.9.0 version I had to explicitly download the package from https://download.qt.io/official_releases/qt/5.9/5.9.0/single/ (2 Gb unpacked) .

Then I had to run this command in terminal:

cd /home/username/Downloads/qt-everywhere-opensource-src-5.9.0

Then this command:

./configure

Then this

make
0
votes

I was having this problem even after sudo apt-get install qt5-default (it was already installed).

However the version of QMake I had pointed to was in the Linux Processor SDK (02.00.02.11)

I fixed it by sourcing the environment setup before running qtcreator. The following shell script did it for me:

source /opt/ti/processor-sdk-linux-am335x-evm-02.00.02.11/linux-devkit/environment-setup
# substitute the location where the SDK is installed.

~/Qt5.9.0/Tools/QtCreator/bin/qtcreator -block
# substitute the location where QTCreator is installed