Dear users, <div><br></div><div>I had tried to compile ITK with Eclipse on MAC (snow leopard) and got following error :</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><p class="p1">







</p><p class="p1">Scanning dependencies of target H5detect</p>
<p class="p1">/usr/bin/make -f Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/H5detect.dir/build.make Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/H5detect.dir/build</p>
<p class="p1">&quot;/Applications/CMake 2.8-7.app/Contents/bin/cmake&quot; -E cmake_progress_report /Developer/ITK/ITK-4.1/Build/Debug/CMakeFiles </p>
<p class="p1">[ 17%] Building C object Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/H5detect.dir/H5detect.c.o</p>
<p class="p1">cd /Developer/ITK/ITK-4.1/Build/Debug/Modules/ThirdParty/HDF5/src/itkhdf5/src &amp;&amp; /usr/bin/gcc  -DDEBUG -DH5Z_DEBUG -DH5V_DEBUG -DH5T_DEBUG -DH5S_DEBUG -DH5P_DEBUG -DH5O_DEBUG -DH5MM_DEBUG -DH5MF_DEBUG -DH5I_DEBUG -DH5HL_DEBUG -DH5HG_DEBUG -DH5G_DEBUG -DH5F_DEBUG -DH5E_DEBUG -DH5D_DEBUG -DH5B_DEBUG -DH5AC_DEBUG -Wno-uninitialized -Wno-unused-parameter -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -funit-at-a-time -Wno-strict-overflow  -w -static -std=c99 -finline-functions -fno-common -fmessage-length=0 -g -I/Developer/ITK/ITK-4.1/Build/Debug/Modules/ThirdParty/ZLIB/src -I/Developer/ITK/ITK-4.1/InsightToolkit-4.1.0/Modules/ThirdParty/ZLIB/src -I/Developer/ITK/ITK-4.1/InsightToolkit-4.1.0/Modules/ThirdParty/HDF5/src -I/Developer/ITK/ITK-4.1/Build/Debug/Modules/ThirdParty/HDF5/src -I/Developer/ITK/ITK-4.1/Build/Debug/Modules/ThirdParty/HDF5/src/itkhdf5 -I/Developer/ITK/ITK-4.1/InsightToolkit-4.1.0/Modules/ThirdParty/HDF5/src/itkhdf5/src -I/Developer/ITK/ITK-4.1/InsightToolkit-4.1.0/Modules/ThirdParty/HDF5/src/itkhdf5 -I/Developer/ITK/ITK-4.1/Build/Debug    -UNDEBUG -Wall -o CMakeFiles/H5detect.dir/H5detect.c.o   -c /Developer/ITK/ITK-4.1/InsightToolkit-4.1.0/Modules/ThirdParty/HDF5/src/itkhdf5/src/H5detect.c</p>

<p class="p1">Linking C executable ../../../../../../bin/H5detect</p>
<p class="p1">cd /Developer/ITK/ITK-4.1/Build/Debug/Modules/ThirdParty/HDF5/src/itkhdf5/src &amp;&amp; &quot;/Applications/CMake 2.8-7.app/Contents/bin/cmake&quot; -E cmake_link_script CMakeFiles/H5detect.dir/link.txt --verbose=1</p>

<p class="p1">/usr/bin/gcc     -Wno-uninitialized -Wno-unused-parameter -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -funit-at-a-time -Wno-strict-overflow  -w -static -std=c99 -finline-functions -fno-common -fmessage-length=0 -g -Wl,-search_paths_first -Wl,-headerpad_max_install_names    CMakeFiles/H5detect.dir/H5detect.c.o  -o ../../../../../../bin/H5detect  </p>

<p class="p2"><font color="#ff0000">ld: library not found for -lcrt0.o</font></p>
<p class="p1">collect2: ld returned 1 exit status</p>
<p class="p1">make[2]: *** [bin/H5detect] Error 1</p>
<p class="p1">make[1]: *** [Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/H5detect.dir/all] Error 2</p>
<p class="p1">make: *** [all] Error 2</p><p></p></blockquote><div>













<p class="p1"><br></p><p class="p1">Do I need install HDF5 before installing ITK and how I can preset it ? I found directory HDF5 in ThirdParty directory and read README, but did not understand basic idea from it. </p><p class="p1">
I found two variables concerning HDF5 using cmake gui : </p><p class="p1">- HDF5_BUILD_WITH_INSTALL_NAME , but I am not able to determine what is meant by &#39;with install name&#39; ?? </p><p class="p1">- ITK_USE_SYSTEM_HDF5 , from this variable I would conclude that ITK has some internal support for HDF5 but from the error I would say that it does not have. </p>
<p class="p1">Besides HDF5,  I do not know how I should fill CMAKE_INSTALL_NAME_TOOL it is set to /usr/bin/install_name_tool , what it should be ?</p><p class="p1"><br></p><p class="p1">Does anyone have tip how to solve ? </p>
<p class="p1">Thanks in advance, any idea would be great.</p><p class="p1">Jana</p><p class="p1"><br></p><p class="p1"><br></p><p class="p1"><br></p></div>