Open artificiel opened 8 months ago
@artificiel thanks for the report, we'll look into it.
https://github.com/luxonis/depthai-core/pull/980 should address the issue - do you mind trying it out @artificiel ?
This seems to be the only place that this issue is being discussed. I tried #980 but it didn't work. Adding the following did work:
# Check if JsonCpp target does not exist and then create it manually
if(NOT TARGET JsonCpp::JsonCpp)
# Attempt to find JsonCpp library - modify paths as needed
find_library(JSONCPP_LIBRARY NAMES jsoncpp PATHS /opt/homebrew/Cellar/jsoncpp/1.9.5/lib /usr/local/lib)
find_path(JSONCPP_INCLUDE_DIR NAMES json/json.h PATHS /opt/homebrew/Cellar/jsoncpp/1.9.5/include /usr/local/include)
# Create an imported target
add_library(JsonCpp::JsonCpp SHARED IMPORTED)
set_target_properties(JsonCpp::JsonCpp PROPERTIES
IMPORTED_LOCATION "${JSONCPP_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${JSONCPP_INCLUDE_DIR}")
endif()
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):(without PCL everything compiles fine (dynamic libs and examples))