Diamondback, rosmake openni_kinect On fedora 15
Hello! I try to compile openni_kinect drivers with GCC 4.6, but have next problem:
/home/crady/ros/perception_pcl/pcl/include/pcl/ros/conversions.h: In function ‘void pcl::toROSMsg(const CloudT&, sensor_msgs::Image&) [with CloudT = pcl::PointCloud<pcl::PointXYZRGB>, sensor_msgs::Image = sensor_msgs::Image_<std::allocator<void> >]’:
/home/crady/ros/perception_pcl/pcl_ros/src/tools/convert_pcd_to_image.cpp:75:32: instantiated from here
/home/crady/ros/perception_pcl/pcl/include/pcl/ros/conversions.h:285:9: error: taking address of temporary [-fpermissive]
As I understand, I should add [-fpermissive] flag to some CMake file, to change error status to warning. But I can't find appropriate files. Can anybody help with this? This flag actual for GCC 4.6, but can't downgrade to, for example, GCC 4.5. Thanks for help!