[vtkusers] Linker Errors Compiling Application against VTK 7.1 Libraries

Sean McBride sean at rogue-research.com
Fri Feb 19 09:08:38 EST 2016


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