Closed NickNair closed 1 year ago
Hi @NickNair Were you able to install Groot on ROS2? I'm facing the next errors when trying to do it on ROS2 Galactic. Thanks in advanced
64%] Building CXX object CMakeFiles/behavior_tree_editor.dir/behavior_tree_editor_autogen/mocs_compilation.cpp.o In file included from /home/laura/Groot/bt_editor/sidepanel_monitor.h:5, from /home/laura/Groot/bt_editor/mainwindow.h:22, from /home/laura/Groot/build/behavior_tree_editor_autogen/EFDBK3ICJA/moc_mainwindow.cpp:9, from /home/laura/Groot/build/behavior_tree_editor_autogen/mocs_compilation.cpp:4: /usr/include/zmq.hpp:638:14: error: ‘ZMQ_BLOCKY’ was not declared in this scope; did you mean ‘ZMQ_NOBLOCK’? 638 | blocky = ZMQ_BLOCKY, | ^~~~~~~~~~ | ZMQ_NOBLOCK /usr/include/zmq.hpp:642:31: error: ‘ZMQ_THREAD_AFFINITY_CPU_ADD’ was not declared in this scope 642 | thread_affinity_cpu_add = ZMQ_THREAD_AFFINITY_CPU_ADD, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/zmq.hpp:643:34: error: ‘ZMQ_THREAD_AFFINITY_CPU_REMOVE’ was not declared in this scope 643 | thread_affinity_cpu_remove = ZMQ_THREAD_AFFINITY_CPU_REMOVE, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/zmq.hpp:644:26: error: ‘ZMQ_THREAD_NAME_PREFIX’ was not declared in this scope 644 | thread_name_prefix = ZMQ_THREAD_NAME_PREFIX, | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/zmq.hpp:645:17: error: ‘ZMQ_MAX_MSGSZ’ was not declared in this scope; did you mean ‘ZMQ_MAXMSGSIZE’? 645 | max_msgsz = ZMQ_MAX_MSGSZ, | ^~~~~~~~~~~~~ | ZMQ_MAXMSGSIZE /usr/include/zmq.hpp:652:18: error: ‘ZMQ_MSG_T_SIZE’ was not declared in this scope 652 | msg_t_size = ZMQ_MSG_T_SIZE | ^~~~~~~~~~~~~~ make[2]: *** [CMakeFiles/behavior_tree_editor.dir/build.make:95: CMakeFiles/behavior_tree_editor.dir/behavior_tree_editor_autogen/mocs_compilation.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:158: CMakeFiles/behavior_tree_editor.dir/all] Error 2 make: *** [Makefile:141: all] Error 2
Same issues here with Humble
Figured out the issue. It's a problem with linking. You need to modify the CMakeLists.txt from
SET(GROOT_DEPENDENCIES QtNodeEditor )
to
SET(GROOT_DEPENDENCIES QtNodeEditor curses ncursesw tinfo )
Thanks @austin-InDro! In my case it was a conflict with a previos version of the libzmq lib.
I tried building Groot in a ROS 2 workspace and I got the following error
These were the steps I followed before