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

rviz_rendering build fails on MacOS jazzy (Qt issue) #1277

Open
scott-robotics opened this issue Sep 9, 2024 · 2 comments
Open

rviz_rendering build fails on MacOS jazzy (Qt issue) #1277

scott-robotics opened this issue Sep 9, 2024 · 2 comments
Assignees

Comments

@scott-robotics
Copy link

scott-robotics commented Sep 9, 2024

Bug report

Required Info:

  • Operating System:
    • MacOS 14.5 (M3)
  • Installation type:
    • Source (jazzy)

Steps to reproduce issue

Follow the instructions for iron or jazzy

colcon build --merge-install --symlink-install --packages-up-to rviz_rendering

Expected behavior

Build succeeded

Actual behavior

Build failed

In file included from /Users/scottrobotics/Code/workspaces/ros2_jazzy/build/rviz_rendering/include/rviz_rendering/moc_render_window.cpp:10:
In file included from /Users/scottrobotics/Code/workspaces/ros2_jazzy/build/rviz_rendering/include/rviz_rendering/../../../../src/ros2/rviz/rviz_rendering/include/rviz_rendering/render_window.hpp:36:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QObject:1:
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qobject.h:266:43: error: no template named 'QSlotObject' in namespace 'QtPrivate'
                           new QtPrivate::QSlotObject<Func2, typename QtPrivate::List_Left<typename SignalType::Arguments, SlotType::ArgumentCount>::Value,
                               ~~~~~~~~~~~^

Additional information

I can paste the full error log if useful. I'm also willing to help resolve this, just need to know where to poke

@Yadunund
Copy link
Member

Yadunund commented Sep 9, 2024

I cannot reproduce the issue on MacOS 14.6.1 (M1). But I also build with some additional flags so maybe you can try the same

colcon build  --packages-skip-by-dep python_qt_binding --cmake-args -DBUILD_TESTING=OFF -DINSTALL_EXAMPLES=ON -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_PREFIX_PATH=$(brew --prefix):$(brew --prefix qt@5):$(brew --prefix [email protected])  -DBUILD_TYPE=RelWithDebInfo -DFORCE_BUILD_VENDOR_PKG=ON

I also have these in my ~/.profile

export PATH="/opt/homebrew/opt/qt@5/bin:$(brew --prefix python)/libexec/bin:$(brew --prefix)/lib/python3.11/site-packages:$PATH"
export Qt5_DIR=$(brew --prefix qt@5)/lib/cmake

@Yadunund Yadunund transferred this issue from ros2/ros2 Sep 9, 2024
@wjwwood wjwwood self-assigned this Oct 3, 2024
@shenlebantongying
Copy link

I encountered the same error, and the reason appears to be some Qt headers from Qt installed from homebrew and Qt installed from the installer are conflicting.

I simply force uninstall the homebrew version and the problem is gone.

PS: I am an insanely random person from the internet. No idea what's this project, but Google bring me here.

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

4 participants