[Insight-users] how do i deal with 32 and 64 bit builds

Gib Bogle g.bogle at auckland.ac.nz
Wed Dec 7 16:31:48 EST 2011


I think you need to make sure that the environmental variable ITK_DIR points to 
the place where you built the ITK version (32-bit or 64-bit).  E.g. you might have

ITK_DIR=D:\ITK64

which might need to be changed to

ITK_DIR=D:\ITK32

to build 32-bit applications.

Gib

On 8/12/2011 2:46 a.m., John Drescher wrote:
>> But do i have to make any changes to the cmakelist?
>> For example:
>>
>> for 32bit:
>>
>> # Find ITK.
>>
>> FIND_PACKAGE(ITK REQUIRED_WIN32)
>>
>> INCLUDE(${ITK_USE_FILE})
>>
>> for 64bit:
>>
>> # Find ITK.
>>
>> FIND_PACKAGE(ITK REQUIRED_x64)
>>
>> INCLUDE(${ITK_USE_FILE})
>>
> No changes to the CMakeList,txt. Just set the correct generator when
> configuring each. On windows there are 32 and 64 bit generators for
> Visual Studio.
>
> John
> _____________________________________
> 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