<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="Apple-style-span" style="font-family: times, serif; ">Dear ITKers,</span><br></div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div id="yiv1602682209"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-family: times, serif; "><br></div><div style="font-family: times, serif; ">Please help to look at what's wrong with my CMake setting when I tried to build InsightApplication&nbsp;<span class="yiv1602682209Apple-style-span" style="background-color: rgb(230, 230, 230); font-family: sans-serif;
 ">3.20.0&nbsp;</span>with FLTK&nbsp;<span class="yiv1602682209Apple-style-span" style="background-color: rgb(230, 230, 230); font-family: sans-serif; ">1.3.0</span>.</div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="font-family: times, serif; "><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><b><span class="yiv1602682209Apple-style-span" style="font-family: times, serif; ">IDE: Windows 7, VS2008</span><font class="yiv1602682209Apple-style-span" face="sans-serif">.</font></b></div><div style="font-family: times, serif; "><font class="yiv1602682209Apple-style-span" color="#000000"><span class="yiv1602682209Apple-style-span" style="background-color: rgb(230, 230, 230); font-family: sans-serif; "><br></span></font></div><div style="font-family: times, serif; ">FLTK was built successfully using CMake and VS2008 in Debug mode at <font
 class="yiv1602682209Apple-style-span" color="#ff0000">C:/Project/fltk-1.3.0</font> (the binary directory for FLTK CMake),&nbsp;</div><div style="font-family: times, serif; "><font class="yiv1602682209Apple-style-span" size="3">and was installed to&nbsp;</font><span class="yiv1602682209Apple-style-span" style="font-family: 'Times New Roman'; "><font class="yiv1602682209Apple-style-span" color="#ff0000">C:/Program Files (x86)/FLTK</font></span><span class="yiv1602682209Apple-style-span" style="color: rgb(0, 128, 0); font-family: 'Times New Roman'; ">.</span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span"><font class="yiv1602682209Apple-style-span" face="'times new roman', 'new york', times, serif">FLTK_FLUID_EXECUTABLE = C:/Program Files (x86)/FLTK/bin/fluid.exe</font><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span
 class="yiv1602682209Apple-style-span" style="font-family: times, serif; ">FLTK_INCLUDE_DIR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&nbsp;</span><span class="yiv1602682209Apple-style-span"><font class="yiv1602682209Apple-style-span" face="'times new roman', 'new york', times, serif">C:/Program Files (x86)/FLTK/include</font></span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="font-family: times, serif; ">The&nbsp;</span><span class="yiv1602682209Apple-style-span"><font class="yiv1602682209Apple-style-span" color="#ff0000">C:/Program Files (x86)/FLTK/lib</font></span><span class="yiv1602682209Apple-style-span" style="color:rgb(0, 128, 0);"> </span>contains<span class="yiv1602682209Apple-style-span" style="color:rgb(0, 128, 0);">&nbsp;</span><span class="yiv1602682209Apple-style-span" style="font-family: times, serif; "><font class="yiv1602682209Apple-style-span"
 color="#00bf60">fltkimagesd.lib&nbsp;fltkd.lib</font> etc.</span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="font-size: 16px; font-family: times, serif; "><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="font-size: 16px; font-family: times, serif; ">I was not sure what FLTK_DIR I should define for InsightApplication (build in Debug mode too), so I tried&nbsp;</span><font class="yiv1602682209Apple-style-span" color="#008000"><span class="yiv1602682209Apple-style-span" style="font-size:12px;"><br></span></font></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="font-size: 16px; font-family: times, serif; "><br></span></div><blockquote style="font-family: 'times new roman', 'new york', times, serif;
 margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span class="yiv1602682209Apple-style-span" style="font-family: times, serif; ">&lt;1&gt;<span class="yiv1602682209Apple-style-span" style="font-size:16px;">&nbsp;</span><span class="yiv1602682209Apple-style-span" style="font-family: 'Times New Roman'; "><font class="yiv1602682209Apple-style-span" color="#ff0000">C:/Program Files (x86)/FLTK</font>, can configure,</span><br></span>but build-error in VS:&nbsp;fatal error LNK1104: cannot open file 'fltk_images.lib'.&nbsp;<div>build command requires&nbsp;fltk_images.lib fltk_jpeg.lib fltk_png.lib fltk_zlib.lib...</div><div><br></div><span class="yiv1602682209Apple-style-span" style="font-family: times, serif;
 ">&lt;2&gt;&nbsp;</span>so I instead tried&nbsp;<font class="yiv1602682209Apple-style-span" color="#ff0000">C:/Program Files (x86)/FLTK/CMake</font>, as inspired by an earlier post.&nbsp;<div>but the configure can't complete because it can't load&nbsp;CMakeCache.txt.</div><div>I
 copied&nbsp;CMakeCache.txt from&nbsp;<span class="yiv1602682209Apple-style-span" style="font-size: 16px; font-family: times, serif; ">C:/Project/fltk-1.3.0 over, can configure.</span></div><div>build error in VS:&nbsp;fatal error LNK1104: cannot open file 'fltk_zlib.lib'</div><div>build command requires differently this time:&nbsp;"C:\Program Files (x86)\FLTK\lib\fltkimagesd.lib" "C:\Program Files (x86)\FLTK\lib\fltkjpegd.lib" "C:\Program Files (x86)\FLTK\lib\fltkpng.lib" fltk_zlib.lib "C:\Program Files (x86)\FLTK\lib\fltkd.lib" ...</div><div><br></div><div>Seems that it get all right with the debug library except zlib!</div><div><br></div></blockquote><blockquote style="font-family: 'times new roman', 'new york', times, serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial;
 padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span class="yiv1602682209Apple-style-span" style="font-family: times, serif; ">&lt;3&gt;&nbsp;</span><span class="yiv1602682209Apple-style-span" style="font-size: 16px; font-family: times, serif; ">&nbsp;At last I tried&nbsp;</span><font class="yiv1602682209Apple-style-span" color="#ff0000" style="font-size: 16px; font-family: times, serif; ">C:/Project/fltk-1.3.0</font><span class="yiv1602682209Apple-style-span" style="font-size: 16px; font-family: times, serif; ">, the same error and command line as&nbsp;<span class="yiv1602682209Apple-style-span">&lt;1&gt;</span>.</span></blockquote><font class="yiv1602682209Apple-style-span" face="'times new roman', 'new york', times, serif" style="font-family: 'times new roman', 'new york', times, serif; "><div><br></div></font><div style="font-family: 'times new roman', 'new york', times, serif; "><font
 class="yiv1602682209Apple-style-span" face="'times new roman', 'new york', times, serif">&lt;2&gt; seems to be more correct as it might read settings in&nbsp;<font class="yiv1602682209Apple-style-span" color="#00bf60">FLTKLibraries-debug.cmake</font> in&nbsp;</font><span class="yiv1602682209Apple-style-span" style="color:rgb(255, 0, 0);">C:/Program Files (x86)/FLTK/CMake</span>&nbsp;so that it get the lib files correct, but why only fltk_z is not
 correct?</div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="color:rgb(255, 0, 0);"><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="color:rgb(255, 0, 0);"><span class="yiv1602682209Apple-style-span" style="color: rgb(0, 0, 0); font-family: times, serif; ">Hope someone can enlighten me here that what's wrong and what else might be wrong in my settings?&nbsp;</span></span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="color:rgb(255, 0, 0);"><span class="yiv1602682209Apple-style-span" style="color: rgb(0, 0, 0); font-family: times, serif; "><br></span></span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="color:rgb(255, 0,
 0);"><span class="yiv1602682209Apple-style-span" style="color: rgb(0, 0, 0); font-family: times, serif; ">Many many thanks!</span></span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="color:rgb(255, 0, 0);"><span class="yiv1602682209Apple-style-span" style="color: rgb(0, 0, 0); font-family: times, serif; "><br></span></span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="color:rgb(255, 0, 0);"><span class="yiv1602682209Apple-style-span" style="color: rgb(0, 0, 0); font-family: times, serif; ">Ryan</span></span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="color:rgb(255, 0, 0);"><span class="yiv1602682209Apple-style-span" style="color: rgb(0, 0, 0); font-family: times, serif; "><br></span></span></div><div
 style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="color:rgb(255, 0, 0);"><span class="yiv1602682209Apple-style-span" style="color: rgb(0, 0, 0); font-family: times, serif; "><br></span></span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="color:rgb(255, 0, 0);"><span class="yiv1602682209Apple-style-span" style="color: rgb(0, 0, 0); font-family: times, serif; "><br></span></span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="color:rgb(255, 0, 0);"><span class="yiv1602682209Apple-style-span" style="color: rgb(0, 0, 0); font-family: times, serif; "><br></span></span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="color:rgb(255, 0, 0);"><span
 class="yiv1602682209Apple-style-span" style="color: rgb(0, 0, 0); font-family: times, serif; "><br></span></span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="yiv1602682209Apple-style-span" style="color:rgb(255, 0, 0);"><span class="yiv1602682209Apple-style-span" style="color: rgb(0, 0, 0); font-family: times, serif; "><br></span></span></div></div></div></div><br><br></div></div></div></body></html>