qmake not properly recognized in QT Creator under Debian 11 "bullseye" - qt

I have installed QT Creator under Debian 11 "bullseye" (sudo apt-get -y install qtcreator), resulting in QT creator version 4.14.1.
Then I installed qmake (sudo apt install qt5-qmake), resulting in qmake version 5.15.2.
Now I want to add qmake in QT Creator options under Kits->QT versions, but it says
QT version is not properly installed, please run make install
and it refuses to work:
I have also another machine with Debian 12 bookworm, where I have been using this setup without any problem for several months (the yellow triangle in the screenshot below is only warning). On Debian 12 bookworm, the QT Creator is now version 8.0.1 (recently it was 6. something) and qmake version is 5.15.4:
Any idea how to make it work under Debian 11? I need to use the older environment, because I need specific older libraries to be build in the application.
I have tried almost everything that I found over the internet, but nothing helped. Usually the sources say to install qt5-default package, but this is not available in Debian 11.

Related

Qt Kit Selection

I recently installed Qt Creator on my Ubuntu machine using the command:
$ sudo apt install qtcreator
$ sudo apt install qt5-default
I also know that it is correctly installed through this
$ qtchooser -print-env
QT_SELECT="default"
QTTOOLDIR="/usr/lib/qt5/bin"
QTLIBDIR="/usr/lib/x86_64-linux-gnu"
However, the Qt Creator app still does not let me select a Kit because my Qt Versions is
still empty:
It seems there are others with the same issue but I cannot find a solution.
Ultimately, this all began because I was trying to make a project after installing Qt but I could not get passed this Kit Selection:
menu. I learned that the kit selection problem stems from not having the "Qt version" installed. However, I still cannot find a solution to how I can correctly install this Qt version.
you should install gcc and g++ compiler, look at Qt documentation
you should write this command
sudo apt-get install build-essential
Launch Qt Creator. Go to Tools > Options. Click Build & Run and select
tab Kit. Configure a compiler if it is not automatically detected.
this problem happens because of qt creator didn't understand and find the compiler, you should install it, after that it is usually automatically detected. if you have this issue again you should add it manually in the compiler section and in the kit section set compiler for your Desktop kit.
For adding manually compiler look at this QT Documentation
For adding manually kit look at this QT Documentation
For Adding Qt Versions manually
look at this QT Documentation
To add a Qt version:
Select Tools > Options > Kits > Qt Versions > Add.
Select the qmake executable for the Qt version that you want to add.
Select the Qt version to view and edit it.
In the Version name field, edit the name that Qt Creator suggests
for the Qt version.
In the qmake location field, you can change the qmake location.
If the Qt version is for QNX, enter the path to your installed QNX
SDK in the QNX SDK field.

No qmlscene installed: why is a warning sign next to Qt version on Build&Run options

I don't understand why there is a yellow warning sign next to my manually-added Qt version of qmake, i.e. Qt 5.9.1 (qt5), hovering over the warning sign gives no additional info:
In the above screen-shot, it is mentioned:
No qmlscene installed
Suggested by this answer, I installed this but it couldn't help:
$ sudo apt install qtdeclarative5-dev
Why is there a warning? How can I resolve it? Will it affect my builds/runs in a crucial way?
QmlScene is an external QML preview application for Qt Quick 2 views. Qt Quick 1 has a tool called QmlViewer for same purpose. It seems to be packed separately on debian based system. Following command should get the package.
sudo apt-get install qmlscene
For those that didn't install GCC, you can try uninstalling QT and then re-installing but with GCC. This was my resolution which worked for me on Linux Mint 19 with QT 5.7.

How to update Qt version that qmake uses?

I am trying to use qmake with QT 5.7.0 or later. I have installed QT 5.7.0. I have never installed another version of QT before or after this. When I run
qmake --version
it tells me it is using Qt 5.5.1. I don't know how it gets to this version, this version was never installed by me. I would like to update the version that qmake uses. How can I do that?

I need a minimal QT 5.0 Compiler install for Ubuntu 14.04 64bit

I need a minimal QT 5.0 Compiler install for Ubuntu 14.04 64bit
I just need to run qmake and have the QT includes, macros and libraries work under g++. I do not need The QT GUI development environment.
I tried the following...
wget http://download.qt.io/official_releases/qt/5.5/5.5.0/qt-opensource-linux-x64-5.5.0.run
... Follow instructions... At the end I get "Warning: QSqlDatabase: QMYSQL driver not loaded" which I need.
So I had to build from source, which takes overnight! (but does work)...
git clone git://code.qt.io/qt/qt5.git
cd qt5
git checkout 5.5
... Follow instructions... It does work.
I only want the compiler, not everything! How do I get that?
Alan.
Just install a package called build-essential + the Qt5 development packages you need (or qt5-default package). Ubuntu 14.04 has Qt 5.2.1 in the package repositories.
build-essential installs g++ tool chain and qt5-default installs the Qt5 development libraries.
Qt is not a compiler. It is a toolkit framework library coded for C++.
You need at least a C++11 compiler, like GCC (g++, at least 4.9) or Clang/LLVM (clang++)
You probably want to say that you don't need the QtCreator editor and IDE.

How can I install qt5 to Debian using commandline?

I need to install Qt5 to my Debian using commandline. How can I do that?
My system:
debian 2.6.30-vortex86mx-yh
I am trying to install using qt online installer from qt-project.org.
But after ./qt.run I get this error:
libstdc++.so.6 version glibcxx_3.4.11 not found
I try to install libstdc++6. but Debian said it is already newest version.
cat /etc/issue result is:
Debian 5.0
Also my debian has no gui. I have to do it using commandline.
Try this command for installing from default debian 5 repository:
#apt install g++
#apt install qtcreator
#apt install qtdeclarative5-dev
You should be able to run the qt-installer in a decent debian version. Get Version by:
cat /etc/issue
On older versions or "unsupported" versions you can still download the sources and build the libraries yourself, which is probably your way to go, since the vortex86-builds are pretty limited in compiler flags. Compiling is rather easy, depending on your needs. The configure script itself gives you a lot of hints regarding possible flags.
Another alternative is to find a user-managed repository that has QT5 for your debian version and add this repository to your sources.lst, so you could perform a apt-get install libqt5.

Resources