[Insight-users] Problems building itk under MinGW

Bill Lorensen bill.lorensen at gmail.com
Wed Dec 9 08:46:03 EST 2009


2) In the Msys shell:  mkdir Insight-mingw
3) Run the windows cmake by clicking cmake. I am currently using cmake 2.6.
4) Where is the source code: Select the path to the Insight source.
5) Where to build the binaries: Select Insight-mingw
6) Configure
7) Select Generator: MSYS Makefiles
    NOT MinGW Makefiles
8) Configure
    At this point, you may get errors. DO NOT exit cmake. Check the
Show Advanced Values in the cmake panel. Look for the variable
CMAKE_MAKE_COMMAND. It must point to the MSYS make, not the MinGW make
or another make. Navigate to the msys bin directory and select make.
9) Configure
    cmake should run fine from here.

I think the problem is that we typically have more than one make on
our systems. I have cygwin make, msys make mingw make and Borland
make. When I configure cmake selects Borland make. because it's in my
path. I actually use a ctest script to do my configure, but that's
beyond the scope of this e-mail.

After this works, check back and we'll go to step 10.

Bill

4) Select the
On Wed, Dec 9, 2009 at 4:00 AM, URI <zallen at wheelinghospital.com> wrote:
>
> I found what appears to be the solution, I will post it here just in case
> this helps anyone else.
>
> Apparently I was getting an error "couldn't reserve space for cygwin's heap"
> both while installing Msys and while trying to run it (it would appear in
> that window that would pop up and disappear right away - I just ran it again
> and again and read one word each time before I figured out what it was
> saying).  Googling this error resulted in a huge amount of hits with all
> sorts of solutions, ranging from disabling Windows Defender and/or all
> antivirus software to disabling Data Execution Prevention to making sure
> that I didn't have a CygWin environment variable defined (which I didn't -
> I've never even installed CygWin).
>
> Finally I found this site:
> http://www.eoinmurphy.org/blog/2008/07/09/setting-up-mingw-and-msys/
>
> Under the "Troubleshooting" section is where I found the answer, which is to
> replace C:\msys\1.0\bin\msys-1.0.dll with the one found here:
> http://www.eoinmurphy.org/stuff/msys-rebased.zip
>
> Once I replaced this I am able to run msys.bat and the window opens normally
> (and I have both Windows Defender and my antivirus program running, as well
> as DEP enabled, so there's no need to modify any of those things).
>
> Ok, what's the next step?
>
>
>
> I installed msys and mingw on two machines a couple of years ago. I
> don't recall any editing of files being required.
>
> Maybe someone else can share their experience. You must get by this
> step 1 before we can proceed.
>
> Bill
>
> --
> View this message in context: http://n2.nabble.com/Problems-building-itk-under-MinGW-tp4104133p4138201.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> 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.html
>
> 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://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list