[vtkusers] Init in VTK 8.0
shawn.waldon at kitware.com
Tue Oct 31 11:51:50 EDT 2017
VTK's default rendering implementation changed from VTK 6 to VTK 7, so the
library names you need changed. The OpenGL backend worked with OpenGL
1.1(or 1.2?), and the newer OpenGL2 backend uses OpenGL 3.2. The default
changed to OpenGL2 in VTK 7.0 and so you need to update the names of the
libraries you are using from vtkRenderingOpenGL and
vtkRenderingVolumeOpenGL to vtkRenderingOpenGL2 and
vtkRenderingVolumeOpenGL2. There is a script you can run in the VTK source
tree (Utilities/Scripts/WhatModulesVTK.py) to figure out what modules you
need to use. I'd run that script and see what you get since I'm not sure
if anything else you use has changed.
On Tue, Oct 31, 2017 at 8:11 AM, Wang Q <wangq1979 at outlook.com> wrote:
> Hello there,
> I upgraded VTK from 6.3 to 8.0, and tried to execute some legacy code
> implemented on 6.3. However, after setting up the project include and lib
> dirs in VS2015, it threw some errors like:
> Severity Code Description Project File Line Suppression State
> Error LNK2001 unresolved external symbol "void __cdecl
> (?vtkRenderingOpenGL_AutoInit_Construct@@YAXXZ) test_vtk
> Vis3D3Phase_WithPipe.obj 1
> My code starts like:
> #include <vtkAutoInit.h>
> #include "vtkSmartPointer.h"
> #include "vtkImageData.h"
> It seems libs are not recognised, but I did update all relating parameters
> in VS project properties.
> In addition, I tried the example of vtkShadows, but unfortunately it said
> unresolved header file "vtkFrameBufferObject.h".
> Any tips would be appreciated!
> Powered by www.kitware.com
> Visit other Kitware open-source projects at http://www.kitware.com/
> Please keep messages on-topic and check the VTK FAQ at:
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers