boost 1.60 with ROS Jade
I'd like to use boost 1.55 or later with ROS Jade.
How can I do it correctly ? If possible, I'd like to use boost installed locally.
As I show later, roscpp depends on boost 1.54.0 and it seems to lead to serious problem.
What I've done is like the follows.
Installed boost 1.60 locally (into ~/Libs/boost).
Now header files and .a and .so files are in ~/Libs/boost/incude and ~/Libs/boost/lib respectivelyIn CMakeLists.txt,
set(LIB_ROOT "~/Libs")
set(Boost_INCLUDE_DIR ${LIB_ROOT}/boost/include)
set(Boost_LIBRARY_DIR ${LIB_ROOT}/boost/lib)
find_package(Boost 1.60 REQUIRED)
include_directories(${Boost_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIR})Removed build and devel directories in catkin_ws and catkin_make
As a result, I have warnings as the follows:
link library [libboost_\*\*\*\*.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in: <path-to-~/Libs>/boost/lib
and
/usr/bin/ld: warning: libboost_\*\*\*\*.so.1.54.0, needed by /opt/ros/jade/lib/libroscpp.so, may conflict with libboost_thread.so.1.60.0
Warnings make sense because I did it on purpose.
But the warning is really scaring. I'm afraid that it was really linked correctly.
What's wrong with my way ?
Should I link boost libraries statically ?
In that case, how can I do it with catkin ?
Thanks in advance.