<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi!<div>I am using Module_ITKIOMINC in my project. When I do not include Module_ITKV3Compatibility everything works fine.</div><div>Unfortunately, some parts of my project are using functions from both modules.</div>

<div><br></div><div>When I build the project with both modules, I am getting linker errors. It seems that HDF5 is not linked in.</div><div><br></div><div>I use:</div><div>cmake 2.8.12.2</div><div>itk 4,.5.1</div><div>gcc 4.6.3</div>

<div>Ubuntu 12.04</div><div><br></div><div>Anka</div><div><br></div><div>The errors are:</div><div><br></div><div><div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(datatype.c.o): In function `miget_data_type_size':</div>
<div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/datatype.c:41: undefined reference to `H5Dopen1'</div>
<div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(grpattr.c.o): In function `milist_attr_next':</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/grpattr.c:188: undefined reference to `H5Aiterate1'</div>

<div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(grpattr.c.o): In function `miget_attr_length':</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/grpattr.c:522: undefined reference to `H5Aopen_name'</div>

<div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(grpattr.c.o): In function `miget_attr_type':</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/grpattr.c:621: undefined reference to `H5Aopen_name'</div>

<div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(grpattr.c.o): In function `miget_attr_values':</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/grpattr.c:804: undefined reference to `H5Aopen_name'</div>

<div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(grpattr.c.o): In function `miset_attr_values':</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/grpattr.c:952: undefined reference to `H5Dopen1'</div>

<div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/grpattr.c:963: undefined reference to `H5Dopen1'</div><div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(hyper.c.o): In function `mirw_hyperslab_raw':</div>

<div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/hyper.c:408: undefined reference to `H5Dopen1'</div><div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(hyper.c.o): In function `mirw_hyperslab_icv':</div>

<div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/hyper.c:621: undefined reference to `H5Dopen1'</div><div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(hyper.c.o): In function `mirw_hyperslab_normalized':</div>

<div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/hyper.c:1096: undefined reference to `H5Dopen1'</div><div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(m2util.c.o):/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/m2util.c:298: more undefined references to `H5Dopen1' follow</div>

<div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(m2util.c.o): In function `miget_attribute':</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/m2util.c:438: undefined reference to `H5Aopen_name'</div>

<div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(m2util.c.o): In function `minc_update_thumbnail':</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/m2util.c:1668: undefined reference to `H5Dopen1'</div>

<div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/m2util.c:1706: undefined reference to `H5Dcreate1'</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/m2util.c:1710: undefined reference to `H5Dopen1'</div>

<div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/m2util.c:1731: undefined reference to `H5Dcreate1'</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/m2util.c:1736: undefined reference to `H5Dopen1'</div>

<div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/m2util.c:1741: undefined reference to `H5Dcreate1'</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/m2util.c:1746: undefined reference to `H5Dopen1'</div>

<div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(m2util.c.o): In function `create_dataset':</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/m2util.c:1951: undefined reference to `H5Dcreate1'</div>

<div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(m2util.c.o): In function `create_standard_dataset':</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/m2util.c:1990: undefined reference to `H5Dcreate1'</div>

<div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(m2util.c.o): In function `miget_scalar':</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/m2util.c:2276: undefined reference to `H5Dopen1'</div>

<div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(volprops.c.o): In function `miselect_resolution':</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/volprops.c:267: undefined reference to `H5Dopen1'</div>

<div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/volprops.c:274: undefined reference to `H5Dopen1'</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/volprops.c:280: undefined reference to `H5Dopen1'</div>

<div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(volume.c.o): In function `micreate_volume_image':</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/volume.c:292: undefined reference to `H5Dcreate1'</div>

<div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/volume.c:346: undefined reference to `H5Dcreate1'</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/volume.c:346: undefined reference to `H5Dcreate1'</div>

<div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/volume.c:360: undefined reference to `H5Dcreate1'</div><div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(volume.c.o): In function `micreate_volume':</div>

<div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/volume.c:664: undefined reference to `H5Dcreate1'</div><div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(volume.c.o):/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/volume.c:703: more undefined references to `H5Dcreate1' follow</div>

<div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(volume.c.o): In function `miget_volume_voxel_count':</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/volume.c:976: undefined reference to `H5Dopen1'</div>

<div>/export01/anka/itk4.5.1/itk4.5.1inst/lib/libitk_minc2.a(volume.c.o): In function `miopen_volume':</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/volume.c:1314: undefined reference to `H5Dopen1'</div>

<div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/volume.c:1348: undefined reference to `H5Dopen1'</div><div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/volume.c:1390: undefined reference to `H5Dopen1'</div>

<div>/export01/anka/itk4.5.1/deb/Modules/ThirdParty/MINC/ITKMINC2_ExternalProject/libsrc2/volume.c:1391: undefined reference to `H5Dopen1'</div><div>collect2: ld returned 1 exit status</div><div><br></div></div></div>
</div><br></div>