[vtkusers] VTK 6.1 linking/autoinit
Jude Pereira
jpereira at advsolinc.com
Mon Sep 9 13:21:47 EDT 2013
Just for context, I am using this inside Qt.
I have a main.cpp, mainwindow.h/.cpp
I only use the vtk classes in mainwindow.cpp so I put the defines and includes in mainwindow.h
The linker error states that it can't find some symbols and points to vtkRenderingOpenGL-6.1.lib
Jude
-----Original Message-----
From: David Cole [mailto:dlrdave at aol.com]
Sent: Monday, September 09, 2013 11:43 AM
To: Jude Pereira; vtkusers at vtk.org
Subject: Re: [vtkusers] VTK 6.1 linking/autoinit
> I’ve been using VTK 6.0 libs with
>
> #define
vtkRenderingCore_AUTOINIT4(vtkInteractionStyle,vtkRenderingFreeType,vtkRe
nderingFreeTypeOpenGL,vtkRenderingOpenGL)
> #define vtkRenderingVolume_AUTOINIT1(vtkRenderingVolumeOpenGL)
>
> I was just putting together a test project and decided to try the 6.1
libs and with the above mentioned defines
> I get several linker errors related to vtkRenderingOpenGL-6.1.lib ...
What linker errors do you get?
Do you put those #define lines before *every* VTK header file? (i.e. -- if you have some cpp files where you do and some where you don't, then there could be link time inconsistencies that would cause linker
errors...)
HTH,
David C.
More information about the vtkusers
mailing list