Hi,

I've successfully built MITK and applications with C++11 support. Two minor
fixes were required

  1) Comment out WARNINGS_AS_ERRORS in Core/Code/CMakeLists.txt. This is
actually a quick-n-dirty workaround that would require to be fixed properly
in upstream using the solution Stefan mentioned.
  2) File Modules/IpPicSupport/mitkPicFileWriter.cpp:145 needs to be
replaced with

        throw std::ios_base::failure("Error during .pic file writing in "
__FILE__);

     The change is the space between " and __FILE__

Thanks,
-F



On Mon, Aug 4, 2014 at 6:02 PM, Kislinskiy, Stefan <
[email protected]> wrote:

> Hi,
>
> you can get rid of this error by either supressing warnings for deprecated
> declarations, or even more quick & dirty by simply commenting out
> WARNINGS_AS_ERRORS in Core/Code/CMakeLists.txt. The C++11 solution would
> probably be to replace this auto_ptr by a unique_ptr. Regarding official
> C++11 support, we discussed this topic nearly a year ago and although we
> would love to allow C++11, there were some good reasons / feedback on the
> mailing list that it might not be as easy as we would like (e.g. support of
> old but wide-spread compilers). However, be assured that this topic isn't
> closed yet.
>
> Cheers,
> Stefan
> ________________________________________
> Von: Félix C. Morency [[email protected]]
> Gesendet: Montag, 4. August 2014 22:12
> An: Miklos Espak
> Cc: [email protected]
> Betreff: Re: [mitk-users] C++11
>
> Thanks all,
>
> MITK Core doesn't build here with
>
>   mitkAffineInteractor.cpp:126:33: error: ‘auto_ptr’ is deprecated
> (declared at /usr/include/c++/4.8/backward/auto_ptr.h:87)
> [-Werror=deprecated-declarations]
>        std::auto_ptr<StateEvent> newStateEvent;
>                                  ^
> cc1plus: all warnings being treated as errors.
>
> Rostislav, do you remember if MITK needed some fixes before building with
> c++11 support or if it built as-is?
>
>
> On Sat, Aug 2, 2014 at 2:16 PM, Miklos Espak <[email protected]<mailto:
> [email protected]>> wrote:
> There was a discussion about this earlier this year. Marco raised a
> cautious question if people would be fine if C++11 was a minimum
> requirement for building MITK. So, I assume that the dependencies of MITK
> (ITK, VTK, CTK) can now be built with C++11.
>
> Miklos
>
>
>
>
> --
> Félix C. Morency, M.Sc.
> Plateforme d’analyse et de visualisation d’images
> Centre Hospitalier Universitaire de Sherbrooke
> Centre de recherche clinique Étienne-Le Bel
> Local Z5-3031 | 819.346.1110 ext 16634
>



-- 
Félix C. Morency, M.Sc.
Plateforme d’analyse et de visualisation d’images
Centre Hospitalier Universitaire de Sherbrooke
Centre de recherche clinique Étienne-Le Bel
Local Z5-3031 | 819.346.1110 ext 16634
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to