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

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

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

Related

Facing "Could not find all of moc, rcc, and uic for Qt5" in omnet++ version 5.7. while installing

I followed every steps of installation manual while installing it. according to the manual, I need to type ./configure. Whenever I typed it, the problem occurred. Showing the exact line"Could not find all of moc, rcc, and uic for Qt5 -- nope, nope, nope"
Before running ./configure you must always source setenv and make sure that all required packages (i.e. qt-default) is installed.
You can try to install Qt5 to solve the problem
sudo apt-get install qt5-default qtcreator

Cant run qgis version Qt_5_PRIVATE_API not defined

I am running Ubuntu 18.04 and I cant seem to get qgis to run anymore. The error I get is:
/usr/bin/qgis.bin: relocation error: /usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5: symbol _ZN15QQmlMemoryScope5stateE version Qt_5_PRIVATE_API not defined in file libQt5Qml.so.5 with link time reference
my qmake version is:
QMake version 3.1
Using Qt version 5.9.5 in /usr/lib/x86_64-linux-gnu
I have tried to link to qt5 but that did not change anything.
sudo ln -snf ../../../../share/qtchooser/qt5-x86_64-linux-gnu.conf default.conf
You need to uninstall QGIS and reinstall with the latest stable release. Using sudo apt-get install qgis* python3-qgis* to install is not precisely the best method because of the wildcard. The official instructions suggest using: sudo apt install qgis qgis-plugin-grass.
The instructions for best installation procedure on Ubuntu for LTS releases is posted here.

Error cannot find -lsbml and -lstdc++ when compiling qt project

I would like to cross compile a qt project on raspberry. I finished all the installing steps and the configuration of qt creator. But when i tried but when i tried to compile an example project I got an error
cannot find -lsbml
cannot find -lstdc++
First make sure that these libs are already installed:
sudo apt-get install sbml
sudo apt-get install stdc++
I am not sure about the names, but you can check them via apt-cache like:
apt-cache search sbml | less
You can use this to get all packages which are related to the corresponding library. Choose the right package and install it via apt-get install ...
Now try again. When the compile-step still fails you need to specify the lib-directories in the .pro-file like:
LIBS += -L<Path_to_sbml> -lsbml -L<Path_to_stdc++> -lstdc++
Hope that helps you.

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.

in ubuntu 12.04 make cannot find Qt libraries

When I run make (after running qmake) I get the following error:
/usr/bin/ld: cannot find -lQtGui
/usr/bin/ld: cannot find -lQtCore
In synaptic it shows that I have installed libqtcore4 and libqtgui4.
There is no such directory as /usr/bin/ld.
Basically, I've installed the QtSDK, and QtCreator seems to work fine in that it can build the hello world program. But I want to be able to work from the CLI and run make. I suspect that I may need to redirect the make program to look elsewhere for QtGui and QtCore. If so, how do I find out where those libraries are? I'm running Ubuntu 12.04 and I've followed the advice of this page http://www.qtforum.org/article/28081/installing-qt-4-5-2-on-linux.html down to the last section where it talks about libraries. Any suggestions?
Install Qt using apt-get
sudo apt-get install libqt4-core libqt4-gui
or if you want everything
sudo apt-get install libqt4-*
The advice at http://www.qtforum.org/article/28081/installing-qt-4-5-2-on-linux.html is outdated and useless in your case since you have a recent version of Ubuntu. It leads to having two different versions of Qt side by side, which is technically possible but hard to manage.
You should install the qtcreator Ubuntu package and just delete the /opt/qtsdk... directory and undo the modifications suggested by the outdated instructions. It is essential that your PATH is not tweaked so that it's the Ubuntu version of qmake that is found when called from the command line.
If you still have compilation problems after that, they're likely to be solved by installing more packages, such as libqt4-dev or others Qt-related packages.
Also, /usr/bin/ld is not a directory, it's the linker program.

Resources