-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
I have ITK 5.4 installed via conda, which installs a more recent version of the nifti library, see e.g. https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/ThirdParty/NIFTI/src/nifti/niftilib/nifti1.h and https://github.com/NIFTI-Imaging/nifti_clib/commits/master/niftilib/nifti1.h vs https://github.com/KCL-BMEIS/niftyreg/blob/master/reg-io/nifti/nifti1.h.
This causes problems when building our SIRF software that depends on both ITK and NiftyReg such as
/home/kris/devel/install/include/nifti1_io.h:255:10: error: conflicting declaration of C function 'char* nifti_intent_string(int)'
255 | char *nifti_intent_string ( int ii ) ;
| ^~~~~~~~~~~~~~~~~~~
/home/kris/miniconda3/envs/cilsirfbuildGTROOT/include/ITK-5.4/nifti1_io.h:249:13: note: previous declaration 'const char* nifti_intent_string(int)'
249 | char const *nifti_intent_string ( int ii ) ;
There are a few ways to avoid version conflicts like this:
- upgrade nifti library here and hope there is no conflict anymore
- offer to build with extern nifti
- rename all nifti files and functions in the local version
I suppose the 2nd option is the least painful.
Metadata
Metadata
Assignees
Labels
No labels