[vtkusers] vtk visual 10 static issue

John Drescher drescherjm at gmail.com
Wed Apr 11 09:06:55 EDT 2012


On Wed, Apr 11, 2012 at 9:02 AM, youpie <meriadegp at yahoo.fr> wrote:
> Hi,
>
> I'm trying to compile VTK with visual studio 2010 and cmake with visual
> studio 10 compiler. Of course on Windows.
>
> My vtk options are BUILD_SHARED = OFF because I want it in static and
> VTK_USE_QT = ON
> I Use qt 4.7.4 with qmake focus on the visual2008 folder of qt.
>
> I can configure and generate the sln with cmake but at its compilation, I
> have these problems :
>
> vtkGLSLShaderLibrary.h is not a directory
>
> vtkMaterialXMLLibrary.h is not a directory
>
> these files are included from (but not finded) :
>
> vtkShaderCodeLibraryMacro.h and vtkMaterialLibraryMacro.h
>
> When I open the folder where normaly they are, I have instead :
> vtkGLSLShaderLibrary.h.rule and vtkMaterialXMLLibrary.h.rule
>
> These two files are empty.
>
> Any suggestion ?
>

I have no idea about your header problem however I recommend you build
Qt for your Visual Studio 2010 compiler and not try to use a Visual
Studio 2008 compiled version. Strange problems/bugs can occur when you
mix compilers especially microsoft ones.

John



More information about the vtkusers mailing list