[ITK] [ITK-users] Target Machine type error when trying to build 64-bit ITK using VS2015
Evan Kao
tossin at gmail.com
Fri Jul 22 12:42:14 EDT 2016
Thanks Dženan, that was really helpful. I was able to build it
successfully.
- Evan
On Wed, Jul 20, 2016 at 5:00 PM, Dženan Zukić <dzenanz at gmail.com> wrote:
> Hi Evan,
>
> you need to select "Visual Studio 14 2015 Win64" as the generator:
> [image: Inline image 3]
>
> The result of this should be that you only have x64 platform in Visual
> Studio:
> [image: Inline image 2]
>
> Regards,
> Dženan
>
> On Wed, Jul 20, 2016 at 7:09 PM, Evan Kao <tossin at gmail.com> wrote:
>
>> Hello all,
>>
>> This may be more of a Visual Studio issue than an ITK issue, but I was
>> wondering if anyone else found a way around this. I'm trying to build ITK
>> 4.10.0 on a Windows 7 64-bit machine with Python (2.7 64-bit) wrapping
>> using Visual Studio 2015. I should add I'm not familiar with either CMake,
>> ITK, or Visual Studio so I could be missing something obvious.
>>
>> I keep getting the following error for multiple *.obj files:
>> x64\Release\*.obj : fatal error LNK1112: module machine type 'x64'
>> conflicts with target machine type 'X86'
>>
>> I noticed that CMake generates vxproj files for only Win32 by default.
>> Then the files are modified by Visual Studio when switching the platform to
>> x64 and selecting "Clean Solution", which adds the following lines, among
>> others:
>> <ProjectConfiguration Include="Release|x64">
>> <Configuration>Release</Configuration>
>> <Platform>x64</Platform>
>>
>> However, many individual sub-projects are still not updated to account
>> for x64 configurations. I took a look at the Advanced CMAKE variables
>> in the CMake GUI, but had no idea what to modify (everything seems to
>> target Win32).
>>
>> Is there a way to configure CMake to generate x64 files? If not, does
>> anyone know how to correctly configure ITK on x64 platforms in VS2015?
>>
>> Thanks,
>> Evan Kao
>>
>> _____________________________________
>> 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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160722/17df0fd0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2016-07-20 19.58.16.png
Type: image/png
Size: 26364 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20160722/17df0fd0/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2016-07-20 19.54.04.png
Type: image/png
Size: 17634 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20160722/17df0fd0/attachment-0003.png>
-------------- 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
More information about the Community
mailing list