Gazebo | Ignition | Community
Ask Your Question
0

Error when trying to run gazebo on macOS Catalina

asked 2020-04-15 09:40:53 -0600

fjp gravatar image

I try to run gazebo9 on macOS Catalina 10.15.2.

I followed the installation instructions, specifically:

brew tap osrf/simulation
brew install gazebo9
gazebo

When I try to launch gazebo I get the following error:

gazebo --verbose
Gazebo multi-robot simulator, version 9.13.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

Gazebo multi-robot simulator, version 9.13.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.0.21
[Msg] Publicized address: 192.168.0.21
[Msg] Could not load the Qt platform plugin "cocoa" in "/usr/local/Cellar/qt/5.14.1/plugins/" even though it was found.
[Err] [GuiIface.cc:123] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: cocoa, minimal, offscreen, webgl.

I tried to follow suggestions from this SO question by setting QT_QPA_PLATFORM_PLUGIN_PATH=/usr/local/Cellar/qt/5.14.1/plugins/ which is where qt 5 exists after installing it with homebrew. xquartz is also installed using homebrew and works when I enter xeyes.

I can also confirm that libqcocoa.dylib exists in /usr/local/Cellar/qt/5.14.1/plugins/platforms. And trying with gazebo11 results in the same error.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-04-15 20:39:43 -0600

fjp gravatar image

updated 2020-04-16 07:10:33 -0600

For me the solution is to export the path to

export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/local/Cellar/qt/5.14.1/plugins/platforms.

This makes sense somehow, as libqcocoa.dylib exists in /usr/local/Cellar/qt/5.14.1/plugins/platforms and not in /usr/local/Cellar/qt/5.14.1/plugins/.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-04-15 07:34:40 -0600

Seen: 733 times

Last updated: Apr 16 '20