Doc-Cirrus / orthanc-mongodb

Orthanc MongoDB plugin
Other
19 stars 16 forks source link

Orthnac Docker & MongoDB Plugin #24

Open Comiere opened 4 years ago

Comiere commented 4 years ago

Hello, I am trying to install MongoDB plugin on Orthanc Docker but getting an error at the binding stage (see the error at the bottom). I really appreciate if someone can help me to resolve the issue.

  1. docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc-plugins:1.5.7
  2. docker container ps –a (List of container)
  3. docker exce –it containerId bash
  4. Download Mongo-C Driver - mongo-c-driver-1.17.0-beta2.tar.gz
  5. tar -xzf mongo-c-driver-1.17.0-beta2.tar.gz
  6. mdir –p mongo-c-driver-1.17.0/build
  7. cd mongo-c-driver-1.17.0/build
  8. cmake -DCMAKE_C_FLAGS='-fPIC' -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DENABLE_STATIC=ON -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF -DENABLE_ICU=OFF
  9. make
  10. make install
  11. Prerequisite: MongoDB C++ Driver https://github.com/mongodb/mongo-cxx-driver/releases a. mongo-cxx-driver-r3.4.2.tar.gz b. tar –xvf mongo-cxx-driver-r3.4.2.tar.gz c. mkdir p- mongo-cxx-driver/build d. cmake -DCMAKE_CXX_FLAGS='-fPIC' -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DLIBBSON_DIR=/usr/local -DLIBMONGOC_DIR=/usr/local .. e. make f. make install
  12. Prerequisite: JsonCpp (1.8.0 exact) a. curl -L --output jsoncpp-1.8.0.tar.gz https://github.com/open-source-parsers/jsoncpp/archive/1.8.0.tar.gz b. tar -xzf jsoncpp-1.8.0.tar.gz c. mkdir -p jsoncpp-1.8.0/build d. cd jsoncpp-1.8.0/build e. cmake -DCMAKE_CXX_FLAGS='-fPIC' -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release .. f. make g. make inastall
  13. Make install Download Main Orthanc-Mongo Plugin a. https://github.com/Doc-Cirrus/orthanc-mongod OR b. git clone https://github.com/Doc-Cirrus/orthanc-mongodb.git c. mkdir -p orthanc-mongodb/build d. cd orthanc-mongodb/build e. cmake -DCMAKE_CXX_FLAGS='-fPIC' -DCMAKE_INSTALL_PREFIX=/usr \ f. -DCMAKE_BUILD_TYPE=Release -DORTHANC_ROOT=/root/Orthanc \ -DAUTO_INSTALL_DEPENDENCIES=ON . g. Make

**Error --- /root/orthanc-mongodb/Core/Configuration.h:26:10: fatal error: orthanc/OrthancCPlugin.h: No such file or directory

include <orthanc/OrthancCPlugin.h>**

Thanks in advance Imran

Betalos commented 4 years ago

Well looks like you need to download the Orthanc source and point to it

-DORTHANC_ROOT=orthancSourcePath/OrthancServer

if you'r using latest version (1.7.4)