open3d_slam icon indicating copy to clipboard operation
open3d_slam copied to clipboard

Open3d_catkin can't find PPA-installed Open3D

Open YoshuaNava opened this issue 3 years ago • 5 comments

Hey! :slightly_smiling_face:

I followed the Installation instructions, choosing to fetch Open3D from a PPA, and then trying to compile open3d_catkin.

However, as soon as I run catkin build open3d_catkin (I configure my catkin workspace to build with cmake flag RelWithDebInfo by default), I get the following error message:

____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
Errors     << open3d_catkin:cmake /home/ynava/workspaces/open3dslam_ws/logs/open3d_catkin/build.cmake.000.log                                                                                                                                                                                            
INFO: Found Open3D.
Open3D libraries: Open3D::Open3D
Open3D include path: /usr/include , /usr/lib/x86_64-linux-gnu/cmake/Open3D/../../../include/
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkin_package.cmake:300 (message):
  catkin_package() absolute include dir
  '/usr/lib/x86_64-linux-gnu/cmake/Open3D/../../../include/' does not exist
Call Stack (most recent call first):
  /opt/ros/noetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
  CMakeLists.txt:54 (catkin_package)

It seems that the library is not found correctly within my system.

What could be happening?

Thanks in advance for your support.

Best, Yoshua

YoshuaNava avatar Sep 21 '22 07:09 YoshuaNava

Hi yoshua, We will look at it, thanks for reporting. Recently Edo and I changed the structure quite a bit to make it more flexible, maybe we missed something.

nubertj avatar Sep 21 '22 09:09 nubertj

No prob, thank you for looking into it.

(I wanted to delve a bit deeper but I had to switch tasks, so I opened the issue to not miss on the feedback, as it could happen to other users)

YoshuaNava avatar Sep 21 '22 10:09 YoshuaNava

Hi Yoshua,

Thank you for reporting this installation error. I'll try to reproduce it on my machine. Meanwhile, if you wanna play around and test stuff, you could try to build from source. Did you try that yet?

jelavice avatar Sep 21 '22 14:09 jelavice

yep, maybe just do it without the ppa installation and check whether this works for you. I am checking the ppa one right now.

nubertj avatar Sep 24 '22 23:09 nubertj

@YoshuaNava, I could reproduce your error. Can you please check #41? Hopefully this solves it.

nubertj avatar Sep 25 '22 00:09 nubertj

please reopen if there are still issues

nubertj avatar Oct 19 '22 16:10 nubertj