[vtkusers] Linker Errors Compiling Application against VTK 7.1 Libraries
Donny Zimmerman
zmanvortex at gmail.com
Fri Feb 19 09:21:03 EST 2016
Thank You Sean!! Good info. I never really have grasped the internals of why this is needed, I just know it solves the issue.
Sent from my iPhone
> On Feb 19, 2016, at 8:08 AM, Sean McBride <sean at rogue-research.com> wrote:
>
> On Sat, 13 Feb 2016 13:55:30 -0600, Donny Zimmerman said:
>
>> Sorry, I figured it out myself. Here are my new AUTOINIT lines:
>>
>> #define vtkRenderingCore_AUTOINIT
>> 3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2)
>> #define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL2)
>
> Donny,
>
> In fact, you can make it a little nicer like:
>
> #include "vtkAutoInit.h"
> #include "vtkRenderingOpenGLConfigure.h"
> VTK_MODULE_INIT(vtkInteractionStyle)
> VTK_MODULE_INIT(vtkRenderingFreeType)
> #ifdef VTK_OPENGL2
> VTK_MODULE_INIT(vtkRenderingOpenGL2)
> #else
> VTK_MODULE_INIT(vtkRenderingOpenGL)
> #endif
>
> Cheers,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng sean at rogue-research.com
> Rogue Research www.rogue-research.com
> Mac Software Developer Montréal, Québec, Canada
>
>
More information about the vtkusers
mailing list