<font size="2"><font face="verdana,sans-serif">CMake does not use mingw. It only generates makefile compatible with it. To use 64bit mingw, add it to the path before the 32-bit version. eg:</font></font><div><font size="2" face="'courier new', monospace">cd itk-folder</font></div>
<div><font size="2" face="'courier new', monospace">set path=c:\mingw64;%path%</font></div><div><font size="2" face="'courier new', monospace">make</font></div><div><br></div><div>or you can set it permanently to a path by a method of your choosing.</div>
<div><br></div><div>HTH,</div><div>Dženan</div><div><br><div class="gmail_quote">On Sun, Feb 20, 2011 at 07:34, Gib Bogle <span dir="ltr"><<a href="mailto:g.bogle@auckland.ac.nz">g.bogle@auckland.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Luis,<br>
<br>
I have W7 64 bit on a machine with a 64 bit CPU. I have been using a 32 bit installation of MinGW, but I have a 64 bit installation on the machine as<br>
well, which I am not currently using. I understand from your response that I do need to rebuild ITK for 64 bit operation. Therefore what I need to do, it seems, is just tell cmake to use the 64 bit MinGW. This isn't really an ITK question, but what's the simplest way to get cmake to use a particular MinGW installation?<br>
<br>
Thanks<br>
Gib<div><div></div><div class="h5"><br>
<br>
Quoting Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Gib<br>
<br>
1) Does your computer have a 64 bits processor ?<br>
2) Did you installed Windows 7 for 64 bits ?<br>
3) Is your MingGW a 64-bits installation ?<br>
<br>
<br>
If (1,2,3) are true, then to build ITK for 64 bits<br>
you just need to do<br>
<br>
mkdir itkbin<br>
cd itkbin<br>
cmake ~/src/ITK<br>
make<br>
<br>
<br>
If, on the other hand, you are trying to cross-compile<br>
ITK as a 64bits library, by building it in a 32-bits machine,<br>
then you need a lot more than this.<br>
<br>
Please clarify which one is your case.<br>
<br>
<br>
Thanks<br>
<br>
<br>
Luis<br>
<br>
---------------------------------------------<br>
On Wed, Feb 16, 2011 at 2:01 AM, Gib Bogle <<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This isn't really a question about ITK, but someone here might have the<br>
answer. I've built the ITK libraries 32-bit, and as far as the ITK part is<br>
concerned I can operate within the 32-bit constraints. But in my C++ code I<br>
want to be able to use an array that exceeds the 32-bit addressable limit.<br>
I'm not sure what I need to do to get the 64-bit capability that I need.<br>
Do I have to do a 64-bit build of ITK, or can the 32-bit libraries be<br>
called from a main program that is built as 64-bit? Is there a document<br>
about building 64-bit ITK? I'm using MinGW/gcc on Windows 7.<br>
<br>
Thanks<br>
Gib<br>
</blockquote>
<br>
</blockquote>
<br>
<br>
<br></div></div>
----------------------------------------------------------------<br>
This message was sent using IMP, the Internet Messaging Program.<div><div></div><div class="h5"><br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" 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" 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.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br></div>