Closed kurogane1031 closed 6 years ago
Hi, is there anything i need to add inside the cmakelist.txt in order to be able to link the libndt_tku.so? my gcc version is 5.4.0
Scanning dependencies of target lazy_ndt_mapping [ 95%] Building CXX object computing/perception/localization/packages/lidar_localizer/CMakeFiles/tf_mapping.dir/nodes/tf_mapping/tf_mapping.cpp.o [ 95%] Building CXX object computing/perception/localization/packages/lidar_localizer/CMakeFiles/lazy_ndt_mapping.dir/nodes/lazy_ndt_mapping/lazy_ndt_mapping.cpp.o [ 95%] Linking CXX shared library /home/mypc/develop/Autoware/ros/devel/lib/libwayarea2grid_lib.so [ 96%] Linking CXX shared library /home/mypc/develop/Autoware/ros/devel/lib/libgrid_map_filter_lib.so [ 96%] Built target wayarea2grid_lib Scanning dependencies of target ndt_matching [ 96%] Building CXX object computing/perception/localization/packages/lidar_localizer/CMakeFiles/ndt_matching.dir/nodes/ndt_matching/ndt_matching.cpp.o [ 96%] Built target grid_map_filter_lib Scanning dependencies of target queue_counter [ 96%] Building CXX object computing/perception/localization/packages/lidar_localizer/CMakeFiles/queue_counter.dir/nodes/queue_counter/queue_counter.cpp.o [ 96%] Linking CXX executable /home/mypc/develop/Autoware/ros/devel/lib/waypoint_maker/waypoint_velocity_visualizer [ 96%] Building CXX object computing/planning/mission/packages/way_planner/CMakeFiles/way_planner.dir/nodes/RosHelpers.cpp.o [ 96%] Built target waypoint_velocity_visualizer Scanning dependencies of target approximate_ndt_mapping [ 96%] Building CXX object computing/perception/localization/packages/lidar_localizer/CMakeFiles/approximate_ndt_mapping.dir/nodes/approximate_ndt_mapping/approximate_ndt_mapping.cpp.o [ 96%] Building CXX object sensing/drivers/lidar/packages/velodyne/velodyne_pointcloud/src/conversions/CMakeFiles/cloud_nodelet.dir/convert.cc.o [ 96%] Building CXX object sensing/drivers/lidar/packages/velodyne/velodyne_pointcloud/src/conversions/CMakeFiles/cloud_node.dir/convert.cc.o [ 96%] Linking CXX executable /home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/queue_counter In file included from /home/mypc/develop/Autoware/ros/src/computing/planning/mission/packages/way_planner/nodes/RosHelpers.cpp:8:0: /home/mypc/develop/Autoware/ros/src/computing/planning/mission/packages/way_planner/include/RosHelpers.h: In static member function 'static std::vector<std::cxx11::basic_string > WayPlannerNS::HMI_MSG::SplitString(const string&, const string&)': /home/mypc/develop/Autoware/ros/src/computing/planning/mission/packages/way_planner/include/RosHelpers.h:112:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (iSecondPart > 0 && iSecondPart < str.size()) ^ [ 96%] Building CXX object computing/planning/motion/packages/dp_planner/CMakeFiles/dp_planner.dir/nodes/PolygonGenerator.cpp.o /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference to NDs_num' /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference toNDmap' /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference to `NDs' collect2: error: ld returned 1 exit status computing/perception/localization/packages/lidar_localizer/CMakeFiles/queue_counter.dir/build.make:540: recipe for target '/home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/queue_counter' failed make[2]: [/home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/queue_counter] Error 1 CMakeFiles/Makefile2:37377: recipe for target 'computing/perception/localization/packages/lidar_localizer/CMakeFiles/queue_counter.dir/all' failed make[1]: [computing/perception/localization/packages/lidar_localizer/CMakeFiles/queue_counter.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 97%] Building CXX object sensing/drivers/lidar/packages/velodyne/velodyne_pointcloud/src/conversions/CMakeFiles/transform_node.dir/transform.cc.o [ 97%] Building CXX object computing/planning/mission/packages/way_planner/CMakeFiles/way_planner.dir/nodes/SocketServer.cpp.o [ 97%] Linking CXX executable /home/mypc/develop/Autoware/ros/devel/lib/road_occupancy_processor/road_occupancy_processor [ 97%] Building CXX object sensing/drivers/lidar/packages/velodyne/velodyne_pointcloud/src/conversions/CMakeFiles/transform_nodelet.dir/transform.cc.o In file included from /home/mypc/develop/Autoware/ros/src/computing/planning/mission/packages/way_planner/include/SocketServer.h:19:0, from /home/mypc/develop/Autoware/ros/src/computing/planning/mission/packages/way_planner/nodes/SocketServer.cpp:8: /home/mypc/develop/Autoware/ros/src/computing/planning/mission/packages/way_planner/include/RosHelpers.h: In static member function 'static std::vector<std::cxx11::basic_string > WayPlannerNS::HMI_MSG::SplitString(const string&, const string&)': /home/mypc/develop/Autoware/ros/src/computing/planning/mission/packages/way_planner/include/RosHelpers.h:112:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (iSecondPart > 0 && iSecondPart < str.size()) ^ [ 97%] Built target road_occupancy_processor [ 97%] Linking CXX executable /home/mypc/develop/Autoware/ros/devel/lib/way_planner/way_planner [ 97%] Linking CXX shared library /home/mypc/develop/Autoware/ros/devel/lib/libcloud_nodelet.so [ 97%] Linking CXX executable /home/mypc/develop/Autoware/ros/devel/lib/velodyne_pointcloud/cloud_node [ 97%] Built target way_planner [ 97%] Linking CXX executable /home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/tf_mapping [ 97%] Built target cloud_nodelet [ 97%] Linking CXX executable /home/mypc/develop/Autoware/ros/devel/lib/dp_planner/dp_planner [ 97%] Built target cloud_node [ 97%] Built target dp_planner /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference to NDs_num' /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference toNDmap' /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference to NDs' collect2: error: ld returned 1 exit status computing/perception/localization/packages/lidar_localizer/CMakeFiles/tf_mapping.dir/build.make:540: recipe for target '/home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/tf_mapping' failed make[2]: *** [/home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/tf_mapping] Error 1 CMakeFiles/Makefile2:36921: recipe for target 'computing/perception/localization/packages/lidar_localizer/CMakeFiles/tf_mapping.dir/all' failed make[1]: *** [computing/perception/localization/packages/lidar_localizer/CMakeFiles/tf_mapping.dir/all] Error 2 [ 97%] Linking CXX executable /home/mypc/develop/Autoware/ros/devel/lib/velodyne_pointcloud/transform_node [ 97%] Built target transform_node [ 97%] Linking CXX shared library /home/mypc/develop/Autoware/ros/devel/lib/libtransform_nodelet.so [ 97%] Built target transform_nodelet [ 97%] Linking CXX executable /home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/lazy_ndt_mapping /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference toNDs_num' /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference to NDmap' /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference toNDs' collect2: error: ld returned 1 exit status computing/perception/localization/packages/lidar_localizer/CMakeFiles/lazy_ndt_mapping.dir/build.make:540: recipe for target '/home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/lazy_ndt_mapping' failed make[2]: [/home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/lazy_ndt_mapping] Error 1 CMakeFiles/Makefile2:37073: recipe for target 'computing/perception/localization/packages/lidar_localizer/CMakeFiles/lazy_ndt_mapping.dir/all' failed make[1]: [computing/perception/localization/packages/lidar_localizer/CMakeFiles/lazy_ndt_mapping.dir/all] Error 2 [ 97%] Linking CXX executable /home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/approximate_ndt_mapping /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference to NDs_num' /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference toNDmap' /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference to NDs' collect2: error: ld returned 1 exit status computing/perception/localization/packages/lidar_localizer/CMakeFiles/approximate_ndt_mapping.dir/build.make:540: recipe for target '/home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/approximate_ndt_mapping' failed make[2]: *** [/home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/approximate_ndt_mapping] Error 1 CMakeFiles/Makefile2:37529: recipe for target 'computing/perception/localization/packages/lidar_localizer/CMakeFiles/approximate_ndt_mapping.dir/all' failed make[1]: *** [computing/perception/localization/packages/lidar_localizer/CMakeFiles/approximate_ndt_mapping.dir/all] Error 2 [ 97%] Linking CXX executable /home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/ndt_matching /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference toNDs_num' /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference to NDmap' /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference toNDs' collect2: error: ld returned 1 exit status computing/perception/localization/packages/lidar_localizer/CMakeFiles/ndt_matching.dir/build.make:540: recipe for target '/home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/ndt_matching' failed make[2]: [/home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/ndt_matching] Error 1 CMakeFiles/Makefile2:37225: recipe for target 'computing/perception/localization/packages/lidar_localizer/CMakeFiles/ndt_matching.dir/all' failed make[1]: [computing/perception/localization/packages/lidar_localizer/CMakeFiles/ndt_matching.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j12 -l12" failed
NDs_num' /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference to
NDs' collect2: error: ld returned 1 exit status computing/perception/localization/packages/lidar_localizer/CMakeFiles/tf_mapping.dir/build.make:540: recipe for target '/home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/tf_mapping' failed make[2]: *** [/home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/tf_mapping] Error 1 CMakeFiles/Makefile2:36921: recipe for target 'computing/perception/localization/packages/lidar_localizer/CMakeFiles/tf_mapping.dir/all' failed make[1]: *** [computing/perception/localization/packages/lidar_localizer/CMakeFiles/tf_mapping.dir/all] Error 2 [ 97%] Linking CXX executable /home/mypc/develop/Autoware/ros/devel/lib/velodyne_pointcloud/transform_node [ 97%] Built target transform_node [ 97%] Linking CXX shared library /home/mypc/develop/Autoware/ros/devel/lib/libtransform_nodelet.so [ 97%] Built target transform_nodelet [ 97%] Linking CXX executable /home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/lazy_ndt_mapping /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference to
NDmap' /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference to
NDs' collect2: error: ld returned 1 exit status computing/perception/localization/packages/lidar_localizer/CMakeFiles/approximate_ndt_mapping.dir/build.make:540: recipe for target '/home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/approximate_ndt_mapping' failed make[2]: *** [/home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/approximate_ndt_mapping] Error 1 CMakeFiles/Makefile2:37529: recipe for target 'computing/perception/localization/packages/lidar_localizer/CMakeFiles/approximate_ndt_mapping.dir/all' failed make[1]: *** [computing/perception/localization/packages/lidar_localizer/CMakeFiles/approximate_ndt_mapping.dir/all] Error 2 [ 97%] Linking CXX executable /home/mypc/develop/Autoware/ros/devel/lib/lidar_localizer/ndt_matching /home/mypc/develop/Autoware/ros/devel/lib/libndt_tku.so: undefined reference to
Describe where the new feature request comes from. Add a high-level diagram of how the new feature should work.
Solved by reinstalling everything.
Hi, is there anything i need to add inside the cmakelist.txt in order to be able to link the libndt_tku.so? my gcc version is 5.4.0
Bug
Actual Behavior
Specifications
New Feature
Describe where the new feature request comes from. Add a high-level diagram of how the new feature should work.