I am using a Ubuntu 12.04 machine and I have the following problem: I try to compile and create a C ++ file using CMake, but when I give the "make" command after "cmake ..", I get the error:
pcl_openni_grabber.cpp: 2: 29: fatal error: pcl / point_cloud.h: no such file or directory compilation completed.
Now my CMakeLists.txt is this:
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(pcl-openni-grabber)
find_package(PCL 1.2 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_executable (pcl_openni_grabber pcl_openni_grabber.cpp)
target_link_libraries (pcl_openni_grabber ${PCL_LIBRARIES})
where the PCL_INCLUDE_DIRS environment variable contains:
/usr/include/pcl-1.5
Now, after two hours of work, in order to understand the problem, I found it in the find_package () command. In practice, when I run "cmake ..", it returns the wrong path to the pcl libraries (cloud point library). Indeed, this is the result of "cmake ..":
, pcl ros (Robot Operating System), Synaptic Package Manager "/opt/ros". pcl "/usr/include/pcl.1.5" "/usr/lib".
ros find_package , . , cmake, cmake, ros? ?