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.
docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc-plugins:1.5.7
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
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
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
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.
**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