<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 Shawn,</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);">
Your tips really help! But I cannot find the script<span><span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal;"> under
 the dir as</span></span> you mentioned. I wonder it has been moved to somewhere else in VTK 8.</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);">
Best wishes,</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>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>发件人:</b> Shawn Waldon <shawn.waldon@kitware.com><br>
<b>发送时间:</b> 2017年10月31日 15:51<br>
<b>收件人:</b> Wang Q<br>
<b>抄送:</b> vtkusers@vtk.org<br>
<b>主题:</b> Re: [vtkusers] Init in VTK 8.0</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>
<div>Hi Chiang,<br>
<br>
</div>
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.<br>
</div>
<div><br>
</div>
<div>HTH,<br>
</div>
Shawn<br>
</div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On Tue, Oct 31, 2017 at 8:11 AM, Wang Q <span dir="ltr">
<<a href="mailto:wangq1979@outlook.com" target="_blank">wangq1979@outlook.com</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div 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-wrap; color:rgb(200,38,19)">
</span><span style="color:rgb(200,38,19)">Code</span><span style="white-space:pre-wrap; color:rgb(200,38,19)">
</span><span style="color:rgb(200,38,19)">Description</span><span style="white-space:pre-wrap; color:rgb(200,38,19)">
</span><span style="color:rgb(200,38,19)">Project</span><span style="white-space:pre-wrap; color:rgb(200,38,19)">
</span><span style="color:rgb(200,38,19)">File</span><span style="white-space:pre-wrap; color:rgb(200,38,19)">
</span><span style="color:rgb(200,38,19)">Line</span><span style="white-space:pre-wrap; 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-wrap; color:rgb(200,38,19)">
</span><span style="color:rgb(200,38,19)">LNK2001</span><span style="white-space:pre-wrap; color:rgb(200,38,19)">
</span><span style="color:rgb(200,38,19)">unresolved external symbol "void __cdecl vtkRenderingOpenGL_AutoInit_<wbr>Construct(void)" (?vtkRenderingOpenGL_AutoInit_<wbr>Construct@@YAXXZ)</span><span style="white-space:pre-wrap; color:rgb(200,38,19)">
</span><span style="color:rgb(200,38,19)">test_vtk</span><span style="white-space:pre-wrap; color:rgb(200,38,19)">
</span><span style="color:rgb(200,38,19)">D:\develop\C++\projects\test_<wbr>vtk\test_vtk\test_vtk\<wbr>Vis3D3Phase_WithPipe.obj</span><span style="white-space:pre-wrap; color:rgb(200,38,19)">
</span><span style="color:rgb(200,38,19)">1</span><span style="white-space:pre-wrap; 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(<wbr>vtkInteractionStyle);</span></div>
<div><span style="color:rgb(12,100,192)">VTK_MODULE_INIT(<wbr>vtkRenderingOpenGL);</span></div>
<div><span style="color:rgb(12,100,192)">VTK_MODULE_INIT(<wbr>vtkRenderingVolumeOpenGL);</span></div>
<div><span style="color:rgb(12,100,192)">VTK_MODULE_INIT(<wbr>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>
</div>
<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">
http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">
http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>