[vtkusers] Compile with Visual Studio 2008

Alon Mozes amozes77 at yahoo.com
Mon Feb 2 22:23:44 EST 2009


Sorry, I must have missed that post!  (Maybe a poor choice by my spam filter...)
 
This fixes it.  Thanks!

--- On Mon, 2/2/09, David Cole <david.cole at kitware.com> wrote:

From: David Cole <david.cole at kitware.com>
Subject: Re: [vtkusers] Compile with Visual Studio 2008
To: "Alon Mozes" <amozes77 at yahoo.com>
Cc: vtkusers at vtk.org, "Jim" <jiksed at yahoo.com>
Date: Monday, February 2, 2009, 4:28 AM


Did you not see my response to this thread the other day....?


  The first three lines of vtkMFCWindow.cpp are the culprit. They read:


  #ifndef WINVER    // Allow use of features specific to Windows 95 and Windows NT 4 or later.
  #define WINVER 0x0400
  #endif


  Remove them or comment them out and it should work ok with VS2008.


  Sorry for the inconvenience....




HTH,
David





On Sun, Feb 1, 2009 at 11:27 PM, Alon Mozes <amozes77 at yahoo.com> wrote:






Not sure why I had to disable video for windows.  I just know that I compiled and many errors seems to come from a conflict there (with the vtk rendering lib if I remember correctly).  I got rid of that and still have one problem with the MFC lib which I know I need.  Anyone out there compile VTK with Visual Studio 2008 while keeping the MFC flag?  Is this a problem with my Windows settings somehow?  My Visual Studio settings?  Or VTK?
 
Thanks,
Alon

--- On Thu, 1/29/09, Jim <jiksed at yahoo.com> wrote:

From: Jim <jiksed at yahoo.com>

Subject: Re: [vtkusers] Compile with Visual Studio 2008
To: "Alon Mozes" <amozes77 at yahoo.com>, vtkusers at vtk.org
Date: Thursday, January 29, 2009, 8:14 AM






I am doing the same thing and got a bunch of errors. I wonder why you have to turn off VTK_USE_VIDEO_FOR_WINDOWS? Thank you.
 

Alon Mozes <amozes77 at yahoo.com> wrote:





Hi All,
I have a great project using VTK/ITK in an older version of Visual Studio.  I need to upgrade to the latest version of VS (Visual Studio 2008 Professional Edition).  I've found that I must recompile VTK/ITK to properly do so.  I've started from scratch and installed the latest CMake 2.6 which offers an option to use the Visual Studio 2008 compiler and VTK 5.2.1.  For the configuration, I turn on VTK_USE_MFC (via VTK_USE_GUISUPPORT) and VTK_RENDERING.  Then I compile the ALL_BUILD in Visual Studio and I get several errors.  I reconfigured CMake to turn off the VTK_USE_VIDEO_FOR_WINDOWS and all but one error goes away.  I'm still stuck with the following failure (which seems to be in the vtkMFC package which I think is critical for me):
 
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\sdkddkver.h(217) : fatal error C1189: #error : _WIN32_WINNT settings conflicts with _WIN32_IE setting
 
When I dig a little, I'm taken to the following lines of code:
 
#if((_WIN32_WINNT < _WIN32_WINNT_WIN2K) && (_WIN32_IE > _WIN32_IE_IE60SP1))
#error _WIN32_WINNT settings conflicts with _WIN32_IE setting
#endif
 
Its clearly passing this conditional and triggering this error.  The weird thing is that the first part of the conditional should be 0 (the values seem to be 0x0600 < 0x0500) so the whole thing should not pass.  What's going on here?  Any help would be greatly appreciated.
 
Thanks for the help.



_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers




_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers





      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090202/9ccd2f30/attachment.htm>


More information about the vtkusers mailing list