[Insight-users] Build ITK 4.0 under Win x64 and Visual Studio 2008
IsabelleNg
isabelleNg at homeworking.org
Mon Jan 17 15:23:20 EST 2011
Dear Luis/ Users,
I have problems building the latest ITK release on Windows. Any pointer is
appreciated!
I downloaded a copy with git; used CMAKE 2.8.3; did not get CMAKE error
messages. Upon building in VS08, however, I got many errors related to
vxl/vnl:
e.g.
Error 1 error C2906: 'vnl_numeric_traits<bool>' : explicit specialization
requires 'template <>' C:\ITK\Utilities\vxl\core\vnl\vnl_numeric_traits.h 71
Error 2 error C2906: 'vnl_numeric_traits<char>' : explicit
specialization requires 'template <>'
C:\ITK\Utilities\vxl\core\vnl\vnl_numeric_traits.h 95
Error 4180 fatal error C1004: unexpected end-of-file found
C:\ITK\Utilities\vxl\core\vnl\vnl_numeric_traits.h 503
I attempted to update vxl from upstream with:
git branch vxl-upstream e1954b95
as instructed in
\Utilities\vxl\README-ITK
but got a "fatal: not a repository" message
I found this thread on VXL issues, but also did not find the problem noted
in /Utilities/vxl/core/vxl_config.h which appears to be "normal"
#define VXL_HAS_INT_32 1
#define VXL_INT_32_STRING "int"
#if 1
typedef int vxl_int_32;
typedef signed int vxl_sint_32;
typedef unsigned int vxl_uint_32;
#else
# define vxl_int_32 void
# define vxl_sint_32 void
# define vxl_uint_32 void
#endif
/* Mac OS X Universal binary support requires a preprocessor test. */
#if defined(__APPLE__)
# define VXL_HAS_INT_64 1
# if __LONG_MAX__ == 0x7fffffff
# define VXL_INT_64_STRING "long long"
typedef long long vxl_int_64;
typedef signed long long vxl_sint_64;
typedef unsigned long long vxl_uint_64;
# define VXL_INT_64_IS_LONG 0
# elif __LONG_MAX__>>32 == 0x7fffffff
# define VXL_INT_64_STRING "long"
typedef long vxl_int_64;
typedef signed long vxl_sint_64;
typedef unsigned long vxl_uint_64;
# define VXL_INT_64_IS_LONG 1
# else
# error "Cannot determine sizeof(long) from __LONG_MAX__."
# endif
#else
# define VXL_HAS_INT_64 1
# define VXL_INT_64_STRING "long long"
# if 1
typedef long long vxl_int_64;
typedef signed long long vxl_sint_64;
typedef unsigned long long vxl_uint_64;
# else
# define vxl_int_64 void
# define vxl_sint_64 void
# define vxl_uint_64 void
# endif
# define VXL_INT_64_IS_LONG 0
#endif
--
View this message in context: http://old.nabble.com/Build-ITK-3.14.0-under-Win-XP-x64-and-Visual-Studio-2008-tp24093359p30676230.html
Sent from the ITK - Users mailing list archive at Nabble.com.
More information about the Insight-users
mailing list