# HG changeset patch # User Alain Mazy # Date 1764691801 -3600 # Node ID 6978b020597579c28faf8117d479a7ca78568fa0 # Parent 6baed50da311baf06f1d5f5424e54b793eea1ac9 sync diff -r 6baed50da311 -r 6978b0205975 Resources/Orthanc/CMake/Compiler.cmake --- a/Resources/Orthanc/CMake/Compiler.cmake Tue Dec 02 16:32:15 2025 +0100 +++ b/Resources/Orthanc/CMake/Compiler.cmake Tue Dec 02 17:10:01 2025 +0100 @@ -21,6 +21,8 @@ # This file sets all the compiler-related flags +message(STATUS "CMAKE_CXX_COMPILER_ID is ${CMAKE_CXX_COMPILER_ID}") +message(STATUS "CMAKE_SYSTEM_NAME is ${CMAKE_SYSTEM_NAME}") if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") # Since Orthanc 1.12.7 that allows CMake 4.0, builds for macOS @@ -246,6 +248,9 @@ # fix this error that appears with recent compilers on MacOS: boost/mpl/aux_/integral_wrapper.hpp:73:31: error: integer value -1 is outside the valid range of values [0, 3] for this enumeration type [-Wenum-constexpr-conversion] SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-enum-constexpr-conversion") + # it seems that some recent MacOS compilers don't set these flags correctly which prevents zlib from building correctly + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64") + add_definitions( -D_XOPEN_SOURCE=1 ) diff -r 6baed50da311 -r 6978b0205975 Resources/Orthanc/CMake/DownloadOrthancFramework.cmake --- a/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake Tue Dec 02 16:32:15 2025 +0100 +++ b/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake Tue Dec 02 17:10:01 2025 +0100 @@ -175,6 +175,8 @@ set(ORTHANC_FRAMEWORK_MD5 "eb1c719234338e8277b80d3453563e9f") elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.12.9") set(ORTHANC_FRAMEWORK_MD5 "66b5a2ee60706c4a502896083b9e1a01") + elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "1.12.10") + set(ORTHANC_FRAMEWORK_MD5 "d5e1ba442104c89a24013cb859a9d6bf") # Below this point are development snapshots that were used to # release some plugin, before an official release of the Orthanc @@ -215,6 +217,15 @@ # Advanced storage 0.2.2 (framework pre-1.12.10) set(ORTHANC_FRAMEWORK_PRE_RELEASE ON) set(ORTHANC_FRAMEWORK_MD5 "bd5ba2cec329010b912209345acbdeaf") + elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "0ebe8cfd9bf7") + # Worklists plugin 0.9.0 (framework pre-1.12.10) + set(ORTHANC_FRAMEWORK_PRE_RELEASE ON) + set(ORTHANC_FRAMEWORK_MD5 "17a5ca9254e881ab89c93d052d4655cb") + elseif (ORTHANC_FRAMEWORK_VERSION STREQUAL "e0979326ac53") + # DICOMweb 1.22 + PG 10.0 (framework post-1.12.10) + # for BlockingSharedMessageQueue + fix SetCurrentThreadName from plugins + set(ORTHANC_FRAMEWORK_PRE_RELEASE ON) + set(ORTHANC_FRAMEWORK_MD5 "e66a7e996d56063b3abb790bb8f12e8d") endif() endif() endif() diff -r 6baed50da311 -r 6978b0205975 Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp --- a/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp Tue Dec 02 16:32:15 2025 +0100 +++ b/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp Tue Dec 02 17:10:01 2025 +0100 @@ -2720,14 +2720,17 @@ return; } - else if (state == "Running" || state == "Pending" || state == "Paused" || state == "Retry") + else if (state == "Running" || + state == "Pending" || + state == "Paused" || + state == "Retry") { continue; } else if (state == "Failure") { if (!status.isMember("ErrorCode") || - status["ErrorCode"].type() != Json::intValue) + status["ErrorCode"].type() != Json::intValue) { ORTHANC_PLUGINS_THROW_PLUGIN_ERROR_CODE(OrthancPluginErrorCode_InternalError); }