[Insight-users] 32- and 64-bit

Dženan Zukić dzenanz at gmail.com
Tue Feb 22 06:55:50 EST 2011


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:
cd itk-folder
set path=c:\mingw64;%path%
make

or you can set it permanently to a path by a method of your choosing.

HTH,
Dženan

On Sun, Feb 20, 2011 at 07:34, Gib Bogle <g.bogle at auckland.ac.nz> wrote:

> Hi Luis,
>
> 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
> 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?
>
> Thanks
> Gib
>
>
> Quoting Luis Ibanez <luis.ibanez at kitware.com>:
>
>  Hi Gib
>>
>> 1) Does your computer have a 64 bits processor ?
>> 2) Did you installed Windows 7 for 64 bits ?
>> 3) Is your MingGW a 64-bits installation ?
>>
>>
>> If (1,2,3) are true, then to build ITK for 64 bits
>> you just need to do
>>
>>      mkdir   itkbin
>>      cd         itkbin
>>      cmake    ~/src/ITK
>>      make
>>
>>
>> If, on the other hand, you are trying to cross-compile
>> ITK as a 64bits library, by building it in a 32-bits machine,
>> then you need a lot more than this.
>>
>> Please clarify which one is your case.
>>
>>
>>    Thanks
>>
>>
>>          Luis
>>
>> ---------------------------------------------
>> On Wed, Feb 16, 2011 at 2:01 AM, Gib Bogle <g.bogle at auckland.ac.nz>
>> wrote:
>>
>>> This isn't really a question about ITK, but someone here might have the
>>> answer.  I've built the ITK libraries 32-bit, and as far as the ITK part
>>> is
>>> concerned I can operate within the 32-bit constraints.  But in my C++
>>> code I
>>> want to be able to use an array that exceeds the 32-bit addressable
>>> limit.
>>>  I'm not sure what I need to do to get the 64-bit capability that I need.
>>>  Do I have to do a 64-bit build of ITK, or can the 32-bit libraries be
>>> called from a main program that is built as 64-bit?  Is there a document
>>> about building 64-bit ITK?  I'm using MinGW/gcc on Windows 7.
>>>
>>> Thanks
>>> Gib
>>>
>>
>>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> _____________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110222/849e5415/attachment.htm>


More information about the Insight-users mailing list