<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hello All,<br><br>&nbsp; I would appreciate&nbsp; a little help in understanding the odd behavior of ITK read and write functions.<br>The following program works fine in release mode, but crashes in debug mode with a 'read access violation'. <br><br>If however, I use Input and OutputPixelTypes as 'char' instead of 'unsigned char', it crashes in both release and debug mode.<br><br>My input to the program is image.jpg. Any debugging suggestions for access violations are welcome too.<br><br>Thank you,<br>Emma<br><br>#include "itkImage.h"<br>#include "itkImageFileReader.h"<br>#include "itkImageFileWriter.h"<br><br>int main( int argc, char * argv[] )<br>{<br>&nbsp; if( argc &lt; 3 )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; std::cerr &lt;&lt; "Usage: " &lt;&lt; argv[0];<br>&nbsp;&nbsp;&nbsp;
 std::cerr &lt;&lt; " inputImageFile outputImageFile ";&nbsp; <br>&nbsp;&nbsp;&nbsp; std::cerr &lt;&lt; std::endl;&nbsp; <br>&nbsp;&nbsp;&nbsp; return EXIT_FAILURE;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp; <br>&nbsp; typedef&nbsp; unsigned char&nbsp; InputPixelType;<br>&nbsp; typedef&nbsp; unsigned char&nbsp; OutputPixelType;<br>&nbsp; <br>&nbsp; typedef itk::Image&lt; InputPixelType,&nbsp; 2 &gt;&nbsp;&nbsp; InputImageType;<br>&nbsp; typedef itk::Image&lt; OutputPixelType, 2 &gt;&nbsp;&nbsp; OutputImageType;<br>&nbsp;<br>&nbsp; typedef itk::ImageFileReader&lt; InputImageType &gt;&nbsp; ReaderType;<br>&nbsp; <br>&nbsp; typedef itk::ImageFileWriter&lt; OutputImageType &gt;&nbsp; WriterType;<br>&nbsp; <br>&nbsp; ReaderType::Pointer reader = ReaderType::New();<br>&nbsp;<br>&nbsp; WriterType::Pointer writer = WriterType::New();<br><br>&nbsp; reader-&gt;SetFileName( argv[1] );<br>&nbsp; reader-&gt;Update();<br>&nbsp;<br>&nbsp; writer-&gt;SetFileName( argv[2]
 );<br>&nbsp; writer-&gt;SetInput( reader-&gt;GetOutput());<br>&nbsp; writer-&gt;Update();<br><br>&nbsp; return EXIT_SUCCESS;<br>}<br><br><br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> "insight-users-request@itk.org" &lt;insight-users-request@itk.org&gt;<br><b><span style="font-weight: bold;">To:</span></b> insight-users@itk.org<br><b><span style="font-weight: bold;">Sent:</span></b> Thu, September 2, 2010 7:58:03 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Insight-users Digest, Vol 77, Issue 5<br></font><br>
