<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi David,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'>Thank you so much for getting back to me. I searched the VTK 7.1.1 distribution and did not find <span style='background:white'>vtkRenderingOpenGLModule.h, but found vtkRenderingOpenGL2Module.h in the directory Rendering\OpenGL2. So I cheat by generating 2 dummy functions with OpenGL signatures, and in them simply calling their OpenGL2 counterpart in </span></span><span style='color:#1F497D'>vtkRenderingOpenGL2ObjectFactory.cxx. This workaround gets my codes compiled and linked.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Many thanks for your help,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thuc</span><span style='font-size:11.0pt;color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> David Gobbi [mailto:david.gobbi@gmail.com] <br><b>Sent:</b> Saturday, February 03, 2018 1:12 PM<br><b>To:</b> tb<br><b>Cc:</b> VTK Users<br><b>Subject:</b> Re: [vtkusers] OpenGL2 linking issues with VTK 7.1.1 and 8.1.0 for Windows 10<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hi Thuc,<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#222222;background:white'>The </span>vtkRenderingOpenGL_AutoInit_Construct method is declared via the VTK_AUTOINIT() macro in vtkRenderingOpenGLModule.h.  If I recall correctly, if a project includes any header from Rendering/OpenGL (either directly or indirectly) then your project will look for the <span style='font-family:"Arial","sans-serif";color:#222222;background:white'>vtkRenderingOpenGL_AutoInit methods.</span><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#222222;background:white'>The strange thing is, if you have an OpenGL2 build of VTK, then the vtkRenderingOpenGLModule.h header should not even exist.  But since you are getting this build error, it seems that this header does exist, and your project is indirectly including it somehow.</span><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#222222;background:white'>Do a search of your VTK installation to make sure that vtkRenderingOpenGL2Module.h exists and that vtkRenderingOpenGLModule.h does not exists.</span><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#222222;background:white'> - David</span><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Sat, Feb 3, 2018 at 1:26 PM, tb <<a href="mailto:bui@calcreek.com" target="_blank">bui@calcreek.com</a>> wrote:<o:p></o:p></p><p class=MsoNormal>Dear VTK community,<br><br>I have been trying to migrate from VTK 6.3.0 to 7.1.1 and even 8.1.0 in<br>Windows 10 x64 platform. Both versions cause the linking issues with two<br>functions that are no longer exist in either version distribution. I have<br>also made sure my codes reference and link only to the OpenGL2 directories.<br>These two functions, vtkRenderingOpenGL_AutoInit_Construct and<br>vtkRenderingOpenGL_AutoInit_Destruct are not found any where in either<br>header or source files in v7.1.1 distribution (although they are found in<br>6.3.0 containing in the source file<br>OpenGL\vtkRenderingOpenGLObjectFactory.cxx). Do I need to include some other<br>packages in CMake to resolve these linking issues? Currently, in CMake I<br>have only the following module built, vtkGUISupportMFC. Are there some<br>options in CMake that I neglect to enable? I have used the default settings<br>except for enabling CMAKE_CXX_MP_FLAG and VTK_USE_CXX11_FEATURES.<br><br>Many thanks,<br>Thuc Bui<o:p></o:p></p></div></div></div></div></div></body></html>