@小鱼 哦哦,好的
重要提示
鱼香小铺正式开业,最低499可入手一台能建图会导航的移动机器人,淘宝搜店:鱼香ROS 或点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
chestnutl 发布的最新帖子
-
使用catkin_make编译时提示boost下的thread出错,请问要怎么解决
In file included from /usr/include/boost/thread/detail/platform.hpp:17, from /usr/include/boost/thread/mutex.hpp:12, from /opt/ros/noetic/include/ros/publisher.h:36, from /opt/ros/noetic/include/ros/node_handle.h:32, from /opt/ros/noetic/include/ros/ros.h:45, from /home/chestnutl/xiaoche_ws/src/opencv_object_tracking/src/filter2move_frame_sum.cpp:1: /usr/include/boost/config/requires_threads.hpp:47:5: error: #error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread (Linux), -pthreads (Solaris) or -mthreads (Mingw32)" 47 | # error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread (Linux), -pthreads (Solaris) or -mthreads (Mingw32)" | ^~~~~ In file included from /usr/include/boost/thread/mutex.hpp:12, from /opt/ros/noetic/include/ros/publisher.h:36, from /opt/ros/noetic/include/ros/node_handle.h:32, from /opt/ros/noetic/include/ros/ros.h:45, from /home/chestnutl/xiaoche_ws/src/opencv_object_tracking/src/filter2move_frame_sum.cpp:1: /usr/include/boost/thread/detail/platform.hpp:71:9: error: #error "Sorry, no boost threads are available for this platform." 71 | # error "Sorry, no boost threads are available for this platform." | ^~~~~ In file included from /opt/ros/noetic/include/ros/publisher.h:36, from /opt/ros/noetic/include/ros/node_handle.h:32, from /opt/ros/noetic/include/ros/ros.h:45, from /home/chestnutl/xiaoche_ws/src/opencv_object_tracking/src/filter2move_frame_sum.cpp:1: /usr/include/boost/thread/mutex.hpp:18:2: error: #error "Boost threads unavailable on this platform" 18 | #error "Boost threads unavailable on this platform" | ^~~~~ In file included from /usr/include/boost/thread/detail/platform.hpp:17, from /usr/include/boost/thread/mutex.hpp:12, from /opt/ros/noetic/include/ros/publisher.h:36, from /opt/ros/noetic/include/ros/node_handle.h:32, from /opt/ros/noetic/include/ros/ros.h:45, from /home/chestnutl/xiaoche_ws/src/opencv_object_tracking/src/detach_box.cpp:1: /usr/include/boost/config/requires_threads.hpp:47:5: error: #error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread (Linux), -pthreads (Solaris) or -mthreads (Mingw32)" 47 | # error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread (Linux), -pthreads (Solaris) or -mthreads (Mingw32)" | ^~~~~ In file included from /usr/include/boost/thread/mutex.hpp:12, from /opt/ros/noetic/include/ros/publisher.h:36, from /opt/ros/noetic/include/ros/node_handle.h:32, from /opt/ros/noetic/include/ros/ros.h:45, from /home/chestnutl/xiaoche_ws/src/opencv_object_tracking/src/detach_box.cpp:1: /usr/include/boost/thread/detail/platform.hpp:71:9: error: #error "Sorry, no boost threads are available for this platform." 71 | # error "Sorry, no boost threads are available for this platform." | ^~~~~ In file included from /opt/ros/noetic/include/ros/publisher.h:36, from /opt/ros/noetic/include/ros/node_handle.h:32, from /opt/ros/noetic/include/ros/ros.h:45, from /home/chestnutl/xiaoche_ws/src/opencv_object_tracking/src/detach_box.cpp:1: /usr/include/boost/thread/mutex.hpp:18:2: error: #error "Boost threads unavailable on this platform" 18 | #error "Boost threads unavailable on this platform" | ^~~~~ In file included from /opt/ros/noetic/include/ros/node_handle.h:32, from /opt/ros/noetic/include/ros/ros.h:45, from /home/chestnutl/xiaoche_ws/src/opencv_object_tracking/src/detach_box.cpp:1: /opt/ros/noetic/include/ros/publisher.h:204:14: error: ‘mutex’ in namespace ‘boost’ does not name a type 204 | boost::mutex last_message_mutex_; | ^~~~~ In file included from /opt/ros/noetic/include/ros/node_handle.h:32, from /opt/ros/noetic/include/ros/ros.h:45, from /home/chestnutl/xiaoche_ws/src/opencv_object_tracking/src/filter2move_frame_sum.cpp:1: /opt/ros/noetic/include/ros/publisher.h:204:14: error: ‘mutex’ in namespace ‘boost’ does not name a type 204 | boost::mutex last_message_mutex_; | ^~~~~ make[2]: *** [opencv_object_tracking/CMakeFiles/detach_box.dir/build.make:63:opencv_object_tracking/CMakeFiles/detach_box.dir/src/detach_box.cpp.o] 错误 1 make[1]: *** [CMakeFiles/Makefile2:2959:opencv_object_tracking/CMakeFiles/detach_box.dir/all] 错误 2 make[1]: *** 正在等待未完成的任务.... make[2]: *** [opencv_object_tracking/CMakeFiles/filter2move_frame_sum.dir/build.make:63:opencv_object_tracking/CMakeFiles/filter2move_frame_sum.dir/src/filter2move_frame_sum.cpp.o] 错误 1 make[1]: *** [CMakeFiles/Makefile2:2480:opencv_object_tracking/CMakeFiles/filter2move_frame_sum.dir/all] 错误 2 make: *** [Makefile:141:all] 错误 2 Invoking "make -j8 -l8" failed