From 0ba428b27c4c63838ccf8a77c6ce689eb50f5ae7 Mon Sep 17 00:00:00 2001 From: AngePierre Date: Thu, 10 Sep 2026 17:04:52 +0200 Subject: [PATCH] recorder: default OB_SDK_LIB_NAME to OrbbecSDK for SDK v2.4.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The example CMakeLists expected OB_SDK_LIB_NAME, which SDK v2.8.6 sets in the example scope but v2.4.3 (JetPack 6) does not — leaving a link to bare "ob::" that fails at generate time. The stock examples link ob::OrbbecSDK, so default to that when unset. Keeps the Nano's build working. Co-Authored-By: Claude Opus 5 (1M context) --- recorder/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/recorder/CMakeLists.txt b/recorder/CMakeLists.txt index 8ec3066..105f0dd 100644 --- a/recorder/CMakeLists.txt +++ b/recorder/CMakeLists.txt @@ -52,6 +52,13 @@ if(WIN32) set(K4ARECORD_LIB "${K4A_WRAPPER_DIR}/${K4A_WRAPPER_BUILD_SUBDIR}/bin/k4arecord.lib") endif() +# The SDK's library-target name. v2.8.6 (the Nano) sets OB_SDK_LIB_NAME in the +# example scope; v2.4.3 (JetPack 6 Orin) does not, leaving "ob::" — a CMake error. +# The stock examples link ob::OrbbecSDK, so default to that when it is unset. +if(NOT OB_SDK_LIB_NAME) + set(OB_SDK_LIB_NAME OrbbecSDK) +endif() + target_link_libraries(${PROJECT_NAME} ob::${OB_SDK_LIB_NAME} ob::examples::utils