Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is there no qmake-qt5 included in the qt5-default package

I installed qt5-default on my Odroid XU3 using the the sudo apt-get install qt5-default command and wanted to run qmake-qt5 using the terminal but it printed that this command is unknown. Then I looked in the usr/share/qt5 folder and noticed that there is only the doc-foder inside. I also looked in the usr/bin folder and could only find qmake-qt4 but no qmake-qt5. When I run the install command, I also read that some libraries will be installed, so I think, libraries are not the problem.

Next I tried to install qmake-q5t manually from this page https://launchpad.net/ubuntu/trusty/+package/qt5-qmake but then I got a message that there is a newer version of qmake-qt5 already installed. I searched the whole system using the find command for qmake-qt5 but couldn't detect it.

Last I also tried to add the ubuntu-sdk ppa using as described here https://askubuntu.com/questions/279421/how-can-i-install-qt-5-x-on-12-04-lts but this also didn't work out.

Does it have something to do with my Odroid or with Lubuntu? Is there any other way to install qmake-qt5?

I tried to compile and make with the already installed qt4 and this did work out using

qmake-qt4 -project
qmake-qt4
make
./helloworld 

I want do the same but only with qt5

Thanks in advance

like image 860
Greenfish Avatar asked Nov 04 '15 16:11

Greenfish


People also ask

Does qmake use qmake-qt5 or Qt4 by default?

I have both qt4 and qt5 on my Linux system. qt4 is used by default. What is a clean way to change that so that qmake uses qmake-qt5 by default? Show activity on this post. The system might have different meta packages that handle the default.

Is the CMake API compatible with Qt 5?

The semantics of the CMake API in Qt 5 and Qt 6 are largely compatible. However, up to Qt 5.14, all imported Qt library targets and commands contained the version number as part of the name. This makes writing CMake code that should work with both Qt 5 and Qt 6 somewhat cumbersome.

What's new in Qt5 15?

Qt 5.15 therefore introduced versionless targets and commands to enable writing CMake code that is largely agnostic to the different Qt versions. In addition to the existing imported targets, Qt 5.15 introduced versionless targets. That is, to link against Qt Core one can both reference Qt6::Core, or Qt::Core:

Where is qmake installed on Linux?

The qmake executable is installed in /usr/lib/<your_arch>/qt5/bin as qmake (no -qt5 suffix). You can check with qmake --version, it should report you a Qt version 5.x.x


1 Answers

The qmake executable is installed in /usr/lib/<your_arch>/qt5/bin as qmake (no -qt5 suffix).

You can check with qmake --version, it should report you a Qt version 5.x.x

like image 70
gengisdave Avatar answered Nov 15 '22 06:11

gengisdave