Skip to content

Instantly share code, notes, and snippets.

View justinthomas's full-sized avatar

Justin Thomas justinthomas

View GitHub Profile
@justinthomas
justinthomas / render_system.patch
Last active March 9, 2017 14:20
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>
# NOTE: These instructions do not represent a robust, self-troubleshooting install; they
# are definitely not suitable for dumping to a giant script and running as one. If you
# use them, they should be run one at a time, with an eye out for errors or problems
# along the way.
#
# The #1 issue you are likely to encounter is with Homebrew or Python packages whose
# binary components link against system Python. This will result in runtime segfaults,
# especially in rviz. If you suspect this is occurring, you can attempt to remove and
# reinstall the offending packages, or go for the nuclear option--- empty your Cellar
# and site-packages folders and start over with brewed python from the beginning.