ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Installing Indigo on Mac OS X Maverick boost cannot be found cpp_common

asked 2014-06-12 12:58:18 -0500

CodePorter gravatar image

updated 2014-06-14 04:42:34 -0500

demmeln gravatar image

When installing Indigo on Mac. I get an error stating that Boost cannot be found while compiling cpp_common. Did anyone have the same problem?

Im compiling using:

  ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release

Error:

[ 50%] Building CXX object CMakeFiles/cpp_common.dir/src/header.cpp.o
In file included from    
/Users/codeporter/Development/indigo/ros_catkin_ws/src/roscpp_core/cpp_common/src/header.cpp:35:
/Users/codeporter/Development/indigo/ros_catkin_ws/src/roscpp_core/cpp_common/include/ros/header.h:41:10:fatal error: 'boost/shared_array.hpp' file not found
#include <boost/shared_array.hpp> ^
1 error generated.
make[2]: *** [CMakeFiles/cpp_common.dir/src/header.cpp.o] Error 1
make[1]: *** [CMakeFiles/cpp_common.dir/all] Error 2
make: *** [all] Error 2
<== Failed to process package 'cpp_common': 
Command '/Users/codeporter/Development/indigo/ros_catkin_ws/install_isolated/env.sh make -j4 -l4' returned non-zero exit status 2
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-06-12 13:54:06 -0500

CodePorter gravatar image

I have added the following code in "./src/roscpp_core/cpp_common/CMakeLists.txt" and it seems that it has to have compiled correctly:

SET(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "/usr/local/include/")
SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "/usr/local/include/")
FIND_PACKAGE(Boost)
IF (Boost_FOUND)
   INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
   ADD_DEFINITIONS( "-DHAS_BOOST" )
ENDIF()
edit flag offensive delete link more

Comments

It is strange that you would have to do this. Can you edit your question with more details about your environment (OS X verison etc) and what steps you followed to install indigo?

demmeln gravatar image demmeln  ( 2014-06-14 04:41:48 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-06-12 12:58:18 -0500

Seen: 626 times

Last updated: Jun 12 '14