<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<int>' : explicit specialization requires 'template <>'<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 2012-05-09 09:58:16,"Özgür Güler" <ozgur_guler@gmx.at> wrote:
>Hi Aiden,
>
>when I run following simple CMakeLists.txt
>
>----CMakeLists.txt
>cmake_minimum_required(VERSION 2.6)
>
>set(VXL_SIZEOF_SIZE_T 7)
>MATH(EXPR VXL_ADDRESS_BITS 8*${VXL_SIZEOF_SIZE_T} )
>message(${VXL_ADDRESS_BITS})
>----
>
>with CMake 2.8 and 2.6 it works fine and I get the result 56 as output.
>
>The error you get is reproducible if you comment the line where I set
>VXL_SIZEOF_SIZE_T to 7.
>
>In ITKs CMakeLists.txt this means that this variable is not set, which
>causes the strange error message.
>ITK tries to set this variable one line above MATH(.... with
>
>check_type_size(size_t VXL_SIZEOF_SIZE_T)
>
>this CMake command should set the variable VXL_SIZEOF_SIZE_T with 4
>(byte) or 8 (byte)
>it seems that this command does not set this variable.
>
>the following code snippet gives on my Laptop 32 (CMake 2.8, CMake 2.6)
>
>INCLUDE (${CMAKE_ROOT}/Modules/CheckTypeSize.cmake)
>#set(VXL_SIZEOF_SIZE_T 7)
>CHECK_TYPE_SIZE(size_t VXL_SIZEOF_SIZE_T)
>MATH(EXPR VXL_ADDRESS_BITS 8*${VXL_SIZEOF_SIZE_T} )
>message(${VXL_ADDRESS_BITS})
>
>could you try that and post the result?
>
>Best,
>Özgür
>
>
>
>
>2012/5/8 Aiden <agongheli@163.com>:
>> Hi,
>>
>> May I ask for help on the compilation of itk 3.20.1 using vs2008?
>>
>> If I use cmake 2.8.7, I got the same error when configuring:
>>
>> http://www.itk.org/pipermail/insight-users/2011-December/043132.html
>>
>> Then I switched to cmake 2.6.4, turned off BUILD_TESTING and BUILD_EXAMPLE,
>> I got a similar warning, as attached.
>>
>> In the end, I got a message of error, but without any red line. The "OK"
>> button is grayed. I guess it is the same error with cmake 2.8.7. I attached
>> the CMakeCache.txt, ITKBuildSettings.cmake, ITKConfig.cmake here.
>>
>> Thanks a lot for helping out.
>>
>> Regards,
>> Aiden
>>
>>
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
>
>
>
>--
>*********************************************************************
>Dr. Dipl.-Ing. Özgür Güler, Bakk. techn. PhD
>Research Assistant
>4D-Visualization Laboratory
>Univ. ENT Clinic
>Innsbruck Medical University
>Anichstr. 35, A-6020 Innsbruck, Austria
>
>tel.: +43 512 504 23428, fax.: +43 512 504 25231
>
>voxelmaster.eu
>www.gueler.at
>*********************************************************************
</pre></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>