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

rviz2: Cannot mix incompatible Qt library (5.15.15) with this library (5.15.14) #545

Open
okvik opened this issue Dec 14, 2024 · 2 comments

Comments

@okvik
Copy link
Contributor

okvik commented Dec 14, 2024

$ rviz2
[INFO] [1734180025.817295354] [rviz2]: Stereo is NOT SUPPORTED
[INFO] [1734180025.817322395] [rviz2]: OpenGl version: 4.6 (GLSL 4.6)
[INFO] [1734180025.837859214] [rviz2]: Stereo is NOT SUPPORTED
Cannot mix incompatible Qt library (5.15.15) with this library (5.15.14)
Aborted (core dumped)

This happens on both master and develop branches with Jazzy; I haven't tested other distros. Other Qt ROS stuff like rqt works fine for example.

I don't know what the root cause of the problem is, but it seems that something in my system configuration sets the Qt environment variables to 5.15.15, while rviz2 in the overlay expects 5.15.14.

I set my system configuration to follow nixpkgs from nix-ros-overlay, but it doesn't make a difference.

I managed to work around the issue by patching the environment variables in my development shell as follows:

export QT_PLUGIN_PATH=`echo $QT_PLUGIN_PATH | sed 's/qt-5.15.15/qt-5.15.14/g'`
@movefasta
Copy link
Contributor

Are you on NixOS?

@okvik
Copy link
Contributor Author

okvik commented Dec 15, 2024

Are you on NixOS?

Yes.

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

2 participants