From 1f37b47c7be83f3b699c7d710d01067e8f9b50b3 Mon Sep 17 00:00:00 2001 From: SeptimiuVana Date: Wed, 17 Jan 2024 15:22:52 +0200 Subject: [PATCH] sdk/sensor_enumerator_raspberrypi: fix build Signed-off-by: SeptimiuVana --- bindings/opencv/maskrcnn/CMakeLists.txt | 4 ++++ .../raspberrypi/sensor_enumerator_raspberrypi.cpp | 2 +- .../raspberrypi/sensor_enumerator_raspberrypi.cpp | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bindings/opencv/maskrcnn/CMakeLists.txt b/bindings/opencv/maskrcnn/CMakeLists.txt index 3a4557cbd..900516e28 100644 --- a/bindings/opencv/maskrcnn/CMakeLists.txt +++ b/bindings/opencv/maskrcnn/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 2.8) project(aditof-opencv-maskrcnn) +if (RASPBERRYPI) + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") +endif() + add_executable(${PROJECT_NAME} main.cpp) file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/mscoco_labels.names diff --git a/sdk/src/cameras/ad-96tof1-ebz/raspberrypi/sensor_enumerator_raspberrypi.cpp b/sdk/src/cameras/ad-96tof1-ebz/raspberrypi/sensor_enumerator_raspberrypi.cpp index c80169ff3..2620ab1cc 100644 --- a/sdk/src/cameras/ad-96tof1-ebz/raspberrypi/sensor_enumerator_raspberrypi.cpp +++ b/sdk/src/cameras/ad-96tof1-ebz/raspberrypi/sensor_enumerator_raspberrypi.cpp @@ -148,7 +148,7 @@ aditof::Status findDepthSensor(std::string &media, std::string &dev, } Status TargetSensorEnumerator::searchSensors() { - Status status = Status::ok; + Status status = Status::OK; LOG(INFO) << "Looking for sensors on the target: Raspberry PI"; // Find all media device paths diff --git a/sdk/src/cameras/ad-fxtof1-ebz/raspberrypi/sensor_enumerator_raspberrypi.cpp b/sdk/src/cameras/ad-fxtof1-ebz/raspberrypi/sensor_enumerator_raspberrypi.cpp index cb314005c..b592940ac 100644 --- a/sdk/src/cameras/ad-fxtof1-ebz/raspberrypi/sensor_enumerator_raspberrypi.cpp +++ b/sdk/src/cameras/ad-fxtof1-ebz/raspberrypi/sensor_enumerator_raspberrypi.cpp @@ -148,7 +148,7 @@ aditof::Status findDepthSensor(std::string &media, std::string &dev, } Status TargetSensorEnumerator::searchSensors() { - Status status = Status::ok; + Status status = Status::OK; LOG(INFO) << "Looking for sensors on the target: Raspberry PI"; // Find all media device paths