Send Insight-users mailing list submissions to<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:insight-users@itk.org" href="mailto:insight-users@itk.org">insight-users@itk.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br><span>&nbsp;&nbsp;&nbsp; <a target="_blank" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a></span><br>or, via email, send a message with subject or body 'help' to<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:insight-users-request@itk.org" href="mailto:insight-users-request@itk.org">insight-users-request@itk.org</a><br><br>You can reach the person managing the list at<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:insight-users-owner@itk.org" href="mailto:insight-users-owner@itk.org">insight-users-owner@itk.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Insight-users digest..."<br><br><br>Today's
 Topics:<br><br>&nbsp;  1. Build error - itk 3.20, gdcm 2.0.[15+] under mingw (Markus Neuner)<br>&nbsp;  2. Image assignment does not work (D?enan Zuki?)<br>&nbsp;  3. Re: Image assignment does not work (wanlin)<br>&nbsp;  4. Re: Image assignment does not work (Matt McCormick)<br>&nbsp;  5. Re: Image assignment does not work (D?enan Zuki?)<br>&nbsp;  6. Re: Build error - itk 3.20,&nbsp;&nbsp;&nbsp; gdcm 2.0.[15+] under mingw<br>&nbsp; &nbsp; &nbsp; (Bill Lorensen)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Thu, 02 Sep 2010 14:10:42 +0200<br>From: "Markus Neuner" &lt;<a ymailto="mailto:neuner.markus@gmx.net" href="mailto:neuner.markus@gmx.net">neuner.markus@gmx.net</a>&gt;<br>Subject: [Insight-users] Build error - itk 3.20, gdcm 2.0.[15+] under<br>&nbsp;&nbsp;&nbsp; mingw<br>To: <a ymailto="mailto:insight-users@itk.org"
 href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>Message-ID: &lt;<a ymailto="mailto:20100902121042.64950@gmx.net" href="mailto:20100902121042.64950@gmx.net">20100902121042.64950@gmx.net</a>&gt;<br>Content-Type: text/plain; charset="utf-8"<br><br>Hi,<br><br>i get a linker error when building gdcm 2.0.15 or greater with itk 3.20 with mingw under windows xp:<br><br>---- SNIP ----<br>Scanning dependencies of target itkTestDriver<br>[ 96%] Building CXX object Code/IO/CMakeFiles/itkTestDriver.dir/itkTestDriver.obj<br>Linking CXX executable ..\..\bin\itkTestDriver.exe<br>c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lgdcmMSFF<br>collect2: ld gab 1 als Ende-Status zur?ck<br>mingw32-make[2]: *** [bin/itkTestDriver.exe] Error 1<br>mingw32-make[1]: *** [Code/IO/CMakeFiles/itkTestDriver.dir/all] Error 2<br>mingw32-make: *** [all] Error 2<br>---- SNAP ----<br><br>Bilding with gdcm 2.0.14 works fine without any
 issues.<br><br>gdcm and itk are configured without any changes to teh standard cmake configurations insted of: ITK_USE_SYSTEM_GDCM=ON and the correct GDCM_DIR.<br><br>To put the gscm-build/bin on the path does not solve the problem.<br><br>Greetings,<br>Markus<br><br>Additional informations:<br>MinGW versions
 used:<br>binutils-2.20.51-1-mingw32-bin.tar.lzma<br>gcc-c++-4.4.0-mingw32-bin.tar.gz<br>gcc-c++-4.4.0-mingw32-dll.tar.gz<br>gcc-core-4.4.0-mingw32-bin.tar.gz<br>gcc-core-4.4.0-mingw32-dll.tar.gz<br>gdb-7.1-2-mingw32-bin.tar.gz<br>gmp-5.0.1-1-mingw32-dev.tar.lzma<br>libexpat-2.0.1-1-mingw32-dll-1.tar.gz<br>libgmp-5.0.1-1-mingw32-dll-10.tar.lzma<br>libgomp-4.5.0-1-mingw32-dll-1.tar.lzma<br>libmpc-0.8.1-1-mingw32-dll-2.tar.lzma<br>libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma<br>libpthread-2.8.0-3-mingw32-dll-2.tar.lzma<br>libssp-4.5.0-1-mingw32-dll-0.tar.lzma<br>libstdc++-4.5.0-1-mingw32-dll-6.tar.lzma<br>mingw-utils-0.4-1-mingw32-bin.tar.lzma<br>mingw32-make-3.81-20090910.tar.gz<br>mingwrt-3.18-mingw32-dev.tar.gz<br>mingwrt-3.18-mingw32-dll.tar.gz<br>mpc-0.8.1-1-mingw32-dev.tar.lzma<br>mpfr-2.4.1-1-mingw32-dev.tar.lzma<br>pthreads-w32-2.8.0-3-mingw32-dev.tar.lzma<br>w32api-3.15-1-mingw32-dev.tar.lzma<br>-- <br>GMX DSL SOMMER-SPECIAL: Surf &amp; Phone Flat
 16.000 f?r nur 19,99 &amp;euro;/mtl.!*<br><span><a target="_blank" href="http://portal.gmx.net/de/go/dsl">http://portal.gmx.net/de/go/dsl</a></span><br><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 2 Sep 2010 14:48:21 +0200<br>From: D?enan Zuki? &lt;<a ymailto="mailto:dzenanz@gmail.com" href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>&gt;<br>Subject: [Insight-users] Image assignment does not work<br>To: Insight-users &lt;<a ymailto="mailto:insight-users@itk.org" href="mailto:insight-users@itk.org">insight-users@itk.org</a>&gt;<br>Message-ID:<br>&nbsp;&nbsp;&nbsp; &lt;AANLkTikeCbU4DT3BCFf9tfEnoQM3f=mQMH+<a ymailto="mailto:zp9mxN7g_@mail.gmail.com" href="mailto:zp9mxN7g_@mail.gmail.com">zp9mxN7g_@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset="utf-8"<br><br>Hi everyone!<br><br>I have the following routine:<br><br>void applyFilter(InternalImageType::Pointer
 image,<br>itk::ImageToImageFilter&lt;InternalImageType,InternalImageType&gt;::Pointer<br>filter)<br>{<br>if (!checkImageLoaded())<br>return;<br>statusbar-&gt;showMessage("Applying filter:<br>"+QString(filter-&gt;GetNameOfClass()));<br> filter-&gt;SetInput( image );<br>filter-&gt;Update();<br>image=filter-&gt;GetOutput();<br> updateVisualizing();<br>resetVisualization();<br>statusbar-&gt;showMessage("Ready");<br>}<br><br>and it is invoked like this:<br><br>typedef itk::SmoothingRecursiveGaussianImageFilter &lt; InternalImageType,<br>InternalImageType&gt; FilterType;<br>FilterType::Pointer filter = FilterType::New();<br>filter-&gt;SetSigmaArray(myImage-&gt;GetSpacing());<br>applyFilter(myImage,<br>(itk::ImageToImageFilter&lt;InternalImageType,InternalImageType&gt;::Pointer)filter);<br><br>However, the above code produces no effect (the image does not change). When<br>content of "applyFilter" is copied to invocation points, it works.<br><br>What am I doing
 wrong?<br><br>Regards,<br>D?enan<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br><span>URL: &lt;<a target="_blank" href="http://www.itk.org/pipermail/insight-users/attachments/20100902/b19c9fe4/attachment-0001.htm">http://www.itk.org/pipermail/insight-users/attachments/20100902/b19c9fe4/attachment-0001.htm</a>&gt;</span><br><br>------------------------------<br><br>Message: 3<br>Date: Thu, 2 Sep 2010 23:41:06 +1000<br>From: wanlin &lt;<a ymailto="mailto:wanlinzhu@gmail.com" href="mailto:wanlinzhu@gmail.com">wanlinzhu@gmail.com</a>&gt;<br>Subject: Re: [Insight-users] Image assignment does not work<br>To: D?enan Zuki? &lt;<a ymailto="mailto:dzenanz@gmail.com" href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>&gt;<br>Cc: Insight-users &lt;<a ymailto="mailto:insight-users@itk.org" href="mailto:insight-users@itk.org">insight-users@itk.org</a>&gt;<br>Message-ID:<br>&nbsp;&nbsp;&nbsp; &lt;<a
 ymailto="mailto:AANLkTinfjqfbF37A2bWxU7xFCNLZfcKdKYn1AOPyM2m3@mail.gmail.com" href="mailto:AANLkTinfjqfbF37A2bWxU7xFCNLZfcKdKYn1AOPyM2m3@mail.gmail.com">AANLkTinfjqfbF37A2bWxU7xFCNLZfcKdKYn1AOPyM2m3@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset="utf-8"<br><br>What about<br>void applyFilter(InternalImageType:<br>:Pointer &amp; image,<br>itk::ImageToImageFilter&lt;InternalImageType,InternalImageType&gt;::Pointer<br>filter)<br><br>image=filter-&gt;GetOutput();//here image pointer inside function has been<br>changed, however, the image outside the function does not.<br><br><br><br><br>2010/9/2 D?enan Zuki? &lt;<a ymailto="mailto:dzenanz@gmail.com" href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>&gt;<br><br>&gt; Hi everyone!<br>&gt;<br>&gt; I have the following routine:<br>&gt;<br>&gt; void applyFilter(InternalImageType::Pointer image,<br>&gt; itk::ImageToImageFilter&lt;InternalImageType,InternalImageType&gt;::Pointer<br>&gt;
 filter)<br>&gt; {<br>&gt; if (!checkImageLoaded())<br>&gt; return;<br>&gt; statusbar-&gt;showMessage("Applying filter:<br>&gt; "+QString(filter-&gt;GetNameOfClass()));<br>&gt;&nbsp; filter-&gt;SetInput( image );<br>&gt; filter-&gt;Update();<br>&gt; image=filter-&gt;GetOutput();<br>&gt;&nbsp; updateVisualizing();<br>&gt; resetVisualization();<br>&gt; statusbar-&gt;showMessage("Ready");<br>&gt; }<br>&gt;<br>&gt; and it is invoked like this:<br>&gt;<br>&gt; typedef itk::SmoothingRecursiveGaussianImageFilter &lt; InternalImageType,<br>&gt; InternalImageType&gt; FilterType;<br>&gt; FilterType::Pointer filter = FilterType::New();<br>&gt; filter-&gt;SetSigmaArray(myImage-&gt;GetSpacing());<br>&gt; applyFilter(myImage,<br>&gt; (itk::ImageToImageFilter&lt;InternalImageType,InternalImageType&gt;::Pointer)filter);<br>&gt;<br>&gt; However, the above code produces no effect (the image does not change).<br>&gt; When content of "applyFilter" is copied to invocation
 points, it works.<br>&gt;<br>&gt; What am I doing wrong?<br>&gt;<br>&gt; Regards,<br>&gt; D?enan<br>&gt;<br>&gt; _____________________________________<br>&gt; Powered by <a target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>&gt;<br>&gt; Visit other Kitware open-source projects at<br><span>&gt; <a target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br>&gt;<br>&gt; Kitware offers ITK Training Courses, for more information visit:<br><span>&gt; <a target="_blank" href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a></span><br>&gt;<br>&gt; Please keep messages on-topic and check the ITK FAQ at:<br><span>&gt; <a target="_blank" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a></span><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a
 href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt;<br>&gt;<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br><span>URL: &lt;<a target="_blank" href="http://www.itk.org/pipermail/insight-users/attachments/20100902/212631ce/attachment-0001.htm">http://www.itk.org/pipermail/insight-users/attachments/20100902/212631ce/attachment-0001.htm</a>&gt;</span><br><br>------------------------------<br><br>Message: 4<br>Date: Thu, 2 Sep 2010 13:42:40 +0000 (UTC)<br>From: Matt McCormick &lt;<a ymailto="mailto:matt@mmmccormick.com" href="mailto:matt@mmmccormick.com">matt@mmmccormick.com</a>&gt;<br>Subject: Re: [Insight-users] Image assignment does not work<br>To: <a ymailto="mailto:insight-users@itk.org" href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>Message-ID: &lt;<a ymailto="mailto:loom.20100902T153756-236@post.gmane.org"
 href="mailto:loom.20100902T153756-236@post.gmane.org">loom.20100902T153756-236@post.gmane.org</a>&gt;<br>Content-Type: text/plain; charset=us-ascii<br><br>Hi Dzenan,<br><br>&gt; <br>&gt; void applyFilter(InternalImageType::Pointer image, <br>itk::ImageToImageFilter&lt;InternalImageType,InternalImageType&gt;::Pointer filter)<br><br>How about changing the signature to use references, i.e.<br><br>void applyFilter(InternalImageType::Pointer&amp; image, <br>itk::ImageToImageFilter&lt;InternalImageType,InternalImageType&gt;::Pointer&amp; filter)<br><br>&gt; <br>&gt; {<br>&gt; <br>&gt; &nbsp;&nbsp;&nbsp; if (!checkImageLoaded())<br>&gt; <br>&gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>&gt; <br>&gt; &nbsp;&nbsp;&nbsp; statusbar-&gt;showMessage("Applying filter: "+QString(filter-<br>&gt;GetNameOfClass()));<br>&gt; <br>&gt; <br>&gt; &nbsp;&nbsp;&nbsp; filter-&gt;SetInput( image );<br>&gt; <br>&gt; &nbsp;&nbsp;&nbsp; filter-&gt;Update();<br>&gt; <br>&gt;
 &nbsp;&nbsp;&nbsp; image=filter-&gt;GetOutput();<br>&gt; <br>&gt; <br>&gt; &nbsp;&nbsp;&nbsp; updateVisualizing();<br>&gt; <br>&gt; &nbsp;&nbsp;&nbsp; resetVisualization();<br>&gt; <br>&gt; &nbsp;&nbsp;&nbsp; statusbar-&gt;showMessage("Ready");<br>&gt; <br>&gt; }<br>&gt; <br>&gt; <br>&gt; and it is invoked like this:<br>&gt; <br>&gt; <br>&gt; typedef itk::SmoothingRecursiveGaussianImageFilter &lt; InternalImageType, <br>InternalImageType&gt; FilterType;<br>&gt; FilterType::Pointer filter = FilterType::New();<br>&gt; <br>&gt; filter-&gt;SetSigmaArray(myImage-&gt;GetSpacing());<br><br>I would not expect much of a change with such a small sigma.<br><br>&gt; applyFilter(myImage, <br>(itk::ImageToImageFilter&lt;InternalImageType,InternalImageType&gt;::Pointer)filter);<br><br>I am surprised this cast works given the recent discussions of smart pointer <br>casting on the ITK developers list.&nbsp; If there is intention to cast to base <br>classes, then using
 raw pointers may be better.<br><br>Regards,<br>Matt<br><br><br><br>------------------------------<br><br>Message: 5<br>Date: Thu, 2 Sep 2010 16:02:50 +0200<br>From: D?enan Zuki? &lt;<a ymailto="mailto:dzenanz@gmail.com" href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>&gt;<br>Subject: Re: [Insight-users] Image assignment does not work<br>To: Matt McCormick &lt;<a ymailto="mailto:matt@mmmccormick.com" href="mailto:matt@mmmccormick.com">matt@mmmccormick.com</a>&gt;, <a ymailto="mailto:wanlinzhu@gmail.com" href="mailto:wanlinzhu@gmail.com">wanlinzhu@gmail.com</a><br>Cc: <a ymailto="mailto:insight-users@itk.org" href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>Message-ID:<br>&nbsp;&nbsp;&nbsp; &lt;AANLkTikBrpYQCNe+M6sZCfHwzWVAhk8bMSvTFCCHg+<a ymailto="mailto:Ar@mail.gmail.com" href="mailto:Ar@mail.gmail.com">Ar@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset="utf-8"<br><br>Thanks both, that was it.<br><br>D?enan<br><br>How
 about changing the signature to use references, i.e.<br>&gt;<br>&gt; void applyFilter(InternalImageType::Pointer&amp; image,<br>&gt; itk::ImageToImageFilter&lt;InternalImageType,InternalImageType&gt;::Pointer&amp;<br>&gt; filter)<br>&gt;<br>&gt;<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br><span>URL: &lt;<a target="_blank" href="http://www.itk.org/pipermail/insight-users/attachments/20100902/cb6184b3/attachment-0001.htm">http://www.itk.org/pipermail/insight-users/attachments/20100902/cb6184b3/attachment-0001.htm</a>&gt;</span><br><br>------------------------------<br><br>Message: 6<br>Date: Thu, 2 Sep 2010 10:57:56 -0400<br>From: Bill Lorensen &lt;<a ymailto="mailto:bill.lorensen@gmail.com" href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>Subject: Re: [Insight-users] Build error - itk 3.20,&nbsp;&nbsp;&nbsp; gdcm 2.0.[15+]<br>&nbsp;&nbsp;&nbsp; under mingw<br>To: Markus Neuner &lt;<a
 ymailto="mailto:neuner.markus@gmx.net" href="mailto:neuner.markus@gmx.net">neuner.markus@gmx.net</a>&gt;<br>Cc: <a ymailto="mailto:insight-users@itk.org" href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>Message-ID:<br>&nbsp;&nbsp;&nbsp; &lt;AANLkTimbn=85QhD3vuUzkE84-BAdv=<a ymailto="mailto:gQqpk9Dh-F5j2Q@mail.gmail.com" href="mailto:gQqpk9Dh-F5j2Q@mail.gmail.com">gQqpk9Dh-F5j2Q@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1<br><br>I was getting the same error a while back. Since then I have upgraded<br>to cmake 2.8.2 and I'm building against the current itk head.<br><br>What version of cmake are you using?<br><br>Mathieu, Has something changed since 3.20 that would fix this issue.<br>Other than the move of gdcm 2 into the itk tree.<br><br>Bill<br><br>On Thu, Sep 2, 2010 at 8:10 AM, Markus Neuner &lt;<a ymailto="mailto:neuner.markus@gmx.net" href="mailto:neuner.markus@gmx.net">neuner.markus@gmx.net</a>&gt;
 wrote:<br>&gt; Hi,<br>&gt;<br>&gt; i get a linker error when building gdcm 2.0.15 or greater with itk 3.20 with mingw under windows xp:<br>&gt;<br>&gt; ---- SNIP ----<br>&gt; Scanning dependencies of target itkTestDriver<br>&gt; [ 96%] Building CXX object Code/IO/CMakeFiles/itkTestDriver.dir/itkTestDriver.obj<br>&gt; Linking CXX executable ..\..\bin\itkTestDriver.exe<br>&gt; c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lgdcmMSFF<br>&gt; collect2: ld gab 1 als Ende-Status zur?ck<br>&gt; mingw32-make[2]: *** [bin/itkTestDriver.exe] Error 1<br>&gt; mingw32-make[1]: *** [Code/IO/CMakeFiles/itkTestDriver.dir/all] Error 2<br>&gt; mingw32-make: *** [all] Error 2<br>&gt; ---- SNAP ----<br>&gt;<br>&gt; Bilding with gdcm 2.0.14 works fine without any issues.<br>&gt;<br>&gt; gdcm and itk are configured without any changes to teh standard cmake configurations insted of: ITK_USE_SYSTEM_GDCM=ON and the correct
 GDCM_DIR.<br>&gt;<br>&gt; To put the gscm-build/bin on the path does not solve the problem.<br>&gt;<br>&gt; Greetings,<br>&gt; Markus<br>&gt;<br>&gt; Additional informations:<br>&gt; MinGW versions used:<br>&gt; binutils-2.20.51-1-mingw32-bin.tar.lzma<br>&gt; gcc-c++-4.4.0-mingw32-bin.tar.gz<br>&gt; gcc-c++-4.4.0-mingw32-dll.tar.gz<br>&gt; gcc-core-4.4.0-mingw32-bin.tar.gz<br>&gt; gcc-core-4.4.0-mingw32-dll.tar.gz<br>&gt; gdb-7.1-2-mingw32-bin.tar.gz<br>&gt; gmp-5.0.1-1-mingw32-dev.tar.lzma<br>&gt; libexpat-2.0.1-1-mingw32-dll-1.tar.gz<br>&gt; libgmp-5.0.1-1-mingw32-dll-10.tar.lzma<br>&gt; libgomp-4.5.0-1-mingw32-dll-1.tar.lzma<br>&gt; libmpc-0.8.1-1-mingw32-dll-2.tar.lzma<br>&gt; libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma<br>&gt; libpthread-2.8.0-3-mingw32-dll-2.tar.lzma<br>&gt; libssp-4.5.0-1-mingw32-dll-0.tar.lzma<br>&gt; libstdc++-4.5.0-1-mingw32-dll-6.tar.lzma<br>&gt; mingw-utils-0.4-1-mingw32-bin.tar.lzma<br>&gt;
 mingw32-make-3.81-20090910.tar.gz<br>&gt; mingwrt-3.18-mingw32-dev.tar.gz<br>&gt; mingwrt-3.18-mingw32-dll.tar.gz<br>&gt; mpc-0.8.1-1-mingw32-dev.tar.lzma<br>&gt; mpfr-2.4.1-1-mingw32-dev.tar.lzma<br>&gt; pthreads-w32-2.8.0-3-mingw32-dev.tar.lzma<br>&gt; w32api-3.15-1-mingw32-dev.tar.lzma<br>&gt; --<br>&gt; GMX DSL SOMMER-SPECIAL: Surf &amp; Phone Flat 16.000 f?r nur 19,99 &amp;euro;/mtl.!*<br>&gt; <a href="http://portal.gmx.net/de/go/dsl" target="_blank">http://portal.gmx.net/de/go/dsl</a><br>&gt; _____________________________________<br><span>&gt; Powered by <a target="_blank" href="http://www.kitware.com">www.kitware.com</a></span><br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;<br>&gt; Kitware offers ITK Training Courses, for more information visit:<br>&gt; <a
 href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>&gt;<br>&gt; Please keep messages on-topic and check the ITK FAQ at:<br>&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt;<br><br><br>------------------------------<br><br>_______________________________________________<br>Insight-users mailing list<br><a ymailto="mailto:Insight-users@itk.org" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br><br><br>End of Insight-users Digest, Vol 77, Issue
 5<br>********************************************<br></div></div>
</div><br>

      </body></html>