Errors when using VTK v6.2 in MSVC2008
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
After compililng VTK v6.2 with qt5.4.1 by CMake, i'm add VTK lib files to my project and run building. At some moment there is two errors.
- Do_not_include_vtkWin32Header_directly__vtkSystemIncludes_includes_it
file: ...\VTK-6.2.0\Common\Core\vtkWin32Header.h (or installed ..\VTK\include\vtk-6.2\vtkWin32Header.h)
I used next solution: In file ..\VTK-6.2.0\Rendering\Context2D\vtkContextMouseEvent.h
replaced string #include "vtkWin32Header.h" // For export macros.
by #define __VTK_SYSTEM_INCLUDES__INSIDE #include "vtkWin32Header.h" // For export macros. #undef __VTK_SYSTEM_INCLUDES__INSIDE
- ..\VTK\include\vtk-6.2\vtkFreeTypeUtilities.h:38: error: C1083: Cannot open include file: 'FTGL.h': No such file or directory
file: ...\VTK-6.2.0\Rendering\FreeType\vtkFreeTypeUtilities.h (or installed ..\VTK\include\vtk-6.2\vtkFreeTypeUtilities.h)
I just commented string #include <FTGL.h>
Thus // #include <FTGL.h>
I am waiting for an answer