orthanc 編譯安裝mysql S3

vx_guanchaoguo0發表於2024-10-14

克隆程式碼 orthanc server

hg clone  https://orthanc.uclouvain.be/hg/orthanc/
sudo apt-get install curl zip unzip tar
cd vcpkg && ./bootstrap-vcpkg.sh

mysql

  • install libmysqlclinet-dev
set(CMAKE_BUILD_TYPE "Release")
set(ORTHANC_FRAMEWORK_VERSION "1.12.4")
set(ORTHANC_FRAMEWORK_SOURCE "path")
set(ORTHANC_SDK_ROOT ${CMAKE_CURRENT_LIST_DIR}/../Resources/Orthanc/Sdk-1.12.4)
set(ORTHANC_FRAMEWORK_ROOT ${CMAKE_CURRENT_LIST_DIR}/../../orthanc/OrthancFramework/Sources)
set(ALLOW_DOWNLOADS  ON)

載入配置

  • main.cpp
  const char* configurationFile = "/mnt/c/Users/Administrator/CLionProjects/orthanc/OrthancServer/Resources/Configuration.json";
  • Configuration.json
"Plugins" : [
    "/mnt/c/Users/Administrator/CLionProjects/orthanc/OrthancServer/Plugins/Plugins/libOrthancMySQLIndex.so"
  ],

  "MySQL" : {
    "EnableIndex" : true,
    "EnableStorage" : false,
    "Host" : "localhost",
    "Port" : 3306,
    "UnixSocket" : "",
    "Database" : "orthanc",
    "Username" : "root",
    "Password" : "123456",
    "Lock" : false,
    "EnableSsl" : false
  },

vcpkg

git clone https://ghp.ci/https://github.com/microsoft/vcpkg.git

s3

set(CMAKE_BUILD_TYPE "Release")
set(ORTHANC_FRAMEWORK_VERSION "1.12.1")
set(ORTHANC_FRAMEWORK_SOURCE "path")
set(ORTHANC_SDK_ROOT ${CMAKE_CURRENT_LIST_DIR}/../Common/Resources/Orthanc/Sdk-1.12.1)
set(ORTHANC_FRAMEWORK_ROOT ${CMAKE_CURRENT_LIST_DIR}/../../orthanc/OrthancFramework/Sources)
set(ALLOW_DOWNLOADS  ON)
set(USE_SYSTEM_ORTHANC_SDK OFF)

相關文章