Skip to content

Instantly share code, notes, and snippets.

@ashishraste
Last active March 1, 2017 06:38
Show Gist options
  • Select an option

  • Save ashishraste/fe48581cf84a6c6eed8815b8c79246ad to your computer and use it in GitHub Desktop.

Select an option

Save ashishraste/fe48581cf84a6c6eed8815b8c79246ad to your computer and use it in GitHub Desktop.
Tweaks for compiling certain libraries
  1. MRPT
  2. OMPL

On building MRPT

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)

On building OMPL

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment