System details : Ubuntu 14.04, has boost-1.55, boost-1.66, pcl-1.8 (without visualization objects) in /usr/local/lib, pcl-1.7 and vtk-5.8 in /usr/lib.
Following edits were made in CMakeLists.txt for resolving map-related-binary-builds of MRPT.
if(GCC_PATH STREQUAL /usr/bin)
set(LIBSTD_PATH "/usr/lib")
endif()
find_package(VTK REQUIRED)
if (VTK_FOUND)
include("${VTK_USE_FILE}")
endif (VTK_FOUND)
find_package(PCL 1.7 REQUIRED)
if (PCL_FOUND)
include_directories(${PCL_INCLUDE_DIRS})
add_definitions(${PCL_DEFINITIONS})
link_directories(${PCL_LIBRARY_DIRS})
endif (PCL_FOUND)System details : Ubuntu 14.04, Boost 1.55, gcc/g++-5.
Error message : While building the target of RandomNumbers.cpp in OMPL, faced the following error.
/home/ashish/Downloads/ompl-master/src/ompl/util/src/RandomNumbers.cpp:165:45: required from here
/usr/local/include/boost/random/uniform_on_sphere.hpp:164:13: error: ‘boost::random::uniform_on_sphere<double, boost::numeric::ublas::shallow_array_adaptor<double> >::result_type {aka class boost::numeric::ublas::shallow_array_adaptor<double>}’ has no member named ‘empty’
if (!_container.empty()) {
^
Solution : After completely removing boost 1.55 and installing Boost 1.63, the issue was solved.
Also, it'd be better if newer version of the dependencies, pypyplusm, gccxml , castxml are installed. Installation command, used at this point in time, are given below. Look for newer versions if available.
sudo -H pip -v install https://github.com/gccxml/pygccxml/archive/v1.7.3.tar.gz https://bitbucket.org/ompl/pyplusplus/get/1.6.tar.gz