[vtkusers] vtk 6.3.0 | Using OpenGL2?

Audrius Stundzia audrius at tomographix.com
Thu Sep 10 02:42:23 EDT 2015


Hello,

OS: Windows 10 x64 CMAKE: 3.3.0 IDE: VS MS2015 x64 VTK: 6.3.0 VTK
BUILD: Debug x64

VTK built in Debug and installed okay. Thank you.

Attempting to switch to OpenGL2.

In CMAKE, the relevant switches set

BUILD

BUILD_SHARED_LIBS [On]

MODULE

Module_vtkRenderingContextOpenGL2 [On]

Module_vtkRenderingOpenGL2 [On]

Module_vtkRenderingVolumeOpenGL2 [On]

Module_vtkglew [On]

VTK

VTK_LEGACY_REMOVE [On]

VTK_LEGACY_SILENT [On]

VTK_RENDERING_BACKEND OpenGL2

[CMake cache cleared before running Configure with OpenGL2 switches set]

Including shared vtk libs in a project. Build progresses fine [as
before] until the last linking libraries stage

1> Finished searching libraries
1>stdafx.obj : error LNK2019: unresolved external symbol
  "__declspec(dllimport) public: __cdecl vtkRenderingOpenGL2Instantiato-
  r::vtkRenderingOpenGL2Instantiator(void)"
  (__imp_??0vtkRenderingOpenGL2Instantiator@@QEAA at XZ) referenced in
  function "void __cdecl `dynamic initializer for
  'vtkRenderingOpenGL2InstantiatorInitializer''(void)"
  (??__EvtkRenderingOpenGL2InstantiatorInitializer@@YAXXZ)

1>stdafx.obj : error LNK2019: unresolved external symbol
  "__declspec(dllimport) public: __cdecl vtkRenderingOpenGL2Instantiato-
  r::~vtkRenderingOpenGL2Instantiator(void)"
  (__imp_??1vtkRenderingOpenGL2Instantiator@@QEAA at XZ) referenced in
  function "void __cdecl `dynamic atexit destructor for
  'vtkRenderingOpenGL2InstantiatorInitializer''(void)"
  (??__FvtkRenderingOpenGL2InstantiatorInitializer@@YAXXZ)

Have included all created vtk libs and dlls in the project, so puzzled
as to why these external vtk symbols have not been resolved.

Google and vtk user mailing list did unfortunately not provide insight.

Please advise.

Regards.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150910/d92183ef/attachment.html>


More information about the vtkusers mailing list