Try adding:<br>C:\Users\Hugues\Documents\DEV\BUILD\ITK\ITK-git\bin\Debug<br>to your path.<br><br><div class="gmail_quote">On Mon, Aug 8, 2011 at 7:52 AM, Hugues Fontenelle <span dir="ltr">&lt;<a href="mailto:hugues.fontenelle@rr-research.no">hugues.fontenelle@rr-research.no</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal">Hello<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’ve got a basic one, probably an effect of the sunny days of summer..<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’m trying to build the watershed examples in<u></u><u></u></p>
<p class="MsoNormal"><a href="http://www.vtk.org/Wiki/ITK/Examples/Segmentation/WatershedImageFilter" target="_blank">http://www.vtk.org/Wiki/ITK/Examples/Segmentation/WatershedImageFilter</a><u></u><u></u></p><p class="MsoNormal">
and<u></u><u></u></p><p class="MsoNormal"><a href="http://www.vtk.org/Wiki/ITK/Examples/WishList/Segmentation/MorphologicalWatershedImageFilter" target="_blank">http://www.vtk.org/Wiki/ITK/Examples/WishList/Segmentation/MorphologicalWatershedImageFilter</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Since they use ITK 4, I just checked-out the latest ITK on the git, and built it using:<u></u><u></u></p><p class="MsoNormal">BUILD_SHARED_LIBS ON<u></u><u></u></p>
<p class="MsoNormal">BUILD_STATIC_EXECS ON<u></u><u></u></p><p class="MsoNormal">The libraries build correctly.<u></u><u></u></p><p class="MsoNormal">My PATH contains C:\Users\Hugues\Documents\DEV\BUILD\ITK\ITK-git\lib\Debug<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">When I run WatershedImageFilter.exe it says<u></u><u></u></p><p class="MsoNormal">“<b>The program can&#39;t start because ITKCommon-4.0.dll is missing from your computer</b>.”<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Indeed my C:\Users\Hugues\Documents\DEV\BUILD\ITK\ITK-git\lib\Debug contains only the static libs, among which ITKCommon-4.0.lib<u></u><u></u></p><p class="MsoNormal">
No dynamic library has been built.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">(1) How to I force the dynamic DLL’s to be created in the ITK build process?<u></u><u></u></p><p class="MsoNormal">
I had already set the BUILD_SHARED_LIBS ON in Cmake, but the DLL’s were not built.<u></u><u></u></p><p class="MsoNormal">My Code Generation option is set to Multi-threaded Debug DLL (/MDd) in both ITK build and Example build.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">(2) Alternatively, how do I force my example to use static LIB libraries only?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks for the help!<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><font color="#888888"><p class="MsoNormal">Hugues<u></u><u></u></p></font><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">PS: why is the second example in wish list? Is it not working yet?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>