<div dir="ltr">Sorry I didnt get it completely. I have to build normal ITK enabling this cmakelist somewhere, or I have to open CMake and try to build this CmakeLists in WindowsBuild and then build ITK??<div>Thanks </div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 11, 2013 at 11:16 AM, Williams, Norman K <span dir="ltr">&lt;<a href="mailto:norman-k-williams@uiowa.edu" target="_blank">norman-k-williams@uiowa.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You might ought to look at<br>
ITK/Modules/ThirdParty/DCMTK/WindowsBuild/CMakeLists.txt<br>
<br>
I find working on Windows to be excruciating for exactly the reasons that<br>
cause your problems; there has to be PERFECT agreement between a VS<br>
project with the build flags of ALL libraries to which it links.<br>
It&#39;s a little annoying on Linux/OS X that you have to rebuild everything<br>
to go between Debug and Release, but there&#39;s no problem with linking<br>
Release libraries into a Debug application.<br>
<br>
--<br>
Kent Williams <a href="mailto:norman-k-williams@uiowa.edu">norman-k-williams@uiowa.edu</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
On 10/10/13 3:52 PM, &quot;Jose Ignacio Prieto&quot; &lt;<a href="mailto:joseignacio.prieto@gmail.com">joseignacio.prieto@gmail.com</a>&gt;<br>
wrote:<br>
<div><div class="h5"><br>
&gt;Hi All,<br>
&gt;I know this is a DCMTK issue rather than ITK, but maybe some of you have<br>
&gt;tried this (and experienced the frustration).<br>
&gt;I was developing in linux using both libs but I had to move to windows<br>
&gt;because of a third lib. I haven&#39;t been able to build correctly my project<br>
&gt;now.<br>
&gt;I am using DCMTK and ITK head.<br>
&gt;1. First I generate DCMTK project with cmake. I set folder &quot;A&quot; for git<br>
&gt;source, &quot;B&quot; for build code and &quot;C&quot; for install, in a tree like c:\A c:\B<br>
&gt;c:\C. Then configure for build type Debug;Release, generate using MSVC 10<br>
&gt;x64 native compiler.<br>
&gt;2. Configure and generate using default conf.<br>
&gt;3. In VS2010 I build entire solution in debug, then build &quot;install&quot;, then<br>
&gt;build entire solution in release, then build &quot;install&quot;<br>
&gt;4. I configure ITK, setting on ITK_USE_DCMTK and ITK_USE_IODCMTK, then<br>
&gt;USE_SYSTEM_DCMTK, reconfigure and point to previous folder c:\B<br>
&gt;5. Generate<br>
&gt;6. In VS2010 I build entire ITK solution in debug, then build &quot;install&quot;,<br>
&gt;then build entire ITK solution in release, then build &quot;install&quot;<br>
&gt;<br>
&gt;7. I run cmake for my own project ( that already worked on linux). On<br>
&gt;that CMakeLists I don&#39;t have any reference to DCMTK, but when I check the<br>
&gt;includes in the .h files I can see the dcmtk code.<br>
&gt;<br>
&gt;<br>
&gt;I had about 25 errors LKN2001 and LNK2019. I could read that it was<br>
&gt;something on the order of the libraries link:<br>
&gt;<br>
&gt;<br>
&gt;, I tried to add ofstd on top of the classes I use. Didn&#39;t work. I read<br>
&gt;on some forum that there could be a difference setting off<br>
&gt;DCMTK_OVERWRITE_WIN32_COMPILER_FLAGS<br>
&gt;  df but it showed about 160 LNK2038 errors:<br>
&gt;dcmjpeg.lib(djdecode.obj):-1: error: LNK2038: mismatch detected for<br>
&gt;&#39;_ITERATOR_DEBUG_LEVEL&#39;: value &#39;0&#39; doesn&#39;t match value &#39;2&#39; in<br>
&gt;epxMainWindow.cxx.obj<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<a href="http://forum.dcmtk.org/viewtopic.php?t=1285" target="_blank">http://forum.dcmtk.org/viewtopic.php?t=1285</a><br>
&gt;<br>
&gt;<a href="http://www.itk.org/pipermail/insight-developers/2013-February/022462.html" target="_blank">http://www.itk.org/pipermail/insight-developers/2013-February/022462.html</a><br>
&gt;<br>
&gt;<a href="http://forum.dcmtk.org/viewtopic.php?f=4&amp;t=35" target="_blank">http://forum.dcmtk.org/viewtopic.php?f=4&amp;t=35</a><br>
&gt;<br>
&gt;<a href="http://forum.dcmtk.org/viewtopic.php?f=4&amp;t=36" target="_blank">http://forum.dcmtk.org/viewtopic.php?f=4&amp;t=36</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;I don&#39;t know what else to try,<br>
&gt;<br>
&gt;<br>
&gt;Thanks<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;--<br>
&gt;José Ignacio Prieto<br>
&gt;celular(nuevo): 94348182<br>
&gt;<br>
<br>
<br>
<br>
</div></div>________________________________<br>
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.<br>

________________________________<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>José Ignacio Prieto<br>celular(nuevo): 94348182
</div>