rosmake tf2 osx fails
When I try to rosmake -a in osx Mountain Lion, it fails in tf2 package. I am following the installation tutorial ros.org/wiki/groovy/Installation/OSX/Homebrew/Source, with the exception that I am compiling rviz direclty from git devel version. I get the following output.
mkdir -p bin cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=/Users/mllofriu/ros_catkin_ws/install_isolated/share/ros/core/rosbuild/rostoolchain.cmake .. CMake Error at /usr/local/Cellar/cmake/2.8.10.1/share/cmake/Modules/Platform/Darwin.cmake:190 (message):
CMAKE_OSX_DEPLOYMENT_TARGET is '10.6' but CMAKE_OSX_SYSROOT:""
is not set to a MacOSX SDK with a recognized version. Either set
CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
empty. Call Stack (most recent call first):
/usr/local/Cellar/cmake/2.8.10.1/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36 (include)-- Configuring incomplete, errors occurred! make: * [all] Error 1