Ask Your Question
0

building ROS on macOS 10.12 at `qt_gui_cpp`

asked 2016-12-14 22:16:58 -0600

ZOU Lu gravatar image

updated 2016-12-15 02:17:46 -0600

gvdhoorn gravatar image

Hi, there

I'm following the tutorial Installation Instructions for Kinetic in OS X to get ROS up and running on my Mac. However, I failed (and tried so much methods to solve, still failed) at building qt_gui_cpp when executing:

./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release

I bet the problems lie at the package sip (installed via brew) or catkin_ws/src/python_qt_binding, because the failed codes are generated from sip, related error output is like this (with VERBOSE=ON):

[  5%] Linking CXX shared library /Users/victor/Repo/ros/ros_catkin_ws/devel_isolated/qt_gui_cpp/lib/libqt_gui_cpp.dylib
cd /Users/victor/Repo/ros/ros_catkin_ws/build_isolated/qt_gui_cpp/src/qt_gui_cpp && /usr/local/Cellar/cmake/3.7.1/bin/cmake -E cmake_link_script CMakeFiles/qt_gui_cpp.dir/link.txt --verbose=ON
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -std=c++11 -fPIC -O3 -DNDEBUG -dynamiclib -Wl,-headerpad_max_install_names  -o /Users/victor/Repo/ros/ros_catkin_ws/devel_isolated/qt_gui_cpp/lib/libqt_gui_cpp.dylib -install_name /Users/victor/Repo/ros/ros_catkin_ws/devel_isolated/qt_gui_cpp/lib/libqt_gui_cpp.dylib CMakeFiles/qt_gui_cpp.dir/composite_plugin_provider.cpp.o CMakeFiles/qt_gui_cpp.dir/generic_proxy.cpp.o CMakeFiles/qt_gui_cpp.dir/plugin_bridge.cpp.o CMakeFiles/qt_gui_cpp.dir/plugin_context.cpp.o CMakeFiles/qt_gui_cpp.dir/plugin_descriptor.cpp.o CMakeFiles/qt_gui_cpp.dir/plugin_provider.cpp.o CMakeFiles/qt_gui_cpp.dir/recursive_plugin_provider.cpp.o CMakeFiles/qt_gui_cpp.dir/settings.cpp.o CMakeFiles/qt_gui_cpp.dir/__/__/include/qt_gui_cpp/moc_plugin.cpp.o CMakeFiles/qt_gui_cpp.dir/__/__/include/qt_gui_cpp/moc_plugin_bridge.cpp.o CMakeFiles/qt_gui_cpp.dir/__/__/include/qt_gui_cpp/moc_plugin_context.cpp.o /usr/local/lib/libboost_filesystem-mt.dylib /usr/local/lib/libtinyxml.dylib /Users/victor/Repo/ros/ros_catkin_ws/install_isolated/lib/libclass_loader.dylib /usr/local/lib/libPocoFoundation.dylib /usr/lib/libdl.dylib /Users/victor/Repo/ros/ros_catkin_ws/install_isolated/lib/librosconsole.dylib /Users/victor/Repo/ros/ros_catkin_ws/install_isolated/lib/librosconsole_log4cxx.dylib /Users/victor/Repo/ros/ros_catkin_ws/install_isolated/lib/librosconsole_backend_interface.dylib /usr/local/lib/liblog4cxx.dylib /usr/local/lib/libboost_regex-mt.dylib /Users/victor/Repo/ros/ros_catkin_ws/install_isolated/lib/librostime.dylib /Users/victor/Repo/ros/ros_catkin_ws/install_isolated/lib/libcpp_common.dylib /usr/local/lib/libboost_system-mt.dylib /usr/local/lib/libboost_thread-mt.dylib /usr/local/lib/libboost_chrono-mt.dylib /usr/local/lib/libboost_date_time-mt.dylib /usr/local/lib/libboost_atomic-mt.dylib /usr/local/lib/libconsole_bridge.dylib /Users/victor/Repo/ros/ros_catkin_ws/install_isolated/lib/libroslib.dylib /usr/local/lib/libboost_filesystem-mt.dylib /usr/local/lib/libboost_system-mt.dylib /usr/local/lib/QtWidgets.framework/QtWidgets /usr/local/lib/libtinyxml.dylib /Users/victor/Repo/ros/ros_catkin_ws/install_isolated/lib/libclass_loader.dylib /usr/local/lib/libPocoFoundation.dylib /usr/lib/libdl.dylib /Users/victor/Repo/ros/ros_catkin_ws/install_isolated/lib/librosconsole.dylib /Users/victor/Repo/ros/ros_catkin_ws/install_isolated/lib/librosconsole_log4cxx.dylib /Users/victor/Repo/ros/ros_catkin_ws/install_isolated/lib/librosconsole_backend_interface.dylib /usr/local/lib/liblog4cxx.dylib /usr/local/lib/libboost_regex-mt.dylib /Users/victor/Repo/ros/ros_catkin_ws/install_isolated/lib/librostime.dylib /Users/victor/Repo/ros/ros_catkin_ws/install_isolated/lib/libcpp_common.dylib /usr/local/lib/libboost_thread-mt.dylib /usr/local/lib/libboost_chrono-mt.dylib /usr/local/lib/libboost_date_time-mt.dylib /usr/local/lib/libboost_atomic-mt.dylib /usr/local/lib/libconsole_bridge.dylib /Users/victor/Repo/ros/ros_catkin_ws/install_isolated/lib/libroslib.dylib /usr/local/lib/QtGui.framework/QtGui /usr ...
(more)
edit retag flag offensive close merge delete

Comments

Please note: ROS Answers does not use (Github flavoured) Markdown, at least not for formatting code blocks (ie: three backticks won't work). Please use the Preformatted Text button (the one with 101010 on it) next time. Just select the code or console copy/paste and click the button.

Thanks.

gvdhoorn gravatar imagegvdhoorn ( 2016-12-15 02:31:01 -0600 )edit

1 Answer

Sort by Ā» oldest newest most voted
0

answered 2017-01-15 09:18:57 -0600

dischu gravatar image

I ran into the same problem. sipconfig generates the Makefile. Therefore, tweaking cmake flags does not work. It seems, homebrew's current (bottled) version of sip (418.1) is not fully compatible with homebrew's current version of qt5 (5.7.1_1). I finally ended up editing the configuration in sipconfig.py. The changes I made to

/usr/local/Cellar/sip/4.18.1/lib/python2.7/site-packages/sipconfig.py

are: Inside _pkg_config

  'platform':           'macx-clang++',

and

  'qt_framework':       1,

Inside _default_macros

  'CXXFLAGS':                 '-pipe -std=c++11',

With these changes, the generated Makefiles worked.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-12-14 21:52:11 -0600

Seen: 413 times

Last updated: Jan 15 '17