Skip to content

Remove pyqt from default binding order for macOS#118

Merged
mjcarroll merged 1 commit intoros-visualization:rollingfrom
srmainwaring:srmainwaring/no-sip-macos
Mar 1, 2023
Merged

Remove pyqt from default binding order for macOS#118
mjcarroll merged 1 commit intoros-visualization:rollingfrom
srmainwaring:srmainwaring/no-sip-macos

Conversation

@srmainwaring
Copy link
Copy Markdown
Contributor

This PR removes pyqt from the list of default bindings when running macOS ('Darwin').

Partial fix for #103. Details in #103 (comment) for accompanying changes required in https://github.com/ros-visualization/qt_gui_core.

The brew formula for pyside@2 is keg only, to build and run using PySide2 set the environment variables:

export CMAKE_PREFIX_PATH=/usr/local/opt/pyside@2:$CMAKE_PREFIX_PATH
export PATH=/usr/local/opt/pyside@2/bin:$PATH
export PYTHONPATH=$PYTHONPATH:/usr/local/opt/pyside@2/lib/python3.10/site-packages

- Suppress debug messages
- Remove pyqt from default binding order

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
@mjcarroll mjcarroll merged commit cacbd7b into ros-visualization:rolling Mar 1, 2023
@cottsay
Copy link
Copy Markdown
Member

cottsay commented Mar 2, 2023

I'm not entirely sure why yet, but this change regressed builds of qt_gui_cpp on RHEL 9. I see:

EDIT: Scratch that, something else caused the regression. Still investigating...

@quayerh
Copy link
Copy Markdown

quayerh commented Dec 8, 2024

This PR removes pyqt from the list of default bindings when running macOS ('Darwin').

Partial fix for #103. Details in #103 (comment) for accompanying changes required in https://github.com/ros-visualization/qt_gui_core.

The brew formula for pyside@2 is keg only, to build and run using PySide2 set the environment variables:

export CMAKE_PREFIX_PATH=/usr/local/opt/pyside@2:$CMAKE_PREFIX_PATH
export PATH=/usr/local/opt/pyside@2/bin:$PATH
export PYTHONPATH=$PYTHONPATH:/usr/local/opt/pyside@2/lib/python3.10/site-packages

This should be updated to

export CMAKE_PREFIX_PATH=/path/to/pyside@2:$CMAKE_PREFIX_PATH
export PATH=/path/to/pyside@2/bin:$PATH
export PYTHONPATH=$PYTHONPATH:/path/to/pyside@2/lib/python3.10/site-packages

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

Successfully merging this pull request may close these issues.

4 participants