<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello there,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>
<div><span style="color: rgb(200, 38, 19);">Severity</span><span style="white-space: pre; color: rgb(200, 38, 19);">
</span><span style="color: rgb(200, 38, 19);">Code</span><span style="white-space: pre; color: rgb(200, 38, 19);">
</span><span style="color: rgb(200, 38, 19);">Description</span><span style="white-space: pre; color: rgb(200, 38, 19);">
</span><span style="color: rgb(200, 38, 19);">Project</span><span style="white-space: pre; color: rgb(200, 38, 19);">
</span><span style="color: rgb(200, 38, 19);">File</span><span style="white-space: pre; color: rgb(200, 38, 19);">
</span><span style="color: rgb(200, 38, 19);">Line</span><span style="white-space: pre; color: rgb(200, 38, 19);">
</span><span style="color: rgb(200, 38, 19);">Suppression State</span></div>
<div><span style="color: rgb(200, 38, 19);">Error</span><span style="white-space: pre; color: rgb(200, 38, 19);">
</span><span style="color: rgb(200, 38, 19);">LNK2001</span><span style="white-space: pre; color: rgb(200, 38, 19);">
</span><span style="color: rgb(200, 38, 19);">unresolved external symbol "void __cdecl vtkRenderingOpenGL_AutoInit_Construct(void)" (?vtkRenderingOpenGL_AutoInit_Construct@@YAXXZ)</span><span style="white-space: pre; color: rgb(200, 38, 19);">
</span><span style="color: rgb(200, 38, 19);">test_vtk</span><span style="white-space: pre; color: rgb(200, 38, 19);">
</span><span style="color: rgb(200, 38, 19);">D:\develop\C++\projects\test_vtk\test_vtk\test_vtk\Vis3D3Phase_WithPipe.obj</span><span style="white-space: pre; color: rgb(200, 38, 19);">
</span><span style="color: rgb(200, 38, 19);">1</span><span style="white-space: pre; color: rgb(200, 38, 19);">
</span></div>
<div><br>
</div>
</span>My code starts like:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>
<div><span style="color: rgb(12, 100, 192);">#pragma </span></div>
<div><br>
</div>
<div><span style="color: rgb(12, 100, 192);">#include <vtkAutoInit.h></span></div>
<div><span style="color: rgb(12, 100, 192);">VTK_MODULE_INIT(vtkInteractionStyle);</span></div>
<div><span style="color: rgb(12, 100, 192);">VTK_MODULE_INIT(vtkRenderingOpenGL);</span></div>
<div><span style="color: rgb(12, 100, 192);">VTK_MODULE_INIT(vtkRenderingVolumeOpenGL);</span></div>
<div><span style="color: rgb(12, 100, 192);">VTK_MODULE_INIT(vtkRenderingFreeType);</span></div>
</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>
<div><span style="color: rgb(12, 100, 192);">#include "vtkSmartPointer.h"</span></div>
<div><span style="color: rgb(12, 100, 192);">#include "vtkImageData.h"</span></div>
</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
It seems libs are not recognised, but I did update all relating parameters in VS project properties. </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
In addition, I tried the example of vtkShadows, but unfortunately it said unresolved header file "<span>vtkFrameBufferObject.h</span>". </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Any tips would be appreciated!</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Cheers,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Chiang</div>
</body>
</html>