Skip to content

Instantly share code, notes, and snippets.

@justinthomas
Last active March 9, 2017 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinthomas/3d053aa586d09a56cee08e09e174edc0 to your computer and use it in GitHub Desktop.
Save justinthomas/3d053aa586d09a56cee08e09e174edc0 to your computer and use it in GitHub Desktop.
Patch for rviz on OSX when using PyQt5
--- ./src/rviz/ogre_helpers/render_system.cpp 2017-03-09 16:57:51.000000000 +0400
+++ ./src/rviz/ogre_helpers/render_system.cpp 2017-03-09 16:56:24.000000000 +0400
@@ -31,6 +31,7 @@
// This is required for QT_MAC_USE_COCOA to be set
#include <QtCore/qglobal.h>
+#define QT_MAC_USE_COCOA
#ifndef Q_OS_MAC
#include <X11/Xlib.h>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment