[ITK] [ITK-users] Compilation error when building ITK 4.9.0 with MinGW
Hyun Jae Kang
hyunjae.kang at kitware.com
Wed Mar 2 10:53:47 EST 2016
Hi Francisco,
The patch (http://review.source.kitware.com/#/c/20823/ ) was merged.
Please download the latest ITK source code from git::itk.org/ITK.git and
compile it with your MinGW.
The patch does not require the flags of "-Wa,-mbig-obj".
Thanks,
Hyun Jae
On Tue, Mar 1, 2016 at 5:56 PM, <community-request at itk.org> wrote:
> Send Community mailing list submissions to
> community at itk.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://public.kitware.com/mailman/listinfo/community
> or, via email, send a message with subject or body 'help' to
> community-request at itk.org
>
> You can reach the person managing the list at
> community-owner at itk.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Community digest..."
>
>
> Today's Topics:
>
> 1. [ITK-users] Workshops on multithreading and GPU
> (Scapegoat Sarthak)
> 2. Re: [ITK-users] Compilation error when building ITK 4.9.0
> with MinGW (Matt McCormick)
> 3. Re: Memory leaks with ITK and MFC (Matt McCormick)
> 4. Re: Memory leaks with ITK and MFC (Lee, Kyungmoo)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 1 Mar 2016 15:38:46 -0500
> From: Scapegoat Sarthak <scapegoat.sarthak at gmail.com>
> To: "insight-users at itk.org" <insight-users at itk.org>
> Subject: [ITK] [ITK-users] Workshops on multithreading and GPU
> Message-ID:
> <
> CANbSmSdrHOcoHbUezXqediMf57C6oenX1MrZ7z-AWhoS9H8tZQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi All,
>
> I know the courses that Kitware takes (http://training.kitware.fr/browse/)
> but these are relatively basic. Does anyone know of any workshops/tutorials
> on ITK using multi-threading and GPU processing capabilities?
>
> Thanks,
> Sarthak
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/community/attachments/20160301/5ea979f9/attachment-0001.html
> >
> -------------- next part --------------
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
> ------------------------------
>
> Message: 2
> Date: Tue, 1 Mar 2016 16:54:34 -0500
> From: Matt McCormick <matt.mccormick at kitware.com>
> To: Francisco Lopez de la Franca <franciscolopezdelafranca at gmail.com>
> Cc: Insight Users <insight-users at itk.org>, Hyun Jae Kang
> <hyunjae.kang at kitware.com>
> Subject: Re: [ITK] [ITK-users] Compilation error when building ITK
> 4.9.0 with MinGW
> Message-ID:
> <
> CALzTN-RQ8ZKi1aEars8zP1SXpUvYnf-do3ywwU0SKrbq93VNTg at mail.gmail.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi Francisco,
>
> Please review this patch, which addresses this issue:
>
> http://review.source.kitware.com/#/c/20823/
>
> Thanks,
> Matt
>
> On Mon, Feb 22, 2016 at 7:20 AM, Francisco Lopez de la Franca
> <franciscolopezdelafranca at gmail.com> wrote:
> > I've achieved to compile ITK 4.9.0 through MS Visual Studio 2010, but not
> > with MinGW.
> > Thanks everybody.
> > Kind regards.
> > /Francisco
> >
> > 2016-02-19 23:56 GMT+01:00 Francisco Lopez de la Franca
> > <franciscolopezdelafranca at gmail.com>:
> >>
> >> Hello Matt,
> >> I had already tested the -Wa,-mbig-obj options in CMAKE_CXX_FLAGS and in
> >> CMAKE_C_FLAGS and the answer was:
> >>
> >>
> >>
> C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/as.exe:
> >> unrecognized option `-mbig-obj'
> >>
> >> 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.
> >>
> >> Thanks for answering and if you have any suggestion, it wiil be very
> well
> >> received.
> >>
> >> /Francisco
> >>
> >>
> >> 2016-02-19 18:00 GMT+01:00 Matt McCormick <matt.mccormick at kitware.com>:
> >>>
> >>> Hi Franscisco,
> >>>
> >>> According to this thread:
> >>>
> >>> https://cmake.org/pipermail/insight-users/2015-September/052511.html
> >>>
> >>> adding the flags
> >>>
> >>> -Wa,-mbig-obj
> >>>
> >>> helps at least with the build error. Does it help in your case?
> >>>
> >>> Thanks,
> >>> Matt
> >>>
> >>> On Thu, Feb 18, 2016 at 6:22 PM, Francisco Lopez de la Franca
> >>> <franciscolopezdelafranca at gmail.com> wrote:
> >>> > Hi,
> >>> > I've downloaded the last stable ITK version, 4.9.0, for Windows and
> >>> > compile
> >>> > it by using MinGW-64.
> >>> > When the compilation reaches almost the 100%, it gives the error:
> >>> >
> >>> > [ 98%] Building CXX object
> >>> >
> >>> >
> Modules/IO/TransformBase/src/CMakeFiles/ITKIOTransformBase.dir/itkTransformFactoryBase.cxx.obj
> >>> >
> >>> >
> C:/MINGW/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/as.exe:
> >>> > CMakeFiles\ITKIOTransformBase.dir\itkTransformFactoryBase.cxx.obj:
> too
> >>> > many
> >>> > sections (33106)
> >>> > C:\Users\User~1\AppData\Local\Temp\ccrJIGis.s: Assembler messages:
> >>> > C:\Users\User~1\AppData\Local\Temp\ccrJIGis.s: Fatal error: can't
> write
> >>> > CMakeFiles\ITKIOTransformBase.dir\itkTransformFactoryBase.cxx.obj:
> File
> >>> > too
> >>> > big
> >>> >
> >>> > I've been searching for a solution on the web for several hours and
> all
> >>> > the
> >>> > attempts to solve it have not fix it.
> >>> >
> >>> > Has anyone ever faced this problem and fix it?
> >>> >
> >>> > Thanks a lot.
> >>> > Best regards.
> >>> > /Francisco
> >>> >
> >>> > _____________________________________
> >>> > Powered by www.kitware.com
> >>> >
> >>> > Visit other Kitware open-source projects at
> >>> > http://www.kitware.com/opensource/opensource.html
> >>> >
> >>> > Kitware offers ITK Training Courses, for more information visit:
> >>> > http://www.kitware.com/products/protraining.php
> >>> >
> >>> > Please keep messages on-topic and check the ITK FAQ at:
> >>> > http://www.itk.org/Wiki/ITK_FAQ
> >>> >
> >>> > Follow this link to subscribe/unsubscribe:
> >>> > http://public.kitware.com/mailman/listinfo/insight-users
> >>> >
> >>
> >>
> >
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 1 Mar 2016 17:04:25 -0500
> From: Matt McCormick <matt.mccormick at kitware.com>
> To: "Lee, Kyungmoo" <kyungmoo-lee at uiowa.edu>
> Cc: "community at itk.org" <community at itk.org>
> Subject: Re: [ITK] Memory leaks with ITK and MFC
> Message-ID:
> <CALzTN-RdmjjWYN1152V2NGntbs6KaqNd=
> oWUfD03Ud92pP55Bw at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi Kit,
>
> We are in the process of deprecating InsightApplications.
>
> However, if you create an MFC application that uses ITK, there should
> be no issues or memory leaks.
>
> HTH,
> Matt
>
> On Mon, Feb 29, 2016 at 3:32 PM, Lee, Kyungmoo <kyungmoo-lee at uiowa.edu>
> wrote:
> > Dear all,
> >
> >
> >
> > When I run InsightApplications-4.8.0/ItkMFC using ITK-4.8.2, MS Windows,
> and
> > Visual Studio 2010/2012, I found memory leaks. Other persons in the
> > following links have the same problem. I cannot find any solution on the
> > web. Please help me. Thank you.
> >
> >
> >
> > https://cmake.org/pipermail/insight-users/2007-July/022885.html
> >
> >
> http://itk-insight-users.2283740.n2.nabble.com/No-one-knows-the-ITK-MFC-memory-leak-problem-td7583950.html
> >
> >
> >
> > Kit
> >
> >
> >
> >
> > _______________________________________________
> > Community mailing list
> > Community at itk.org
> > http://public.kitware.com/mailman/listinfo/community
> >
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 1 Mar 2016 22:24:00 +0000
> From: "Lee, Kyungmoo" <kyungmoo-lee at uiowa.edu>
> To: Matt McCormick <matt.mccormick at kitware.com>
> Cc: "community at itk.org" <community at itk.org>
> Subject: Re: [ITK] Memory leaks with ITK and MFC
> Message-ID:
> <
> SN1PR0401MB1663DC92B70046BC40D93CBA87BB0 at SN1PR0401MB1663.namprd04.prod.outlook.com
> >
>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Matt,
>
>
>
> Thank you for replying. I would like to use ITK in my MFC application. It
> has another memory-related problem in my application (See the following
> figure). I guess that there is a conflict between ITK smart pointer and MFC
> structure. If you fix InsightApplications-4.8.0/ItkMFC, it would be a good
> reference for my MFC programming. Thank you so much!!!
>
>
>
> Kit
>
>
>
> [cid:image001.png at 01D173D6.C10A2C40]
>
> -----Original Message-----
> From: Matt McCormick [mailto:matt.mccormick at kitware.com]
> Sent: Tuesday, March 01, 2016 4:04 PM
> To: Lee, Kyungmoo <kyungmoo-lee at uiowa.edu>
> Cc: community at itk.org
> Subject: Re: [ITK] Memory leaks with ITK and MFC
>
>
>
> Hi Kit,
>
>
>
> We are in the process of deprecating InsightApplications.
>
>
>
> However, if you create an MFC application that uses ITK, there should be
> no issues or memory leaks.
>
>
>
> HTH,
>
> Matt
>
>
>
> On Mon, Feb 29, 2016 at 3:32 PM, Lee, Kyungmoo <kyungmoo-lee at uiowa.edu
> <mailto:kyungmoo-lee at uiowa.edu>> wrote:
>
> > Dear all,
>
> >
>
> >
>
> >
>
> > When I run InsightApplications-4.8.0/ItkMFC using ITK-4.8.2, MS
>
> > Windows, and Visual Studio 2010/2012, I found memory leaks. Other
>
> > persons in the following links have the same problem. I cannot find
>
> > any solution on the web. Please help me. Thank you.
>
> >
>
> >
>
> >
>
> > https://cmake.org/pipermail/insight-users/2007-July/022885.html
>
> >
>
> > http://itk-insight-users.2283740.n2.nabble.com/No-one-knows-the-ITK-MF
>
> > C-memory-leak-problem-td7583950.html
>
> >
>
> >
>
> >
>
> > Kit
>
> >
>
> >
>
> >
>
> >
>
> > _______________________________________________
>
> > Community mailing list
>
> > Community at itk.org<mailto:Community at itk.org>
>
> > http://public.kitware.com/mailman/listinfo/community
>
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/community/attachments/20160301/4b60330c/attachment.html
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image001.png
> Type: image/png
> Size: 150441 bytes
> Desc: image001.png
> URL: <
> http://public.kitware.com/pipermail/community/attachments/20160301/4b60330c/attachment.png
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>
>
> ------------------------------
>
> End of Community Digest, Vol 30, Issue 2
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160302/f9c007da/attachment-0001.html>
More information about the Community
mailing list