boost version for node with external class
Hello, I'm using ros-electric on ubuntu 11.04, which brings boost1.42. Since even the latest ros&ubuntu- combination features only boost1.46.1 I have the problem of getting a later boost version to work. It has to be >1.47 due to the geometry-packages. Is there a safe way to get the whole ros to work with boost1.47 or even 1.49 ? Another idea was, since this boost-version is just used in one single class, how to tell 'rosmake' in the cmakelist usse it just once. This is my attempt so far:
SET(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "/usr/local/boost_1_49_0")
SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "/usr/local/boost_1_49_0/libs")
set(BOOST_ROOT /usr/local/boost_1_49_0)
set(Boost_INCLUDE_DIR /usr/local/boost_1_49_0)
set(BOOST_LIBRARYDIR /usr/local/boost_1_49_0/libs)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
find_package(Boost 1.49.0 COMPONENTS geometry )
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
endif()
rosbuild_add_executable(shutter src/shutter.cpp src/geometry.cpp)
target_link_libraries(src/geometry.cpp ${Boost_LIBRARIES})
Might be a few to many 'set's, but it got the class compiled before(using 'cmake' without the 'rosbuild...'-commands).
rosmake gives me:
fatal error: boost/geometry.hpp: file not found
This at the point, where geometry.hpp is included in my source. Any way I can use my external class in my ros node ?