Page MenuHomePhabricator

Compiling MITK on OSX fails
Closed, DuplicatePublic

Description

When trying to compile the most recent MITK master branch (MITK_BUILD_CONFIGURATION=mitkDiffusion) on OSX it fails with the following error:

[ 30%] Building CXX object dcmdata/apps/CMakeFiles/dcm2xml.dir/dcm2xml.cc.o
In file included from /Users/jakob/dev/MITK-superbuild-diffusion-release/ep/src/DCMTK/ofstd/tests/tvariant.cc:5:
In file included from /Users/jakob/dev/MITK-superbuild-diffusion-release/ep/src/DCMTK/ofstd/include/dcmtk/ofstd/ofvriant.h:375:
In file included from /Users/jakob/dev/MITK-superbuild-diffusion-release/ep/src/DCMTK/ofstd/include/dcmtk/ofstd/variadic/variant.h:19:
/Users/jakob/dev/MITK-superbuild-diffusion-release/ep/src/DCMTK/ofstd/include/dcmtk/ofstd/variadic/helpers.h:57:30: error:
      non-type template argument evaluates to -1, which cannot be narrowed to type 'unsigned long'
      [-Wc++11-narrowing]
: OFintegral_constant<size_t,-1> {};

Related Objects