<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><br><pre>Hi, Özgür:<br><br>Thanks again for the help. I did compiled on my computer (x64, windows 7) without any error using the sln file (and build directory) generated on a x86 machine (a virtual machine, windows 7 32bit).<br><br>I still wanted it work on my native x64 computer. So I managed to manually set <br>VXL_SIZEOF_SIZE_T to 4, as what I get from a x86 machine and passed the cmake error. <br><br>However, when I compile on with vs 2008, I got a lot of errors, mostly the following error:<br></pre>e:\development\insighttoolkit-3.20.1\utilities\vxl\vcl\emulation\vcl_limits.h(206) : error C2906: 'vcl_numeric_limits&lt;int&gt;' : explicit specialization requires 'template &lt;&gt;'<br>e:\development\insighttoolkit-3.20.1\utilities\vxl\vcl\emulation\vcl_limits.h(505) : error C2177: constant too big<br>E:\Development\InsightToolkit-3.20.1\Utilities\vxl\vcl\vcl_complex.h(66) : fatal error C1017: invalid integer constant expression<br>..\..\..\InsightToolkit-3.20.1\Utilities\itktiff\tif_win32.c(182) : error C2065: 'O_RDONLY' : undeclared identifier<br><br>Any ideas?<br><br>Thanks.<br><br>Aiden<br><div></div><div id="divNeteaseMailCard"></div><br><pre><br>At&nbsp;2012-05-09&nbsp;09:58:16,"Özgür&nbsp;Güler"&nbsp;&lt;ozgur_guler@gmx.at&gt;&nbsp;wrote:
&gt;Hi&nbsp;Aiden,
&gt;
&gt;when&nbsp;I&nbsp;run&nbsp;following&nbsp;simple&nbsp;CMakeLists.txt
&gt;
&gt;----CMakeLists.txt
&gt;cmake_minimum_required(VERSION&nbsp;2.6)
&gt;
&gt;set(VXL_SIZEOF_SIZE_T&nbsp;7)
&gt;MATH(EXPR&nbsp;VXL_ADDRESS_BITS&nbsp;8*${VXL_SIZEOF_SIZE_T}&nbsp;)
&gt;message(${VXL_ADDRESS_BITS})
&gt;----
&gt;
&gt;with&nbsp;CMake&nbsp;2.8&nbsp;and&nbsp;2.6&nbsp;it&nbsp;works&nbsp;fine&nbsp;and&nbsp;I&nbsp;get&nbsp;the&nbsp;result&nbsp;56&nbsp;as&nbsp;output.
&gt;
&gt;The&nbsp;error&nbsp;you&nbsp;get&nbsp;is&nbsp;reproducible&nbsp;if&nbsp;you&nbsp;comment&nbsp;the&nbsp;line&nbsp;where&nbsp;I&nbsp;set
&gt;VXL_SIZEOF_SIZE_T&nbsp;&nbsp;to&nbsp;7.
&gt;
&gt;In&nbsp;ITKs&nbsp;CMakeLists.txt&nbsp;this&nbsp;means&nbsp;that&nbsp;this&nbsp;variable&nbsp;is&nbsp;not&nbsp;set,&nbsp;which
&gt;causes&nbsp;the&nbsp;strange&nbsp;error&nbsp;message.
&gt;ITK&nbsp;tries&nbsp;to&nbsp;set&nbsp;this&nbsp;variable&nbsp;one&nbsp;line&nbsp;above&nbsp;MATH(....&nbsp;with
&gt;
&gt;check_type_size(size_t&nbsp;&nbsp;VXL_SIZEOF_SIZE_T)
&gt;
&gt;this&nbsp;CMake&nbsp;command&nbsp;should&nbsp;set&nbsp;the&nbsp;variable&nbsp;VXL_SIZEOF_SIZE_T&nbsp;with&nbsp;4
&gt;(byte)&nbsp;or&nbsp;8&nbsp;(byte)
&gt;it&nbsp;seems&nbsp;that&nbsp;this&nbsp;command&nbsp;does&nbsp;not&nbsp;set&nbsp;this&nbsp;variable.
&gt;
&gt;the&nbsp;following&nbsp;code&nbsp;snippet&nbsp;gives&nbsp;on&nbsp;my&nbsp;Laptop&nbsp;32&nbsp;(CMake&nbsp;2.8,&nbsp;CMake&nbsp;2.6)
&gt;
&gt;INCLUDE&nbsp;(${CMAKE_ROOT}/Modules/CheckTypeSize.cmake)
&gt;#set(VXL_SIZEOF_SIZE_T&nbsp;7)
&gt;CHECK_TYPE_SIZE(size_t&nbsp;&nbsp;VXL_SIZEOF_SIZE_T)
&gt;MATH(EXPR&nbsp;VXL_ADDRESS_BITS&nbsp;8*${VXL_SIZEOF_SIZE_T}&nbsp;)
&gt;message(${VXL_ADDRESS_BITS})
&gt;
&gt;could&nbsp;you&nbsp;try&nbsp;that&nbsp;and&nbsp;post&nbsp;the&nbsp;result?
&gt;
&gt;Best,
&gt;Özgür
&gt;
&gt;
&gt;
&gt;
&gt;2012/5/8&nbsp;Aiden&nbsp;&lt;agongheli@163.com&gt;:
&gt;&gt;&nbsp;Hi,
&gt;&gt;
&gt;&gt;&nbsp;May&nbsp;I&nbsp;ask&nbsp;for&nbsp;help&nbsp;on&nbsp;the&nbsp;compilation&nbsp;of&nbsp;itk&nbsp;3.20.1&nbsp;using&nbsp;vs2008?
&gt;&gt;
&gt;&gt;&nbsp;If&nbsp;I&nbsp;use&nbsp;cmake&nbsp;2.8.7,&nbsp;I&nbsp;got&nbsp;the&nbsp;same&nbsp;error&nbsp;when&nbsp;configuring:
&gt;&gt;
&gt;&gt;&nbsp;http://www.itk.org/pipermail/insight-users/2011-December/043132.html
&gt;&gt;
&gt;&gt;&nbsp;Then&nbsp;I&nbsp;switched&nbsp;to&nbsp;cmake&nbsp;2.6.4,&nbsp;turned&nbsp;off&nbsp;BUILD_TESTING&nbsp;and&nbsp;BUILD_EXAMPLE,
&gt;&gt;&nbsp;I&nbsp;got&nbsp;a&nbsp;similar&nbsp;warning,&nbsp;as&nbsp;attached.
&gt;&gt;
&gt;&gt;&nbsp;In&nbsp;the&nbsp;end,&nbsp;I&nbsp;got&nbsp;a&nbsp;message&nbsp;of&nbsp;error,&nbsp;but&nbsp;without&nbsp;any&nbsp;red&nbsp;line.&nbsp;The&nbsp;"OK"
&gt;&gt;&nbsp;button&nbsp;is&nbsp;grayed.&nbsp;I&nbsp;guess&nbsp;it&nbsp;is&nbsp;the&nbsp;same&nbsp;error&nbsp;with&nbsp;cmake&nbsp;2.8.7.&nbsp;I&nbsp;attached
&gt;&gt;&nbsp;the&nbsp;CMakeCache.txt,&nbsp;ITKBuildSettings.cmake,&nbsp;ITKConfig.cmake&nbsp;here.
&gt;&gt;
&gt;&gt;&nbsp;Thanks&nbsp;a&nbsp;lot&nbsp;for&nbsp;helping&nbsp;out.
&gt;&gt;
&gt;&gt;&nbsp;Regards,
&gt;&gt;&nbsp;Aiden
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;&nbsp;_______________________________________________
&gt;&gt;&nbsp;Powered&nbsp;by&nbsp;www.kitware.com
&gt;&gt;
&gt;&gt;&nbsp;Visit&nbsp;other&nbsp;Kitware&nbsp;open-source&nbsp;projects&nbsp;at
&gt;&gt;&nbsp;http://www.kitware.com/opensource/opensource.html
&gt;&gt;
&gt;&gt;&nbsp;Follow&nbsp;this&nbsp;link&nbsp;to&nbsp;subscribe/unsubscribe:
&gt;&gt;&nbsp;http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
&gt;
&gt;
&gt;
&gt;--&nbsp;
&gt;*********************************************************************
&gt;Dr.&nbsp;Dipl.-Ing.&nbsp;Özgür&nbsp;Güler,&nbsp;Bakk.&nbsp;techn.&nbsp;PhD
&gt;Research&nbsp;Assistant
&gt;4D-Visualization&nbsp;Laboratory
&gt;Univ.&nbsp;ENT&nbsp;Clinic
&gt;Innsbruck&nbsp;Medical&nbsp;University
&gt;Anichstr.&nbsp;35,&nbsp;A-6020&nbsp;Innsbruck,&nbsp;Austria
&gt;
&gt;tel.:&nbsp;+43&nbsp;512&nbsp;504&nbsp;23428,&nbsp;fax.:&nbsp;+43&nbsp;512&nbsp;504&nbsp;25231
&gt;
&gt;voxelmaster.eu
&gt;www.gueler.at
&gt;*********************************************************************
</pre></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>