cartographer-project / cartographer

Cartographer is a system that provides real-time simultaneous localization and mapping (SLAM) in 2D and 3D across multiple platforms and sensor configurations.
Apache License 2.0
7.09k stars 2.25k forks source link

I have something wrong when cmake.. #1810

Closed AdamPengG closed 3 years ago

AdamPengG commented 3 years ago

Hi authors of cartographer, I have some problem when the second time installing cartographer.I have follow the cartographer_superbuild to cmake the cartographer. When I cmake .. the program, the terminal showing that

CMake Error in cartographer/CMakeLists.txt:
  Target "cartographer" INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "/home/peng/carto/cartographer_superbuild/cartographer/"

  which is prefixed in the source directory. 

After that I can still make -j4,and run rviz launch in the terminal . But in the Clion, there is a problem that clion can't find the cartographer header files. And the program can't debug in it. Screenshot from 2021-02-20 16-50-28

MichaelGrupp commented 3 years ago

I suggest to open an issue in the "superbuild" repository instead of here, because we can't support this.