Are you using CMake to build your app as well?<div><br></div><div>If not, are you defining the autoinit macros before including VTK header files, as discussed here?</div><div><a href="http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines">http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines</a><br><br><br>HTH,</div><div>David C.</div><div><br></div><div><br>On Thursday, September 10, 2015, Audrius Stundzia <<a href="mailto:audrius@tomographix.com">audrius@tomographix.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div><div>Hello, <br></div>
<div dir="ltr"><div> </div>
<div>OS: Windows 10 x64<br></div>
<div>CMAKE: 3.3.0<br></div>
<div>IDE: VS MS2015 x64<br></div>
<div>VTK: 6.3.0<br></div>
<div>VTK BUILD: Debug x64<br></div>
<div> </div>
<div>VTK built in Debug and installed okay. Thank you.<br></div>
<div> </div>
<div>Attempting to switch to OpenGL2.<br></div>
<div> </div>
<div>In CMAKE, the relevant switches set<br></div>
<div> </div>
<div><div>BUILD<br></div>
<div> </div>
<div>BUILD_SHARED_LIBS [On]<br></div>
</div>
<div> </div>
<div>MODULE<br></div>
<div> </div>
<div>Module_vtkRenderingContextOpenGL2 [On]<br></div>
<div> </div>
<div>Module_vtkRenderingOpenGL2 [On]<br></div>
<div> </div>
<div>Module_vtkRenderingVolumeOpenGL2 [On]<br></div>
<div> </div>
<div>Module_vtkglew [On]<br></div>
<div> </div>
<div>VTK<br></div>
<div> </div>
<div>VTK_LEGACY_REMOVE [On]<br></div>
<div> </div>
<div>VTK_LEGACY_SILENT [On]<br></div>
<div> </div>
<div>VTK_RENDERING_BACKEND OpenGL2<br></div>
<div> </div>
<div>[CMake cache cleared before running Configure with OpenGL2 switches set]<br></div>
<div> </div>
<div>Including shared vtk libs in a project. <br></div>
<div>Build progresses fine [as before] until the last linking libraries stage<br></div>
<div> </div>
<div><div>1> Finished searching libraries<br></div>
<div>1>stdafx.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl vtkRenderingOpenGL2Instantiator::vtkRenderingOpenGL2Instantiator(void)" (__imp_??0vtkRenderingOpenGL2Instantiator@@QEAA@XZ) referenced in function "void __cdecl `dynamic initializer for 'vtkRenderingOpenGL2InstantiatorInitializer''(void)" (??__EvtkRenderingOpenGL2InstantiatorInitializer@@YAXXZ)<br></div>
<div> </div>
<div>1>stdafx.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl vtkRenderingOpenGL2Instantiator::~vtkRenderingOpenGL2Instantiator(void)" (__imp_??1vtkRenderingOpenGL2Instantiator@@QEAA@XZ) referenced in function "void __cdecl `dynamic atexit destructor for 'vtkRenderingOpenGL2InstantiatorInitializer''(void)" (??__FvtkRenderingOpenGL2InstantiatorInitializer@@YAXXZ)<br></div>
</div>
<div> </div>
<div>Have included all created vtk libs and dlls in the project, so puzzled as to why these external vtk symbols have not been resolved.<br></div>
<div> </div>
<div><div>Google and vtk user mailing list did unfortunately not provide insight.<br></div>
<div> </div>
<div>Please advise.<br></div>
</div>
<div> </div>
<div>Regards.<br></div>
<div> </div>
</div>
<div> </div>
</div>
</blockquote></div>