ros-perception / perception_pcl

PCL (Point Cloud Library) ROS interface stack
http://wiki.ros.org/perception_pcl
412 stars 330 forks source link

pcl_ros include path does not found on macOS #149

Open ljmljz opened 7 years ago

ljmljz commented 7 years ago

I was successfully build the pcl_ros package on macOS. but when other package tried to look for the pcl_ros include path. it returns error. In the pcl_rosConfig.cmake file: set(_include_dirs "include;/usr/local/include;/usr/local/include/pcl-1.8;/usr/local/Cellar/eigen/3.3.4/include/eigen3;/usr/local/Cellar/openni/1.5.7.10/include/ni;/usr/local/include/ni2;/usr/local/Cellar/vtk/8.0.0/include/vtk-8.0;/usr/include;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7;/usr/local/Cellar/hdf5/1.10.1/include;/usr/local/opt/szip/include;/usr/include/libxml2;/usr/local/Cellar/flann/1.9.1_3/include")

if(IS_ABSOLUTE ${idir} AND IS_DIRECTORY ${idir})
      set(include ${idir})
    elseif("${idir} " STREQUAL "include ")
      get_filename_component(include "${pcl_ros_DIR}/../../../include" ABSOLUTE)
      if(NOT IS_DIRECTORY ${include})
        message(FATAL_ERROR "Project 'pcl_ros' specifies '${idir}' as an include dir, which is not found.  It does not exist in '${include}'.  Ask the maintainer 'Paul Bovbel <paul@bovbel.com>, Bill Morris <bill@neautomation.com>, Kentaro Wada <www.kentaro.wada@gmail.com>' to fix it.")
      endif()
    else()
      message(FATAL_ERROR "Project 'pcl_ros' specifies '${idir}' as an include dir, which is not found.  It does neither exist as an absolute directory nor in '/Users/jjingmin/Documents/workspace/ros/catkin_ws/install_isolated/${idir}'.  Ask the maintainer 'Paul Bovbel <paul@bovbel.com>, Bill Morris <bill@neautomation.com>, Kentaro Wada <www.kentaro.wada@gmail.com>' to fix it.")
    endif()

it tries to verify the include path. But actually, the "/usr/include" path doesn't exist on macOS. so it will return error on the last else.

Karsten1987 commented 5 years ago

I just recently ran into this. Have you figured a way around this issue?