Page MenuHomePhabricator

Conflict between BOOST_DATE_TIME_NO_LIB und MITK_USE_BOOST_LIEBRARIES
Closed, ResolvedPublic

Description

If MITK_USE_BOOST_LIEBRERIES is used to trigger the building of boost libs in the superbuild, it sets –DBOOST_ALL_DYN_LINK.

BOOST_ALL_DYN_LINK overwrites any BOOST_DATE_TIME_NO_LIB definition used in mitk code.

BOOST_DATE_TIME_NO_LIB is used in the new DicomReader see T17819 to keep it header only despite the use of boost date time.
As soon as MITK_USE_BOOST_LIEBRERIES is activated it causes linker errors even though we are header only.

Currently the solution with the best benefit/cost ratio found was to localy undef BOOST_ALL_DYN_LINK.

Event Timeline

User floca has pushed new remote branch:

bug-19388-Conflict_between_BOOST_DATE_TIME_NO_LIB_and_MITK_USE_BOOST_LIEBRARIES

If I didn't overlook something, you don't need a Core Modification flag (only changed file is in Modules/DICOMReader)?

Oops, you are right. There is nothing that touches the core. Thanks for the hint.

reset status. Was wrongly set to resolved before merging into master

[284ca2]: Merge branch 'bug-19388-Conflict_between_BOOST_DATE_TIME_NO_LIB_and_MI

Merged commits:

2015-10-21 23:33:27 Ralf Floca [8bbabd]

Signed-off-by: Ralf Floca <r.floca@dkfz-heidelberg.de>