<div dir="ltr">On windows there's a boolean CMake option to toggle Debug and Release builds:<br><pre><span class="">BFITK_WIN_BUILD_DEBUG<br></span><br></pre><div>It's set to "ON" by default, which means the Debug build will be built. If you actually want the <span style="font-family:arial,helvetica,sans-serif">Debug version then you need to build the Debug build in VC++ 2010 as well. I think VC++ 2010 defaults to "Release", so you probably have a <span style="font-size:9.5pt">"D:/Bioformats_itk/lib/\Release/BioFormatsIOPlugin" right?<br>
<br></span></span></div><div><span style="font-family:arial,helvetica,sans-serif"><span style="font-size:9.5pt">So you can either reconfigure CMake to set that option OFF and build Release, or build the Debug version.<br>
<br></span></span></div><div><span style="font-family:arial,helvetica,sans-serif"><span style="font-size:9.5pt">Also, the main branch on the ITK source from git doesn't have itkSCIFIOImageIO yet, but it is on a review branch.<br>
<br></span></span></div><div><span style="font-family:arial,helvetica,sans-serif"><span style="font-size:9.5pt">You can check out that branch using the command:<br></span><br><span style="font-size:9.5pt">git fetch <a href="http://review.source.kitware.com/p/ITK">http://review.source.kitware.com/p/ITK</a> refs/changes/50/9450/7 && git checkout FETCH_HEAD -b SCIFIOImageIO<br>
<br><br></span></span></div><div><span style="font-family:arial,helvetica,sans-serif"><span style="font-size:9.5pt">The "</span><span style="font-size:9.5pt">refs/changes/50/9450/7" is specifying which patch to check out, e.g. </span><br>
<span style="font-size:9.5pt">refs/changes/50/9450/4 would check out patch set 4. But I think we got 7 pretty stable yesterday so I would try that first. :) Otherwise, 8 should be out in a few hours (with very minor changes).<br>
<br></span></span></div><div><span style="font-family:arial,helvetica,sans-serif"><span style="font-size:9.5pt">Let me know if you have any more problems!<br><br>Thanks,<br>Mark<br></span></span></div><div><span style="font-size:9.5pt;font-family:Consolas"><br>
<br></span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 9, 2013 at 2:59 AM, Jayachandra DAKALA (NYP) <span dir="ltr"><<a href="mailto:Jayachandra_DAKALA@nyp.gov.sg" target="_blank">Jayachandra_DAKALA@nyp.gov.sg</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-SG"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Mark,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks for the help.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Commenting the line </span><span style="font-size:9.5pt;font-family:Consolas">set(BF_SUFFIX ".dll") </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">helped.</span><span style="font-size:9.5pt;font-family:Consolas"> <u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Now, I am left with the following error. <u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Error copying file </span><span style="font-size:9.5pt;font-family:Consolas">"D:/Bioformats_itk/lib/\Debug/BioFormatsIOPlugin" to "D:/Bioformats_itk/dist/bf-itk/BioFormatsIOPlugin".</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">This may be related to </span><span style="font-size:9.5pt;font-family:Consolas">BF_LIB_DIR </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">and</span><span style="font-size:9.5pt;font-family:Consolas"> BF_BUILD_TYPE. </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I am unable to figure it out.</span><span style="font-size:9.5pt;font-family:Consolas"> </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Any suggestions?</span><span style="font-size:9.5pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Does the latest ITK source code (from git repo) has </span><span style="font-size:9.5pt;font-family:Consolas">itkSCIFIOImageIO</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">?<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Best regards,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">D. Jayachandra<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> Mark Hiner [mailto:<a href="mailto:hinerm@gmail.com" target="_blank">hinerm@gmail.com</a>] <br>
<b>Sent:</b> Wednesday, 8 May, 2013 9:40 PM<br><b>To:</b> Jayachandra DAKALA (NYP)<br><b>Cc:</b> <a href="mailto:ome-users@lists.openmicroscopy.org.uk" target="_blank">ome-users@lists.openmicroscopy.org.uk</a><br><b>Subject:</b> Re: [ome-users] Building Bio-formats plugin for ITK in VC++<u></u><u></u></span></p>
</div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Hello,<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt"> In CMake did you turn the "Build shared libraries" flag on? Off the top of my head, you might try toggling that.. I'm assuming if it's off it will build a .lib instead?<u></u><u></u></p>
</div><div><p class="MsoNormal" style="margin-bottom:12.0pt"> It looks like the .dll extension is <a href="https://github.com/openmicroscopy/bioformats/blob/develop/components/native/bf-itk/CMakeLists.txt#L202" target="_blank">hard coded on Windows</a>, so you could try changing that line to make it a .lib instead.<u></u><u></u></p>
</div><div><p class="MsoNormal"> In any case it looks like a bug because the target_link_libraries commands should be specifying a .lib always, I believe.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p>
</div><div><p class="MsoNormal" style="margin-bottom:12.0pt"> We're actually restructuring the BF-ITK integration right now by packaging the ImageIO with ITK (it's now called the itkSCIFIOImageIO). Since it's just part of the ITK framework now, a lot of these build issues should disappear.<u></u><u></u></p>
</div><div><p class="MsoNormal" style="margin-bottom:12.0pt"> It's still in review status but you may have more luck with it. Also, we won't be supporting the old BF-ITK code.. so if there is a bug blocking your work, its fix will go into the new code.<u></u><u></u></p>
</div><div><p class="MsoNormal"> You can follow the new work here: <a href="http://review.source.kitware.com/#/c/9450/" target="_blank">http://review.source.kitware.com/#/c/9450/</a><u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">
That page has links for downloading the patch sets. Patch set 3 was stable but has several bugs (like not supporting RGB datasets). Patch set 6 has significant improvements but is still failing some tests.<u></u><u></u></p>
</div><div><p class="MsoNormal" style="margin-bottom:12.0pt"> Hopefully a patch 7 will be out this week fixing any remaining issues.<u></u><u></u></p></div><div><p class="MsoNormal"> Let me know if changing the file extension and/or downloading the new patches doesn't work for you.<br>
<br>thanks,<br>Mark<u></u><u></u></p></div></div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p><div><p class="MsoNormal">On Tue, May 7, 2013 at 9:09 PM, Jayachandra DAKALA (NYP) <<a href="mailto:Jayachandra_DAKALA@nyp.gov.sg" target="_blank">Jayachandra_DAKALA@nyp.gov.sg</a>> wrote:<u></u><u></u></p>
<div><div><p class="MsoNormal">Hi, <u></u><u></u></p><p class="MsoNormal">I am trying to build Bio-formats plugin for ITK. I am using VC++ 2010. When try to build, I am getting the following linking error. "LINK : fatal error LNK1104: cannot open file 'Debug\BioFormatsIO.lib'". When I checked the directory, I could only find BioFormatsIO.dll, but there is no BioFormatsIO.lib file. Please help me. Should I need to change any project settings so that it will export .lib files? <u></u><u></u></p>
<p class="MsoNormal">Many thanks in advance, <u></u><u></u></p><p class="MsoNormal">Best regards,<u></u><u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt">D. Jayachandra<u></u><u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt">
<br>_______________________________________________<br>ome-users mailing list<br><a href="mailto:ome-users@lists.openmicroscopy.org.uk" target="_blank">ome-users@lists.openmicroscopy.org.uk</a><br><a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users" target="_blank">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a><u></u><u></u></p>
</div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></blockquote></div><br></div>