lying in the groove, it's ........ ....... Blind.
1.5 hours to find out what's wrong ...
C + +: Error: $ (catkin_libraries): No file or directory
Oh my god! I′m quite blind .... Apologies for any inconvenience. I need my glasses to see ... I′m absolutely a disaster. It is exactly what do you said to me. I didn′t Realice it. ${catkin_libraries} rather than $ (catkin_libraries). Thanks a lot!
I'm going to break down ...
Another error:
Could not find a package configuration file provided by "PCL" (requested version 1.2) with any of the following names: pclconfig.cmake pcl-config.cmake Add the installation prefix of "PCL" to Cmake_prefix_path or set "Pcl_dir" To a directory containing one of the above files. If "PCL" provides a separate development package or SDK, being sure it has been installed.--configuring incomplete, Erro RS occurred!
my CmakeLists.txt:
Cmake_minimum_required (VERSION 2.8.3) Project (SECOND_PCL) # # Find Catkin Macros and libraries## if list like fin D_package (Catkin REQUIRED components xyz) # are used, also find other Catkin packagesfind_package (PCL REQUIRED) #这个可能要 Write it separately find_package (catkin REQUIRED roscpp rospy pcl_conversions pcl_ros sensor_msgs# PCL REQUIRED) #find_package ( PCL REQUIRED) include_directories (include ${pcl_include_dirs}) link_directories (${pcl_library_dirs}) add_executable (pcl_create src/pcl_create.cpp) target_link_libraries (pcl_create ${catkin_libraries} ${PCL_ LIBRARIES})
This is no problem, encountered this error, during the period also recompile the PCL package ... But it should still be cmakelists. The error in txt
Ros error:c++: Error: $ (catkin_libraries): No file or directory