Closed MichaelColonel closed 2 years ago
You can ask help for these on the ITK forum. Even if you could figure out how to resolve these issues, good advice may help to sort them out quicker. It is also important for ITK developers to be aware if backward-incompatible changes causes headaches for ITK users.
There was a predefined constant, which conflicts with a POSIX enumeration constant from ITK KWSys Status class. I've made a workaround to prevent a compilation error. ITK forum question.
/// This workaround prevents a compilation fail with ITK-5.3
/// Something defines POSIX in preprocessor, and it conflicts
/// with ITK KWSys POSIX enumeration constant
#if (ITK_VERSION_MAJOR == 5) && (ITK_VERSION_MINOR > 2) && defined(POSIX)
#define PLMPOSIX_TMP (POSIX)
#undef POSIX
#endif
#include "itkImageFileReader.h"
#ifdef PLMPOSIX_TMP
#define POSIX (PLMPOSIX_TMP)
#undef PLMPOSIX_TMP
#endif
I've made a PR to plastimatch gitlab repository.
Plastimatch build is failed after ITK-5.3 upgrade on Linux. CDash shows that Windows build is OK, Linux build is failed!
Problem files:
If i understood correctly, the problem is with a itkImageFileReader include. If this include is commented and there are no readers in these files, the compilation finishes without problems.