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

Found unsuitable Qt version "5.12.8" from /usr/bin/qmake, this code requires Qt 4.x #136

Open
ashfaq92 opened this issue Jun 5, 2023 · 2 comments

Comments

@ashfaq92
Copy link

ashfaq92 commented Jun 5, 2023

I have been trying to install baxter simulator by following the official link. However, I am stuck in the Build Source section where catkin_make give following error:

CMake Error at /usr/share/cmake-3.16/Modules/FindQt4.cmake:1314 (message):
  Found unsuitable Qt version "5.12.8" from /usr/bin/qmake, this code
  requires Qt 4.x
Call Stack (most recent call first):
  baxter_simulator/baxter_sim_io/CMakeLists.txt:15 (find_package)

Here are my implementation details:

ROS Version: noetic (I figured everything else for neotic)
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:        20.04
Codename:       focal
@LiferLifer
Copy link

I have the same problem, try below:

Install Qt4:
https://ubuntuhandbook.org/index.php/tag/install-qt4-ubuntu-20-04/

(There are other methods to install, but many of resource are no longer valid. If you want, you can try build from the source:
https://download.qt.io/archive/qt/ )

The key point is to install qmake of qt4.

Then, view the current default version:

qmake -v

Open config:

cd /usr/lib/x86_64-linux-gnu/qt-default/qtchooser
sudo gedit default.conf

In it, edit "qt4" to "qt5".

And then, view the current default version again.

qmake -v

May.. can help(

@knorth55
Copy link
Member

knorth55 commented Jan 3, 2024

Please try this PR.
#132

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

3 participants