Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt version issue? #59

Closed
atyshka opened this issue Mar 19, 2019 · 3 comments
Closed

Qt version issue? #59

atyshka opened this issue Mar 19, 2019 · 3 comments

Comments

@atyshka
Copy link

atyshka commented Mar 19, 2019

I'm trying to compile from source on ROS Melodic and the build fails since I don't have QT4. Since Ubuntu 18.04 (and therefore Melodic) uses Qt 5, how can I get this to compile?

CMake Error at /usr/share/cmake-3.10/Modules/FindQt4.cmake:1320 (message):
  Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
  hector_slam/hector_geotiff/CMakeLists.txt:12 (find_package)
@GabrielHuettenberger
Copy link

You can install QT 4 in melodic, using sudo apt install qt4-default

@rituraj-01
Copy link

As Ubuntu now uses QT5 by default, you can add QT4 to Ubuntu via third party PPA:
to install QT4-
sudo add-apt-repository ppa:rock-core/qt4
sudo apt update
sudo apt install qt4-default

Now you can catkin_make the hector slam package without the QT error.

@nesi73
Copy link

nesi73 commented Feb 16, 2023

My environment is Ubuntu 22.04.1 and its worked for me:

sudo add-apt-repository ppa:ubuntuhandbook1/ppa
sudo apt-get update
sudo apt-get install qt4-dev-tools libqt4-dev libqtcore4 libqtgui4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants