[vtkusers] vtk 6.3.0 | Using OpenGL2?

David Cole DLRdave at aol.com
Thu Sep 10 08:23:48 EDT 2015


Are you using CMake to build your app as well?

If not, are you defining the autoinit macros before including VTK header
files, as discussed here?
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines


HTH,
David C.


On Thursday, September 10, 2015, Audrius Stundzia <audrius at tomographix.com>
wrote:

> 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
> vtkRenderingOpenGL2Instantiator::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
> vtkRenderingOpenGL2Instantiator::~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/1057caa0/attachment.html>


More information about the vtkusers mailing list