depthai-core icon indicating copy to clipboard operation
depthai-core copied to clipboard

[BUG] problem generating CMake files when PCL is present (macOS14.4)

Open artificiel opened this issue 1 year ago • 3 comments

When using PCL (on macOS14.4, installed via brew install pcl) there is a problem with some names related to jsoncpp (did not find reference to this in the existing issues):

CMake Error at /opt/homebrew/lib/cmake/vtk-9.3/VTK-targets.cmake:1013 (set_target_properties):
  The link interface of target "VTK::jsoncpp" contains:

    JsonCpp::JsonCpp

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  /opt/homebrew/lib/cmake/vtk-9.3/vtk-config.cmake:145 (include)
  /opt/homebrew/share/pcl-1.14/PCLConfig.cmake:275 (find_package)
  /opt/homebrew/share/pcl-1.14/PCLConfig.cmake:324 (find_VTK)
  /opt/homebrew/share/pcl-1.14/PCLConfig.cmake:569 (find_external_library)
  cmake/depthaiDependencies.cmake:85 (find_package)
  CMakeLists.txt:172 (include)

(without PCL everything compiles fine (dynamic libs and examples))

artificiel avatar Mar 15 '24 03:03 artificiel