[Paraview] Fail to build vtkIO in 3.8.0 on Windows7 64bit MSVC2008

Scott, W Alan wascott at sandia.gov
Fri Jun 4 16:26:49 EDT 2010


Not sure if this helps, but I don't have any SDK's explicitly installed at all on my machine.  I am  64 bit windows 7, using the MSVC 2008 (9.0) compiler.  I also looked in my path settings, and no SDK is to be found.  Maybe try uninstalling the SDK, be sure to remove the SDK references in your path settings (and other environment settings), cmake and recompile from scratch?

Alan

From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org] On Behalf Of Dr. X
Sent: Friday, June 04, 2010 2:16 PM
To: Dave Partyka
Cc: paraview at paraview.org
Subject: Re: [Paraview] Fail to build vtkIO in 3.8.0 on Windows7 64bit MSVC2008

Hi Dave,
I tried it with both 6.0A and 7.1 SDK by running a tool coming with the SDK. But the compilation problem stays.

Best,
x

On 6/4/2010 12:52 PM, Dave Partyka wrote:
I don't think changing the SDK that Visual Studio is using is supported. VS 2008 uses the 6.0A SDK. If you want to use the 7.1 SDK then you probably need to use VS 2010. I suspect there are configuration checks that CMake assumes if VS 2008 then use SDK 6.0A conventions.

That said, ParaView should compile fine with Visual Stodio 2008 or 2010 using the appropriate SDK.
On Wed, Jun 2, 2010 at 7:25 PM, Dr. X <xunlei at renci.org<mailto:xunlei at renci.org>> wrote:
Hi All,
I am building ParaView 3.8.0 from source on a Windows7 64bit machine with MSVC2008 and Windows SDK7.1.
I ran into a lot of compilation errors regarding redefinitions in ws2def.h and WinSock2.h. Here are some of these errors in vtkIO project:
---------------------
Error    16    error C2059: syntax error : 'constant'    C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\ws2def.h    390    vtkIO
Error    17    error C2143: syntax error : missing ';' before '}'    C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\ws2def.h    443    vtkIO
Error    18    error C4430: missing type specifier - int assumed. Note: C++ does not support default-int    C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\ws2def.h    443    vtkIO
Error    19    error C4430: missing type specifier - int assumed. Note: C++ does not support default-int    C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\ws2def.h    443    vtkIO
Error    25    error C2011: 'sockaddr_in' : 'struct' type redefinition    C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\ws2def.h    583    vtkIO
Error    26    error C2011: 'fd_set' : 'struct' type redefinition    C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h    132    vtkIO
Error    28    error C2011: 'timeval' : 'struct' type redefinition    C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h    176    vtkIO
Error    29    error C2011: 'hostent' : 'struct' type redefinition    C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h    232    vtkIO
Error    30    error C2011: 'netent' : 'struct' type redefinition    C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h    245    vtkIO
Error    31    error C2011: 'servent' : 'struct' type redefinition    C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h    252    vtkIO
---------------------

I have made sure before every #include <windows.h> there is #include <WinSock2.h>. But that did not mitigate the problem. Can anyone help please? Thanks a lot.

Best,
x

_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100604/aa8fead0/attachment-0001.htm>


More information about the ParaView mailing list