Mercurial > hg > orthanc-dicomweb
changeset 734:6978b0205975
sync
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Tue, 02 Dec 2025 17:10:01 +0100 |
| parents | 6baed50da311 |
| children | 6b1662a58927 |
| files | Resources/Orthanc/CMake/Compiler.cmake Resources/Orthanc/CMake/DownloadOrthancFramework.cmake Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp |
| diffstat | 3 files changed, 21 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 )
--- 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()
--- 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); }
