• ROS
  • Set depthai_FOUND to FALSE so package "depthai" is considered to be NOT FOUND

I am trying to implement an Oak-D camera into another ROS library. I have depthai-core installed and built in the same folder as the library's workspace. In the CMakeLists.txt, I have find_packages(depthai CONFIG REQUIRED), at which point I get the following error:

CMake Error at CMakeLists.txt:12 (find_package):

Found package configuration file:

/home/\*\*\*/depthai-core/build/depthaiConfig.cmake

but it set depthai_FOUND to FALSE so package "depthai" is considered to be NOT FOUND.

After googling around I still have absolutely no idea how to potentially fix this. Any help would be appreciated.

  • erik replied to this.

    erik I solved this by simply deleting and reinstalling depthai, but now I'm running into an issue including depthai.hpp:

    fatal error: depthai/depthai.hpp: No such file or directory

    I've added depthai::opencv in targetlinklibraries but I can't get around this error.

    Should this also be opened as an issue?