[vtkusers] vtkMFCConfigure.h

John Drescher drescherjm at gmail.com
Sat May 16 11:24:15 EDT 2009


On Sun, May 17, 2009 at 6:35 AM, Hossein Ghadiri
<hossein.ghadiri at gmail.com> wrote:
> Dear all,
>
> When I open vtkMFC.sln in VS2005 and build it, receive below error:
>
>             fatal error C1083: Cannot open include file:
> 'vtkMFCConfigure.h': No such file or directory: vtkMFCWindow.h
>
> Actually when I use CMake for vtk5.4.0, the Examples folder did not created
> in built folder, even when I did build vtk.sln(that take me  about 1 hour) I
> had not have complete built GUI folder. So I use CMake for GUI folder
> separated. After that I open vtkMFC.sln, when I try to run it, I received
> above error.
>
> It seems the vtkMFCConfigure.h has not created from vtkMFCConfigure.h.in.
>
> Now my question is:
>
> Is there any special procedure to have built MFC examples in VTK?
>
I would suggest reconfiguring with CMake-gui to enable the examples
properly. I mean make sure that BUILD_EXAMPLES VTK_USE_GUISUPPORT and
VTK_USE_MFC are all enabled. For this you will have to run configure a
few times because without VTK_USE_GUISUPPORT enabled you will not have
a   VTK_USE_MFC option.

 John



More information about the vtkusers mailing list