[Insight-users] Installation problem

Xue, Dahai dahai_xue at merck.com
Fri Jan 11 15:08:45 EST 2013


Hi Matt, 

I think you are right. I setup MS VS2008 on a Windows 7 laptop (with Corei5 64bit), and successfully built and installed ITK4.3. The "ITK Hello World" is now working for it. I am cleaning up the AMD64 workstation and rebuilding everything. 

Thank you. 
Dahai

-----Original Message-----
From: Matt McCormick [mailto:matt.mccormick at kitware.com] 
Sent: Friday, January 11, 2013 3:31 AM
To: Xue, Dahai
Cc: insight-users at itk.org
Subject: Re: [Insight-users] Installation problem

Hi Dahai,

It sounds like there is a problem with your Visual Studio installation.

Matt

On Thu, Jan 10, 2013 at 7:02 PM, Xue, Dahai <dahai_xue at merck.com> wrote:
> Hi Matt,
>
> Thank you for your quick response. I have issues when building ITK4.3.
>
> The error messages for ptrdiff_t is generated from the file
> {ITK_source}\Modules\thridparty\VNL\src\vxl\vcl\vcl_cstddef.h.
> I checked the VS2008 and realize the 2 related types "size_t" and "ptrdiff_t" are available in the system. In the IDE, however, if I type std:: I can see that size_t and ptrdiff_t does not belong to std:: namespace. I therefore commented out the 2 lines where std::size_t and std::ptrdiff_t are defined, assuming the 2 types without std:: in front of them will work just fine. This eliminated all ptrdiff_t related errors.
>
> However, the compiler (output line 46 to 60 counted as pasted in Excel) has issues early on and complained that
> {ITK_source}\thirdparty\vnl\src\vxl\core\vnl\vnl_alloc.h(40): error C2653: 'std': is not a class or namespace name.
> {ITK_source}\thirdparty\vnl\src\vxl\core\vnl\vnl_alloc.h(41): error C2653: 'std': is not a class or namespace name.
> {ITK_source}\thirdparty\vnl\src\vxl\core\vnl\vnl_alloc.h(45): error C2653: 'std': is not a class or namespace name.
> {ITK_source}\thirdparty\vnl\src\vxl\core\vnl\vnl_alloc.h(45): error C2653: 'std': is not a class or namespace name.
> {ITK_source}\thirdparty\vnl\src\vxl\core\vnl\vnl_alloc.h(60): error C2653: 'std': is not a class or namespace name.
> .
> .
> .
> Opening this file I don't see anything like std. I suspect these errors are related to each other.
>
> The building went on and generated several dozens of lib files and stopped generating new files. It seems that it may have stopped when it hit the output line 1820, which stated that
> itkvnl - 13 error(s), 0 warning(s)
>
> Later errors stems from looking for itkvnl.lib, which it cannot find, and then similar issues for itkCommon.lib.
>
> Hope this makes sense to you. Is there any solutions for this?
> Thanks again.
> Dahai
>
> -----Original Message-----
> From: Matt McCormick [mailto:matt.mccormick at kitware.com]
> Sent: Thursday, January 10, 2013 11:48 AM
> To: Xue, Dahai
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] Installation problem
>
> Hi Dahai Xue,
>
> std::ptrdiff_t is a member of the cstddef header:
>
>   http://www.cplusplus.com/reference/cstddef/ptrdiff_t/
>
> ITK 4.3.1 is building fine on VS 2008:
>
>   http://open.cdash.org/index.php?project=Insight
>
> Are the errors you are seeing when building ITK or an application that uses ITK?
>
> Thanks,
> Matt

Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates Direct contact information
for affiliates is available at 
http://www.merck.com/contact/contacts.html) that may be confidential,
proprietary copyrighted and/or legally privileged. It is intended solely
for the use of the individual or entity named on this message. If you are
not the intended recipient, and have received this message in error,
please notify us immediately by reply e-mail and then delete it from 
your system.



More information about the Insight-users mailing list