How to rosmake pcl_ros in Mac OS X?
Hi everyone!
I'm trying to rosmake pcl_ros but I'm bumping into this error:
{-------------------------------------------------------------------------------
mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake ..
[rosbuild] Building package pcl_ros
[rosbuild] Cached build flags older than manifests; calling rospack to get flags
Failed to invoke /Users/cabrita/ros/ros/bin/rospack cflags-only-I;--deps-only pcl_ros
CMake Error at /usr/local/lib/vtk-5.8/VTKTargets.cmake:16 (ADD_EXECUTABLE):
Command add_executable() is not scriptable
Call Stack (most recent call first):
/usr/local/lib/vtk-5.8/VTKConfig.cmake:231 (INCLUDE)
/usr/local/Cellar/cmake/2.8.7/share/cmake/Modules/FindVTK.cmake:73 (FIND_PACKAGE)
/Users/cabrita/ros/perception_pcl/pcl/vtk_include.cmake:1 (find_package)
[rospack] warning: got non-zero exit status from executing backquote expression "ret="-I/Users/cabrita/ros/perception_pcl/pcl/include/pcl-1.1/ -I`cmake -P /Users/cabrita/ros/perception_pcl/pcl/vtk_include.cmake`" && echo $ret" in [/Users/cabrita/ros/perception_pcl/pcl/manifest.xml]
[rospack] error in backquote expansion for pcl_ros
CMake Error at /Users/cabrita/ros/ros/core/rosbuild/public.cmake:129 (message):
Failed to invoke rospack to get compile flags for package 'pcl_ros'. Look
above for errors from rospack itself. Aborting. Please fix the broken
dependency!
Call Stack (most recent call first):
/Users/cabrita/ros/ros/core/rosbuild/public.cmake:230 (rosbuild_invoke_rospack)
CMakeLists.txt:4 (rosbuild_init)
-- Configuring incomplete, errors occurred!
-------------------------------------------------------------------------------}
I have vtk installed:
$ brew install vtk
Warning: vtk already installed
I am running Mac OS X Lion 10.7.3 and ROS electric, I followed the tutorial on how to install ROS using Homebrew. Any suggestions? Thanks in advance!