Qt Creator setup on Ubuntu 20.04 LTS
-
Hi, I'm trying to start using QT5 with QtCreator on a fresh install of Ubuntu 20.04.3 LTS. I've done the following install steps:
sudo apt install build-essential qtcreator qt5-default qtbase5-examples
I can open Qt Creator, but no examples show. Under Options > Qt Versions, there are no qmake versions in "Auto-detected" or "Manual". I find qmake in three locations on my system:
- there is a symlink /usr/bin/qmake which links to /usr/bin/qtchooser w/usr/bin/qmake (this is first in my path so it's what I see if I do
which qmake
). If I select this location, I see version name: "Qt %{Qt:Version} (qt5)", qmake location: /usr/lib/qt5/bin/qmake, no qmlscene installed. - there is a symlink /usr/lib/x86_64-linux-gnu/qt5/bin/qmake which links to /usr/bin/x86_64-linux-gnu-qmake. If I select this, I see version name: "Qt %{Qt:Version} (qt5)", qmake location: /usr/lib/x86_64-linux-gnu/qt5/bin/qmake, no qmlscene installed.
- there is /usr/lib/qt5/bin/qmake. If I select this, I see version name: "Qt %{Qt:Version} (qt5)", qmake location: /usr/lib/qt5/bin/qmake, no qmlscene installed.
In each case, after setting the qmake, the drop-down list in Examples shows Qt 5.12.8, but no examples appear. I appreciate any help on this!
Best,
Dow - there is a symlink /usr/bin/qmake which links to /usr/bin/qtchooser w/usr/bin/qmake (this is first in my path so it's what I see if I do
-
After additionally installing these dependencies:
sudo apt install qt5-doc qt5-doc-html qtbase5-doc-html
the examples appeared.To get some desktop examples to build, I also had to install these:
sudo apt install cmake clang-8 libclang1-8
and then make sure that the qt-version and cmake-tool were set in Tools > Options > KitsEdit: I ended up selecting /usr/lib/qt5/bin/qmake (I think the other qmake scripts would also work), the "no qmlscene installed" message is still present, but doesn't seem to be a problem.