Trouble building orthanc-dicomweb

847 views
Skip to first unread message

Chris Hafey

unread,
Apr 13, 2015, 9:47:57 AM4/13/15
to orthan...@googlegroups.com
I am trying to build orthanc-dicomweb on a vagrant ubuntu/trusty64 box which uses ubuntu 14.04.2.  I tried following the instructions for Ubuntu 13.10 and while Orthanc built successfully, the orthanc-web plugin failed (I tried both the Generic Linux and Dynamic Linking instructions).  Before I spend time trying to get this work, I figured I would ask what OS is recommended for building the othanc-dicomweb plugin.  If I know this, I can probably find a vagrant box that matches and that should make the build go more smothly.  If anyone wants to try and help me get the vagrant VM going, you can find it here:

Sébastien Jodogne

unread,
Apr 13, 2015, 9:54:51 AM4/13/15
to orthan...@googlegroups.com
Hi,

I am currently on vacation for 1 week, but just a notice that might help in the meantime: I mainly develop Orthanc and its official plugins on a Ubuntu 12.10 box.

HTH,
Sébastien-

Chris Hafey

unread,
Apr 13, 2015, 10:01:37 AM4/13/15
to orthan...@googlegroups.com
OK thanks - and do you generally use the static linking for linux configuration?  I am trying that now on the Ubuntu 14.04.2 box 

Sébastien Jodogne

unread,
Apr 13, 2015, 10:02:52 AM4/13/15
to orthan...@googlegroups.com
No, in general, I use dynamic linking for Linux.

Simon Rascovsky

unread,
Apr 13, 2015, 2:00:11 PM4/13/15
to orthan...@googlegroups.com
I have also been unsuccessful with both dynamic and static linking, for both the webviewer and dicomweb plugins. 

If I understand correctly, to build plugins, GDCM (Grassroots DICOM) and VTK are needed?

There is no apt GDCM package for Ubuntu 14.04 as such, but the individual libraries can be installed, but the build can't find some of them. Should GDCM be compiled from source?

Some of the errors I get are for GDCM bindings to php, vtk .... are these necessary for Orthanc plugins?

Perhaps Sébastien can share some tips on his build process/dependencies when he gets back.

Cheers!

Simon

Sébastien Jodogne

unread,
Apr 13, 2015, 2:13:24 PM4/13/15
to orthan...@googlegroups.com
Hi,

Only GDCM is needed (no VTK), and the binaries of GDCM are available for Debian/Ubuntu:

For more hints, have a look at the following 2 Debian packages:

The orthanc-webviewer package is currently in the Debian NEW queue.

HTH,
Sébastien-

Chris Hafey

unread,
Apr 13, 2015, 10:29:51 PM4/13/15
to orthan...@googlegroups.com
Hi Sébastien,

OK I give up trying to get this to build on Linux. Would love to get your help when your back from vacation getting this vagrant build going - I think it will help many others if we can do it!

Chris

Sébastien Jodogne

unread,
Apr 14, 2015, 2:30:44 AM4/14/15
to Chris Hafey, orthan...@googlegroups.com
Hi,

This very strange, as the official plugins build on a large range of OS, including Windows and FreeBSD... Maybe I have forgotten to commit some file. Could you send the build commands and logs? I will give a look asap.

Sébastien-
--
Sébastien Jodogne
Sent from my smartphone.
Mail: s.jo...@gmail.com
Web: http://www.montefiore.ulg.ac.be/~jodogne/
Twitter: https://twitter.com/sjodogne

Sébastien Jodogne

unread,
Apr 14, 2015, 4:34:09 AM4/14/15
to orthan...@googlegroups.com
Hi,

I have just managed to compile the DICOMweb plugin on my parents' Ubuntu 14.04 box. Here are the commands I have used:

# sudo apt-get install libgdcm2-dev libpugixml-dev
# cmake ~/Orthanc -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON
# make


The complaints of CMake about missing VTK can be ignored.

Sébastien-

Sébastien Jodogne

