紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
在编译autoware的标定工具箱出现的报错
-
wwt@wwt-B560M-AORUS-PRO-AX:~/CL_calibration_ws$ catkin_make Base path: /home/wwt/CL_calibration_ws Source space: /home/wwt/CL_calibration_ws/src Build space: /home/wwt/CL_calibration_ws/build Devel space: /home/wwt/CL_calibration_ws/devel Install space: /home/wwt/CL_calibration_ws/install #### #### Running command: "make cmake_check_build_system" in "/home/wwt/CL_calibration_ws/build" #### -- Using CATKIN_DEVEL_PREFIX: /home/wwt/CL_calibration_ws/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/melodic -- This workspace overlays: /opt/ros/melodic -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") -- Using PYTHON_EXECUTABLE: /usr/bin/python2 -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/wwt/CL_calibration_ws/build/test_results -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built CMake Deprecation Warning at /usr/src/googletest/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. CMake Deprecation Warning at /usr/src/googletest/googlemock/CMakeLists.txt:41 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. CMake Deprecation Warning at /usr/src/googletest/googletest/CMakeLists.txt:48 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. -- Found PythonInterp: /usr/bin/python2 (found version "2.7.17") -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.7.29 -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 6 packages in topological order: -- ~~ - autoware_build_flags -- ~~ - ls_calibration (metapackage) -- ~~ - glviewer -- ~~ - autoware_msgs -- ~~ - rosinterface -- ~~ - calibration_camera_lidar -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- +++ processing catkin package: 'autoware_build_flags' -- ==> add_subdirectory(ls_calibration/autoware_build_flags) CMake Deprecation Warning at ls_calibration/autoware_build_flags/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. -- +++ processing catkin metapackage: 'ls_calibration' -- ==> add_subdirectory(ls_calibration/ls_calibration) CMake Deprecation Warning at ls_calibration/ls_calibration/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. -- +++ processing catkin package: 'glviewer' -- ==> add_subdirectory(ls_calibration/glviewer) CMake Deprecation Warning at ls_calibration/glviewer/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. CMake Warning at /opt/ros/melodic/share/cmake_modules/cmake/Modules/FindEigen.cmake:62 (message): The FindEigen.cmake Module in the cmake_modules package is deprecated. Please use the FindEigen3.cmake Module provided with Eigen. Change instances of find_package(Eigen) to find_package(Eigen3). Check the FindEigen3.cmake Module for the resulting CMake variable names. Call Stack (most recent call first): ls_calibration/glviewer/CMakeLists.txt:15 (find_package) -- Eigen found (include: /usr/local/include/eigen3) CMake Warning (dev) at /usr/local/share/cmake-3.20/Modules/FindOpenGL.cmake:315 (message): Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when available. Run "cmake --help-policy CMP0072" for policy details. Use the cmake_policy command to set the policy and suppress this warning. FindOpenGL found both a legacy GL library: OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so and GLVND libraries for OpenGL and GLX: OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for compatibility with CMake 3.10 and below the legacy GL library will be used. Call Stack (most recent call first): ls_calibration/glviewer/CMakeLists.txt:35 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- +++ processing catkin package: 'autoware_msgs' -- ==> add_subdirectory(ls_calibration/autoware_msgs) CMake Deprecation Warning at ls_calibration/autoware_msgs/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- autoware_msgs: 50 messages, 0 services -- +++ processing catkin package: 'rosinterface' -- ==> add_subdirectory(ls_calibration/rosinterface) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- +++ processing catkin package: 'calibration_camera_lidar' -- ==> add_subdirectory(ls_calibration/calibration_camera_lidar) CMake Deprecation Warning at ls_calibration/calibration_camera_lidar/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy CMake Warning (dev) at /usr/local/share/cmake-3.20/Modules/FindOpenGL.cmake:315 (message): Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when available. Run "cmake --help-policy CMP0072" for policy details. Use the cmake_policy command to set the policy and suppress this warning. FindOpenGL found both a legacy GL library: OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so and GLVND libraries for OpenGL and GLX: OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for compatibility with CMake 3.10 and below the legacy GL library will be used. Call Stack (most recent call first): ls_calibration/calibration_camera_lidar/CMakeLists.txt:34 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring done -- Generating done -- Build files have been written to: /home/wwt/CL_calibration_ws/build #### #### Running command: "make -j16 -l16" in "/home/wwt/CL_calibration_ws/build" #### [ 1%] Automatic MOC for target glviewer [ 1%] Built target std_msgs_generate_messages_nodejs [ 1%] Built target geometry_msgs_generate_messages_nodejs [ 1%] Built target glviewer_autogen [ 1%] Built target sensor_msgs_generate_messages_nodejs [ 1%] Built target _autoware_msgs_generate_messages_check_deps_DTLane [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ImageLaneObjects [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ControlCommandStamped [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ImageObjects [ 1%] Built target _autoware_msgs_generate_messages_check_deps_CloudClusterArray [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ICPStat [ 1%] Built target _autoware_msgs_generate_messages_check_deps_WaypointState [ 1%] Built target _autoware_msgs_generate_messages_check_deps_TrafficLightResult [ 1%] Built target _autoware_msgs_generate_messages_check_deps_DetectedObject [ 1%] Built target _autoware_msgs_generate_messages_check_deps_RemoteCmd [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ObjLabel [ 1%] Built target _autoware_msgs_generate_messages_check_deps_Lane [ 1%] Built target _autoware_msgs_generate_messages_check_deps_LampCmd [ 1%] Built target _autoware_msgs_generate_messages_check_deps_Signals [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ColorSet [ 1%] Built target _autoware_msgs_generate_messages_check_deps_StateCmd [ 1%] Built target _autoware_msgs_generate_messages_check_deps_AdjustXY [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ProjectionMatrix [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ValueSet [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ImageRect [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ObjPose [ 1%] Built target _autoware_msgs_generate_messages_check_deps_SteerCmd [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ControlCommand [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ImageObj [ 1%] Built target _autoware_msgs_generate_messages_check_deps_Waypoint [ 1%] Built target jsk_recognition_msgs_generate_messages_nodejs [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ExtractedPosition [ 1%] Built target _autoware_msgs_generate_messages_check_deps_VehicleCmd [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ImageRectRanged [ 1%] Built target _autoware_msgs_generate_messages_check_deps_Centroids [ 1%] Built target _autoware_msgs_generate_messages_check_deps_SyncTimeDiff [ 1%] Built target _autoware_msgs_generate_messages_check_deps_VscanTracked [ 1%] Built target _autoware_msgs_generate_messages_check_deps_AccelCmd [ 1%] Built target _autoware_msgs_generate_messages_check_deps_State [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ImageObjTracked [ 1%] Built target _autoware_msgs_generate_messages_check_deps_LaneArray [ 1%] Built target _autoware_msgs_generate_messages_check_deps_VehicleStatus [ 1%] Built target _autoware_msgs_generate_messages_check_deps_TrafficLight [ 1%] Built target _autoware_msgs_generate_messages_check_deps_DetectedObjectArray [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ImageObjRanged [ 1%] Built target std_msgs_generate_messages_eus [ 1%] Built target _autoware_msgs_generate_messages_check_deps_NDTStat [ 1%] Built target _autoware_msgs_generate_messages_check_deps_TunedResult [ 1%] Built target jsk_recognition_msgs_generate_messages_eus [ 1%] Built target _autoware_msgs_generate_messages_check_deps_SyncTimeMonitor [ 1%] Built target _autoware_msgs_generate_messages_check_deps_ScanImage [ 1%] Built target sensor_msgs_generate_messages_eus [ 1%] Built target geometry_msgs_generate_messages_eus [ 1%] Built target std_msgs_generate_messages_cpp [ 1%] Built target sensor_msgs_generate_messages_cpp [ 1%] Built target _autoware_msgs_generate_messages_check_deps_CloudCluster [ 1%] Built target geometry_msgs_generate_messages_cpp [ 1%] Built target sensor_msgs_generate_messages_lisp [ 1%] Built target jsk_recognition_msgs_generate_messages_cpp [ 1%] Built target std_msgs_generate_messages_lisp [ 1%] Built target geometry_msgs_generate_messages_lisp [ 1%] Built target std_msgs_generate_messages_py [ 1%] Built target _autoware_msgs_generate_messages_check_deps_GeometricRectangle [ 1%] Built target jsk_recognition_msgs_generate_messages_lisp [ 1%] Built target _autoware_msgs_generate_messages_check_deps_PointsImage [ 1%] Built target _autoware_msgs_generate_messages_check_deps_BrakeCmd [ 1%] Built target geometry_msgs_generate_messages_py [ 2%] Automatic MOC for target rosinterface [ 2%] Built target sensor_msgs_generate_messages_py [ 2%] Built target jsk_recognition_msgs_generate_messages_py [ 2%] Built target roscpp_generate_messages_eus [ 2%] Built target topic_tools_generate_messages_py [ 2%] Built target roscpp_generate_messages_py [ 2%] Built target roscpp_generate_messages_lisp [ 2%] Built target rosgraph_msgs_generate_messages_eus [ 2%] Built target rosgraph_msgs_generate_messages_cpp [ 2%] Built target roscpp_generate_messages_cpp [ 2%] Built target rosgraph_msgs_generate_messages_lisp [ 2%] Built target _autoware_msgs_generate_messages_check_deps_IndicatorCmd [ 2%] Built target _autoware_msgs_generate_messages_check_deps_VscanTrackedArray [ 2%] Built target rosgraph_msgs_generate_messages_nodejs [ 2%] Built target _autoware_msgs_generate_messages_check_deps_TrafficLightResultArray [ 2%] Built target rosinterface_autogen [ 2%] Built target rosgraph_msgs_generate_messages_py [ 2%] Built target roscpp_generate_messages_nodejs [ 2%] Built target actionlib_msgs_generate_messages_lisp [ 2%] Built target pcl_msgs_generate_messages_lisp [ 2%] Built target jsk_footstep_msgs_generate_messages_lisp [ 2%] Built target jsk_footstep_msgs_generate_messages_nodejs [ 2%] Built target actionlib_msgs_generate_messages_eus [ 2%] Built target actionlib_msgs_generate_messages_nodejs [ 2%] Built target pcl_msgs_generate_messages_nodejs [ 2%] Built target pcl_msgs_generate_messages_py [ 2%] Built target pcl_msgs_generate_messages_eus [ 2%] Built target jsk_footstep_msgs_generate_messages_py [ 2%] Built target actionlib_msgs_generate_messages_cpp [ 2%] Built target jsk_footstep_msgs_generate_messages_eus [ 2%] Built target jsk_footstep_msgs_generate_messages_cpp [ 2%] Built target pcl_msgs_generate_messages_cpp [ 2%] Built target tf_generate_messages_py [ 2%] Built target tf_generate_messages_cpp [ 2%] Built target tf_generate_messages_eus [ 2%] Built target actionlib_msgs_generate_messages_py [ 2%] Built target actionlib_generate_messages_eus [ 2%] Built target actionlib_generate_messages_cpp [ 2%] Built target tf_generate_messages_lisp [ 2%] Built target actionlib_generate_messages_lisp [ 2%] Built target tf2_msgs_generate_messages_eus [ 2%] Built target actionlib_generate_messages_nodejs [ 2%] Built target actionlib_generate_messages_py [ 2%] Built target tf_generate_messages_nodejs [ 2%] Built target tf2_msgs_generate_messages_nodejs [ 2%] Built target tf2_msgs_generate_messages_cpp [ 2%] Built target tf2_msgs_generate_messages_lisp [ 2%] Built target tf2_msgs_generate_messages_py [ 2%] Built target bond_generate_messages_eus [ 2%] Built target dynamic_reconfigure_generate_messages_nodejs [ 2%] Built target nodelet_generate_messages_lisp [ 2%] Built target dynamic_reconfigure_generate_messages_lisp [ 2%] Built target bond_generate_messages_cpp [ 2%] Built target nodelet_generate_messages_py [ 2%] Built target nodelet_generate_messages_eus [ 2%] Built target topic_tools_generate_messages_cpp [ 2%] Built target nodelet_generate_messages_nodejs [ 2%] Built target bond_generate_messages_lisp [ 2%] Built target dynamic_reconfigure_generate_messages_cpp [ 2%] Built target topic_tools_generate_messages_eus [ 2%] Built target topic_tools_generate_messages_nodejs [ 2%] Built target topic_tools_generate_messages_lisp [ 2%] Built target nodelet_topic_tools_gencfg [ 2%] Built target dynamic_reconfigure_generate_messages_py [ 2%] Built target pcl_ros_gencfg [ 2%] Built target std_srvs_generate_messages_lisp [ 2%] Built target dynamic_reconfigure_generate_messages_eus [ 2%] Built target bond_generate_messages_py Consolidate compiler generated dependencies of target glviewer [ 2%] Built target nodelet_generate_messages_cpp [ 2%] Built target std_srvs_generate_messages_eus [ 2%] Built target std_srvs_generate_messages_cpp [ 2%] Built target dynamic_reconfigure_gencfg [ 2%] Built target std_srvs_generate_messages_nodejs [ 2%] Built target bond_generate_messages_nodejs Consolidate compiler generated dependencies of target rosinterface [ 2%] Built target std_srvs_generate_messages_py [ 19%] Built target autoware_msgs_generate_messages_nodejs [ 37%] Built target autoware_msgs_generate_messages_eus [ 57%] Built target autoware_msgs_generate_messages_py [ 72%] Built target autoware_msgs_generate_messages_lisp [ 88%] Built target autoware_msgs_generate_messages_cpp [ 88%] Built target autoware_msgs_generate_messages [ 89%] Built target glviewer [ 91%] Built target rosinterface [ 91%] Automatic MOC for target calibration_publisher [ 92%] Automatic MOC for target calibrationtoolkit [ 92%] Automatic MOC for target calibration_test [ 92%] Built target calibration_publisher_autogen [ 92%] Built target calibrationtoolkit_autogen [ 92%] Built target calibration_test_autogen Consolidate compiler generated dependencies of target calibration_publisher Consolidate compiler generated dependencies of target calibration_test Consolidate compiler generated dependencies of target calibrationtoolkit [ 93%] Linking CXX executable /home/wwt/CL_calibration_ws/devel/lib/calibration_camera_lidar/calibration_publisher [ 96%] Built target calibration_test [ 97%] Built target calibrationtoolkit [ 97%] Automatic MOC for target calibration_toolkit CMakeFiles/calibration_publisher.dir/nodes/calibration_publisher/calibration_publisher.cpp.o:在函数‘main’中: /usr/local/opencv341/include/opencv2/core/cvstd.inl.hpp:156:对‘cv::read(cv::FileNode const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’未定义的引用 collect2: error: ld returned 1 exit status ls_calibration/calibration_camera_lidar/CMakeFiles/calibration_publisher.dir/build.make:344: recipe for target '/home/wwt/CL_calibration_ws/devel/lib/calibration_camera_lidar/calibration_publisher' failed make[2]: *** [/home/wwt/CL_calibration_ws/devel/lib/calibration_camera_lidar/calibration_publisher] Error 1 CMakeFiles/Makefile2:4745: recipe for target 'ls_calibration/calibration_camera_lidar/CMakeFiles/calibration_publisher.dir/all' failed make[1]: *** [ls_calibration/calibration_camera_lidar/CMakeFiles/calibration_publisher.dir/all] Error 2 make[1]: *** 正在等待未完成的任务.... [ 97%] Built target calibration_toolkit_autogen Makefile:145: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j16 -l16" failed
-
@541477150 在 在编译autoware的标定工具箱出现的报错 中说:
:对‘cv::read(cv::FileNode const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)’未定义的引用
看着句应该是opencv依赖问题。