Plugin compilation problem (DicomWebviewer 2.4 with Orthanc 1.5.3)

Hi,

for some reason, I cannot compile the OrthancWebViewer2.4 plugin (I am on Boost 1.69). Any clue from the output below?

In file included from /usr/local/include/boost/noncopyable.hpp:15:0,
from /opt/orthanc/Orthanc-1.5.3/Resources/CMake/…/…/Core/Images/ImageAccessor.h:40,
from /opt/orthanc/OrthancWebViewer-2.4/Plugin/ViewerToolbox.h:28,
from /opt/orthanc/OrthancWebViewer-2.4/Plugin/ViewerToolbox.cpp:22:
/usr/local/include/boost/core/noncopyable.hpp: In copy constructor ‘Orthanc::ImageAccessor::ImageAccessor(const Orthanc::ImageAccessor&)’:
/usr/local/include/boost/core/noncopyable.hpp:53:7: error: ‘boost::noncopyable_::noncopyable::noncopyable(const boost::noncopyable_::noncopyable&)’ is private
noncopyable( const noncopyable& );
^
In file included from /opt/orthanc/OrthancWebViewer-2.4/Plugin/ViewerToolbox.h:28:0,
from /opt/orthanc/OrthancWebViewer-2.4/Plugin/ViewerToolbox.cpp:22:
/opt/orthanc/Orthanc-1.5.3/Resources/CMake/…/…/Core/Images/ImageAccessor.h:44:9: error: within this context
class ImageAccessor : public boost::noncopyable
^
/opt/orthanc/OrthancWebViewer-2.4/Plugin/ViewerToolbox.cpp: In member function ‘Orthanc::ImageAccessor OrthancPlugins::ImageReader::GetAccessor() const’:
/opt/orthanc/OrthancWebViewer-2.4/Plugin/ViewerToolbox.cpp:396:12: note: synthesized method ‘Orthanc::ImageAccessor::ImageAccessor(const Orthanc::ImageAccessor&)’ first required here
return accessor;
^
make[2]: *** [CMakeFiles/OrthancWebViewer.dir/Plugin/ViewerToolbox.cpp.o] Error 1
make[1]: *** [CMakeFiles/OrthancWebViewer.dir/all] Error 2
make: *** [all] Error 2

Thanks,
Philippe

Hello,

Please try again with a fresh build directory (remove it, create another one, the re-run CMake).

For reference, here is a working invocation of CMake on Ubuntu 16.04:

cmake ~/OrthancWebViewer-2.4/ -DCMAKE_BUILD_TYPE=Release -DUSE_SYSTEM_ORTHANC_SDK=OFF -DALLOW_DOWNLOADS=ON -DUSE_SYSTEM_GOOGLE_TEST=OFF

Sébastien-