unread,
Apr 14, 2015, 4:39:33 AM4/14/15
to orthan...@googlegroups.com
Hi,

And here are the build instructions for orthanc-webviewer:

# sudo apt-get install libgdcm2-dev libpugixml-dev
# cmake ~/Orthanc -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE=ON -DALLOW_DOWNLOADS=ON
# make


Does it help with vagrant (which is indeed a great idea)?


Sébastien-


On Monday, April 13, 2015 at 8:00:11 PM UTC+2, Simon Rascovsky wrote:

Sébastien Jodogne

unread,
Apr 14, 2015, 4:40:41 AM4/14/15
to orthan...@googlegroups.com
PS: Of course, replace "~/Orthanc" by the location of the source code of the plugins.

Chris Hafey

unread,
Apr 14, 2015, 8:14:56 AM4/14/15
to orthan...@googlegroups.com
Hi Sébastien,

CMake is failing because it can't find the orthanc plugin headers:

==> default: -- Looking for C++ include orthanc/OrthancCPlugin.h

==> default: -- Looking for C++ include orthanc/OrthancCPlugin.h - not found

==> default: CMake Error at CMakeLists.txt:71 (message):

==> default:   Please install the headers of the Orthanc plugins SDK

I am using a dynamic build which looks for them in a folder named "orthanc" but this doesn't exist.  I am building orthanc from source right before this and those files are in the Plugins/Include directory - should I copy them somewhere else? 

Chris

Chris Hafey

unread,
Apr 14, 2015, 8:52:29 AM4/14/15
to orthan...@googlegroups.com
I got this to work by copying the orthanc plugin files to a folder and specifying that folder as a command line argument to CMAKE.  I don't know if this is the right way to do it, but it works.  You can try it out here:

skyof...@gmail.com

unread,
May 28, 2015, 12:33:55 PM5/28/15
to orthan...@googlegroups.com
Hello Sébastien,

Could you kindly provide the compiled lib/dll of orthanc-webviewer? It is really a lot of trouble to set up the environment and build it, especially in windows environment. It would be a easy start for users who want to try it out!

Mandy


On Tuesday, April 14, 2015 at 10:39:33 AM UTC+2, Sébastien Jodogne wrote:
Message has been deleted

Emsy Chan

unread,
May 28, 2015, 7:20:09 PM5/28/15
to orthan...@googlegroups.com
Hi Mandy,

Apologies for butting in, but the web viewer is already included into Orthanc itself.

I believe that they are discussing on dicom-web, which (if not mistaken) a Dicom standard used in transferring images through http.

Sebastien has a set of precompiled dlls at http://sourceforge.net/projects/orthancserver/files/DevelopmentSnapshots/ .

Hope this answers your queries.

Regards,
Emsy

Mandy

unread,
May 29, 2015, 3:53:11 AM5/29/15
to orthan...@googlegroups.com
Hey Emsy,

Sorry for the mistake, actually I mean the compiled dll of dicom-web, the Orthanc plugin (https://bitbucket.org/sjodogne/orthanc-dicomweb/src). I am trying to build it in windows environment but bumped into a lot of problems.

Mandy

Sébastien Jodogne

unread,
May 29, 2015, 5:03:33 AM5/29/15
to orthan...@googlegroups.com, skyof...@gmail.com
Hello,

You can download a precompiled binary of the current version of the DICOMweb plugin at the following location:
https://edc.ulg.ac.be/merci/2015-05-29-OrthancDicomWe_921479c362b9c2ac1ffc_.dll

This link is only valid until June 12nd, 2015. Indeed, it is currently impossible to upload files to SourceForge. As recommended by the GIMP team, I am now seriously considering leaving SourceForge, because of their bad service.

Please also note that this a development snapshot, and that I have not tested it.

HTH,
Sébastien-

Mandy

unread,
May 29, 2015, 11:04:13 AM5/29/15
to orthan...@googlegroups.com, skyof...@gmail.com
Thanks a lot! It works with Orthanc 0.8.6!
Reply all
Reply to author
Forward
0 new messages