Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I got it! File ~/ros/perception_pcl/pcl_ros/CMakeLists.txt has at the top next lines:

cmake_minimum_required (VERSION 2.4.6)
    include ($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
    #set (ROS_BUILD_TYPE Debug)
    set (ROS_BUILD_TYPE RelWithDebInfo)
    rosbuild_init ()
    rosbuild_add_boost_directories ()
    #add_definitions (-Wall -O3 -funroll-loops)
    rosbuild_check_for_sse ()

So, you should uncomment line "add_definitions" and add flag -fpermissive, like this:

add_definitions (-Wall -O3 -funroll-loops -permissive)