<html><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:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@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-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">“</span></a>changed OPENGL_ES_VERSION to 3.0”</p><p class="MsoNormal"> </p><p class="MsoNormal">If you are building for iOS/Android then that is fine, although I’m pretty sure ES 3.0 is broken in that version of VTK so you would be better off using VTK master as it now has dashboards for iOS/android ES2/ES3 so we know it is at least building etc. It sounds though like you are building for OSX. If you are building for OSX, then you should not turn on OPENGL_ES_VERSION as for OSX you are better off using the full OpenGL 3.2. If you accidentally turned on ES then you just need to delete the entry from the cache and rebuild and it should work.</p><p class="MsoNormal"> </p><p class="MsoNormal">Thanks</p><p class="MsoNormal">Ken</p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ken Martin PhD</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Chairman & CFO</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Kitware Inc.</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">28 Corporate Drive</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Clifton Park NY 12065</span></p><p class="MsoNormal"><a href="mailto:ken.martin@kitware.com"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">ken.martin@kitware.com</span></a><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">919 869-8871 (w)</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you.</span></p></div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><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""> vtkusers [mailto:<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>] <b>On Behalf Of </b>Raul Huertas<br><b>Sent:</b> Monday, October 26, 2015 4:16 PM<br><b>To:</b> <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br><b>Subject:</b> [vtkusers] Compiling OpenGL2 on mac os x</span></p></div></div><p class="MsoNormal"> </p><div><p class="MsoNormal" style="margin-bottom:12.0pt"> </p><div><div><p class="MsoNormal">Hello Everyone!</p></div><div><p class="MsoNormal"><br><br></p></div><div><p class="MsoNormal">I downloaded the source release of 6.3 and I had some issues in Mac OS X. I'm using Makefile generators. First I compiled it with the default settings and i had no issues. Then I proceed to activate the Opengl2 engine, and I had some erros in the linking step. It was like this:</p></div><div><p class="MsoNormal"><br><br></p></div><div><p class="MsoNormal">Undefined symbols:</p></div><div><p class="MsoNormal"><b>vtkFrameBufferObject</b>::methodX, referenced, from ...<br><br></p></div><div><p class="MsoNormal"><b>vtkFrameBufferObject</b>::methodY, referenced, from ...<br><br></p></div><div><p class="MsoNormal"><br><br></p></div><div><p class="MsoNormal">Checking the CMakeLists.txt in "Rendering/OpenGL2" I found this:</p></div><div><p class="MsoNormal"><br><br></p></div><div><div><p class="MsoNormal">if (NOT DEFINED OPENGL_ES_VERSION)</p></div><div><p class="MsoNormal"> set(Module_SRCS ${Module_SRCS}</p></div><div><p class="MsoNormal"> vtkDataTransferHelper.cxx</p></div><div><p class="MsoNormal"> vtkFrameBufferObject2.cxx</p></div><div><p class="MsoNormal"> <b>vtkPixelBufferObject.cxx</b></p></div><div><p class="MsoNormal"> vtkRenderbuffer.cxx</p></div><div><p class="MsoNormal"> )</p></div><div><p class="MsoNormal">else()</p></div><div><p class="MsoNormal"> if (${OPENGL_ES_VERSION} MATCHES 3.0)</p></div><div><p class="MsoNormal"> set(Module_SRCS ${Module_SRCS}</p></div><div><p class="MsoNormal"> <b>vtkFrameBufferObject.cxx</b></p></div><div><p class="MsoNormal"> vtkFrameBufferObject2.cxx</p></div><div><p class="MsoNormal"> vtkRenderbuffer.cxx</p></div><div><p class="MsoNormal"> )</p></div><div><p class="MsoNormal"> endif()</p></div><div><p class="MsoNormal">endif()</p></div></div><div><p class="MsoNormal"><br><br></p></div><div><p class="MsoNormal"><br><br></p></div><p class="MsoNormal">So I changed OPENGL_ES_VERSION to 3.0 (always in the CMake GUI)</p><div><p class="MsoNormal">and I had the following errors:</p></div><div><p class="MsoNormal"><br clear="all"></p><div><div><p class="MsoNormal">Undefined symbols:</p></div><div><p class="MsoNormal"><b>vtkPixelBufferObject</b>::methodZ, referenced, from ...<br><br></p></div><div><p class="MsoNormal"><b>vtkPixelBufferObject</b>::methodW, referenced, from ...</p></div></div><div><p class="MsoNormal"><br><br></p></div><div><p class="MsoNormal">Since I'm very interested in using the opengl2 engine(specifically the new features on vtkOpenGLPolyDataMapper described <a href="http://www.kitware.com/source/home/post/163">here</a>) I modified the CmakeLists.txt file to this:</p></div><div><p class="MsoNormal"><br><br></p></div><div><p class="MsoNormal"><br><br></p></div><div><div><p class="MsoNormal">if (NOT DEFINED OPENGL_ES_VERSION)</p></div><div><p class="MsoNormal"> set(Module_SRCS ${Module_SRCS}</p></div><div><p class="MsoNormal"> vtkDataTransferHelper.cxx</p></div><div><p class="MsoNormal"> vtkFrameBufferObject2.cxx</p></div><div><p class="MsoNormal"> <b>vtkPixelBufferObject.cxx</b></p></div><div><p class="MsoNormal"> vtkRenderbuffer.cxx</p></div><div><p class="MsoNormal"> )</p></div><div><p class="MsoNormal">else()</p></div><div><p class="MsoNormal"> if (${OPENGL_ES_VERSION} MATCHES 3.0)</p></div><div><p class="MsoNormal"> message( STATUS "OpenGL3 ACTIVATED!!!!!!!!")</p></div><div><p class="MsoNormal"> set(Module_SRCS ${Module_SRCS}</p></div><div><p class="MsoNormal"> <b>vtkFrameBufferObject.cxx</b></p></div><div><p class="MsoNormal"> vtkFrameBufferObject2.cxx</p></div><div><p class="MsoNormal"><b> vtkPixelBufferObject.cxx</b></p></div><div><p class="MsoNormal"> vtkRenderbuffer.cxx</p></div><div><p class="MsoNormal"> )</p></div><div><p class="MsoNormal"> endif()</p></div><div><p class="MsoNormal">endif()</p></div></div><div><p class="MsoNormal"><br><br></p></div><div><p class="MsoNormal"><br><br></p></div><div><p class="MsoNormal">And now it compiles perfectly and I already built an example in QtCreator. So, is this something to be fixed? will my programs crash? will I have conflict problems with your reflection system?</p></div><div><p class="MsoNormal"><br><br></p></div><div><p class="MsoNormal">Best regards!</p></div><div><p class="MsoNormal"><br><br></p></div><p class="MsoNormal">-- <br><br></p><div><p class="MsoNormal">Piensa en el ambiente, antes de imprimir este e-mail piensa bien si es necesario hacerlo.</p></div></div></div></div></div></body></html>