<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1177503860;
        mso-list-type:hybrid;
        mso-list-template-ids:615579612 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’ve got a basic one, probably an effect of the sunny days of summer..<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m trying to build the watershed examples in<o:p></o:p></p><p class=MsoNormal><a href="http://www.vtk.org/Wiki/ITK/Examples/Segmentation/WatershedImageFilter">http://www.vtk.org/Wiki/ITK/Examples/Segmentation/WatershedImageFilter</a><o:p></o:p></p><p class=MsoNormal>and<o:p></o:p></p><p class=MsoNormal><a href="http://www.vtk.org/Wiki/ITK/Examples/WishList/Segmentation/MorphologicalWatershedImageFilter">http://www.vtk.org/Wiki/ITK/Examples/WishList/Segmentation/MorphologicalWatershedImageFilter</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Since they use ITK 4, I just checked-out the latest ITK on the git, and built it using:<o:p></o:p></p><p class=MsoNormal>BUILD_SHARED_LIBS ON<o:p></o:p></p><p class=MsoNormal>BUILD_STATIC_EXECS ON<o:p></o:p></p><p class=MsoNormal>The libraries build correctly.<o:p></o:p></p><p class=MsoNormal>My PATH contains C:\Users\Hugues\Documents\DEV\BUILD\ITK\ITK-git\lib\Debug<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>When I run WatershedImageFilter.exe it says<o:p></o:p></p><p class=MsoNormal>“<b>The program can't start because ITKCommon-4.0.dll is missing from your computer</b>.”<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></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<o:p></o:p></p><p class=MsoNormal>No dynamic library has been built.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>(1) How to I force the dynamic DLL’s to be created in the ITK build process?<o:p></o:p></p><p class=MsoNormal>I had already set the BUILD_SHARED_LIBS ON in Cmake, but the DLL’s were not built.<o:p></o:p></p><p class=MsoNormal>My Code Generation option is set to Multi-threaded Debug DLL (/MDd) in both ITK build and Example build.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>(2) Alternatively, how do I force my example to use static LIB libraries only?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks for the help!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hugues<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>PS: why is the second example in wish list? Is it not working yet?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>