<div dir="ltr"><div><div><div>I've achieved to compile ITK 4.9.0 through MS Visual Studio 2010, but not with MinGW.<br></div>Thanks everybody.<br></div>Kind regards.<br></div>/Francisco<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-19 23:56 GMT+01:00 Francisco Lopez de la Franca <span dir="ltr"><<a href="mailto:franciscolopezdelafranca@gmail.com" target="_blank">franciscolopezdelafranca@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello Matt,<br></div>I had already tested the -Wa,-mbig-obj options in CMAKE_CXX_FLAGS and in CMAKE_C_FLAGS and the answer was:<br><div class="gmail_extra"><br>C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/as.exe: unrecognized option `-mbig-obj'<br><br></div><div class="gmail_extra">So, I'm stuck at this point, and I'm thinking to change from Mingw to Visual Studio or another one. But it is very strange that ITK wasn't be prepared to be compiled via MinGW.<br><br></div><div class="gmail_extra">Thanks for answering and if you have any suggestion, it wiil be very well received.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra">/Francisco<br></div></font></span><div><div class="h5"><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-19 18:00 GMT+01:00 Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Franscisco,<br>
<br>
According to this thread:<br>
<br>
 <a href="https://cmake.org/pipermail/insight-users/2015-September/052511.html" rel="noreferrer" target="_blank">https://cmake.org/pipermail/insight-users/2015-September/052511.html</a><br>
<br>
adding the flags<br>
<br>
   -Wa,-mbig-obj<br>
<br>
helps at least with the build error.  Does it help in your case?<br>
<br>
Thanks,<br>
Matt<br>
<div><div><br>
On Thu, Feb 18, 2016 at 6:22 PM, Francisco Lopez de la Franca<br>
<<a href="mailto:franciscolopezdelafranca@gmail.com" target="_blank">franciscolopezdelafranca@gmail.com</a>> wrote:<br>
> Hi,<br>
> I've downloaded the last stable ITK version, 4.9.0, for Windows and compile<br>
> it by using MinGW-64.<br>
> When the compilation reaches almost the 100%, it gives the error:<br>
><br>
> [ 98%] Building CXX object<br>
> Modules/IO/TransformBase/src/CMakeFiles/ITKIOTransformBase.dir/itkTransformFactoryBase.cxx.obj<br>
> C:/MINGW/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/as.exe:<br>
> CMakeFiles\ITKIOTransformBase.dir\itkTransformFactoryBase.cxx.obj: too many<br>
> sections (33106)<br>
> C:\Users\User~1\AppData\Local\Temp\ccrJIGis.s: Assembler messages:<br>
> C:\Users\User~1\AppData\Local\Temp\ccrJIGis.s: Fatal error: can't write<br>
> CMakeFiles\ITKIOTransformBase.dir\itkTransformFactoryBase.cxx.obj: File too<br>
> big<br>
><br>
> I've been searching for a solution on the web for several hours and all the<br>
> attempts to solve it have not fix it.<br>
><br>
> Has anyone ever faced this problem and fix it?<br>
><br>
> Thanks a lot.<br>
> Best regards.<br>
> /Francisco<br>
><br>
</div></div>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
><br>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>