chennuo0125-HIT / lidar_imu_calib

automatic calibration of 3D lidar and IMU extrinsics
496 stars 113 forks source link

#include <pclomp/ndt_omp.h> #1

Closed celikemir closed 3 years ago

celikemir commented 3 years ago

There was an error compiling the repo.

catkin_ws/src/lidar_imu_calib/include/calibExRLidar2Imu.h:15:10: fatal error: pclomp/ndt_omp.h: No such file or directory

include <pclomp/ndt_omp.h>

      ^~~~~~~~~~~~~~~~~~

sudo apt install libpcl-dev can not solve the problem. I also compiled PCL 1.7.2 from the source still the same error.

chennuo0125-HIT commented 3 years ago

before compile this repo, you need install ndt_omp to system catalog

git clone https://github.com/koide3/ndt_omp.git
cd ndt_omp
mkdir build
cd build
cmake ..
make
sudo make install
celikemir commented 3 years ago

Thank you for your fast reply. I cloned ndt_omp repo to my catkin_workspace there was no error when I doing catkin_make. I also followed the above build sequence and faced an error in "make" step.

CMakeFiles/align.dir/build.make:62: recipe for target 'CMakeFiles/align.dir/apps/align.cpp.o' failed
make[2]: *** [CMakeFiles/align.dir/apps/align.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/align.dir/all' failed
make[1]: *** [CMakeFiles/align.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

ndt_omp can be compiled under catkin workspace. Could be any problem related to Eigen version (3.2.92)?

chennuo0125-HIT commented 3 years ago

you can compile ndt_omp as my suggestion:

git clone https://github.com/koide3/ndt_omp.git
cd ndt_omp
mkdir build
cd build
cmake ..
make
sudo make install

if you do as above, ndt_omp will be installed to system catalog, later, you catkin_make lidar_imu_calib will be success

celikemir commented 3 years ago

Thank you. your suggestion worked after I uninstall PCL-lib. it was installed from the source.