Configure Itom Makefile with PCL for Ubuntu

Issue #141 closed
Former user created an issue

It's not possible to configure the itom makefile with CMake if PCL-support is enabled. I'm using Ubuntu 18.04 and PCL lib 1.8.1.

I get the following error:

-- Could NOT find Boost CMake Error at /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:48 (message): common is required but boost was not found Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:687 (pcl_report_not_found) /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:850 (find_external_library) PointCloud/CMakeLists.txt:50 (find_package)

Comments (8)

  1. M. Gronle

    Did you install the package libpcl-dev as well as libproj-dev (see this documentation)?

    I have ubuntu 19.04 together with libpcl-dev 1.9. The libpcl-dev package has libboost-all-dev as dependency.
    Please make sure, that you have libboost-all-dev installed, too.

    If PCL is still not capable to automatically detect boost, set the CMake path variable Boost_LIBRARY_DIR to the
    root directory of the boost libraries (usually: /usr/lib/x86_64-linux-gnu). This directory should contain libraries like
    libboost_chrono.so

  2. Simon Walser

    libpcl-dev, libproj-dev and libboost-all-dev is installed and boost directory contains libraries like libboost_chrono.so

    I also tried to set the CMake path variable Boost_LIBRARY_DIR to the corresponding value. However, I still get the same error as before, which is:

    CMake Error at /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:48 (message):
    common is required but boost was not found
    Call Stack (most recent call first):
    /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:687 (pcl_report_not_found)
    /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake:850 (find_external_library)
    PointCloud/CMakeLists.txt:50 (find_package)

    This error only occurs if I configure with -DBUILD_WITH_PCL=ON. Otherwise everything works fine.

    libpcl-dev: 1.8.1+dfsg1-2ubuntu2.18.04.1

    libproj-dev: 4.9.3-2

    libboost-all-dev: 1.65.1.0ubuntu1

  3. M. Gronle

    Hi Simon,

    I tried to reconstruct your problem. On my ubuntu 19.10 I have PCL 1.9 installed. I opened the PCLConfig.cmake file there with a text editor. The most interesting lines are
    the macro(find_boost) until endmacro(find_boost). Here I have seen, that PCL requires both specific versions of the boost library as well as of CMake.
    On my Windows system, I have an old PCL 1.8.1 installation, there I could see in the same file, that the supported boost versions range from 1.47 to 1.64.
    Therefore, it might be that boost 1.65 is not directly supported.

    I guess that it should be possible to force PCL to compile with another boost version by directly setting all boost values in CMake by hand (use the CMake gui for this).
    However, it might be easier to download an older version of boost and use this. Would this be possible for you?

    If this doesn’t work, please paste here your PCLConfig.cmake file and indicate the CMake version that you are currently using.

    Cheers

    Marc

  4. M. Gronle

    As a small “hack”, you could also try to simply add your boost version to the PCLConfig.cmake text file 😉

  5. Log in to comment