[Insight-users] Please help on building ITK 4.0 source on Visual Studio 2010 x64
Dan Mueller
dan.muel at gmail.com
Mon Jan 2 17:07:51 EST 2012
Hi Di,
This is strange. I can build ITK 4.0.0 with VS10 x64 without issue.
Unfortunately there is no build server for VS10 x64 (only VS9 x64):
http://www.cdash.org/CDash/index.php?project=Insight&date=2012-01-01
Can you provide some more details? Here are the details I used:
System type: Windows 7 Enterprise 64-bit
Processor: Intel Core i7 CPU Q720 @ 1.6GHz
Memory: 4GB RAM
CMake 2.8.6
ITK 4.0.0: http://downloads.sourceforge.net/project/itk/itk/4.0/InsightToolkit-4.0.0.zip
Visual Studio 10.0.40219.1 SP1Rel
CMAKE_GENERATOR:INTERNAL=Visual Studio 10 Win64
BUILD_DOCUMENTATION:BOOL=OFF
BUILD_EXAMPLES:BOOL=OFF
BUILD_SHARED_LIBS:BOOL=OFF
BUILD_STATIC_EXECS:BOOL=OFF
BUILD_TESTING:BOOL=OFF
Solution Configuration: Release
Solution Configuration: x64
With these details I can compile ITK and a small test program (which
reads PNG and writes NRRD file).
Regards,
Dan Mueller
On 2 January 2012 10:46, Di Lai <dilai_2000 at yahoo.com> wrote:
>
> Hi, Everyone
>
> I just downloaded the source of ITK 4.0 official release, and generated the build tree using
> CMAKE v2.8.6 for visual studio 2010 x64. Everything is OK so far but when I build the solution in Visual Studio I got a bunch of fatal errors (c1017: invalid integer constant expression). It seems that all those errors are caused by line 11 ( #if CMAKE_SIZEOF_VOID_P == 8 ) in file NrrdConfigure.h. Following are the portion of code around line 11:
>
> #define CMAKE_SIZEOF_VOID_P
> #if !defined(__APPLE__)
> #if CMAKE_SIZEOF_VOID_P == 8
> #define TEEM_32BIT 0
> #else
> #define TEEM_32BIT 1
> #endif
> #elif defined(__LP64__) && __LP64__
> #define TEEM_32BIT 0
> #else
> #define TEEM_32BIT 1
> #endif
>
> Does anyone know how to solve this problem?
>
> Thanks a lot!
>
>
> Di Lai, Ph.D
> Senior Image Analysis Scientist
> Omnyx, LLC. ( A GE Healthcare and UPMC company)
> (o) 412-894-2066
> (c) 585-738-0357
> dilai_2000 at yahoo.com
More information about the Insight-users
mailing list