Trouble building orthanc-dicomweb

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:

https://github.com/simonmd/orthanc-vagrant

Chris

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-

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

No, in general, I use dynamic linking for Linux.

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

Hi,

Only GDCM is needed (no VTK), and the binaries of GDCM are available for Debian/Ubuntu:
https://packages.debian.org/search?keywords=libgdcm2-dev

For more hints, have a look at the following 2 Debian packages:
http://anonscm.debian.org/viewvc/debian-med/trunk/packages/orthanc-postgresql/trunk/debian/

http://anonscm.debian.org/viewvc/debian-med/trunk/packages/orthanc-webviewer/trunk/debian/

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

HTH,
Sébastien-

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

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-

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-

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-

PS: Of course, replace “~/Orthanc” by the location of the source code of the plugins.

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

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:

https://github.com/chafey/orthanc-vagrant

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

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

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

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-

Thanks a lot! It works with Orthanc 0.8.6!