Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orthnac Docker & MongoDB Plugin #24

Open
Comiere opened this issue Sep 14, 2020 · 1 comment
Open

Orthnac Docker & MongoDB Plugin #24

Comiere opened this issue Sep 14, 2020 · 1 comment

Comments

@Comiere
Copy link

Comiere commented Sep 14, 2020

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
Copy link
Contributor

Betalos commented Oct 7, 2020

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants