<div dir="ltr">The nightly iOS build is off VTK master and I know the examples have been tested fairly recently so that may be the way to go. I know folks are using it on an iOS based project so maybe give master a shot.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 24, 2017 at 9:58 AM, Brooksby, Glen W (GE Global Research, US) <span dir="ltr"><<a href="mailto:brooksby@ge.com" target="_blank">brooksby@ge.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div class="m_-4372008702918705116WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks again Ken.  I agree that ES2 should be removed because it is not only present, but it’s the default.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">However, the 7.1.1 iOS build is still broken. 
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">The problems are indicated in this
<a href="https://stackoverflow.com/questions/41001334/missing-opengl-extension-items-when-compiling-vtk-for-ios" target="_blank">
stackoverflow</a> post from December.  I see from the current master branch that the misnamed variable ‘multisample’ has been fixed by changing to ‘multisampling’. Simple enough.  However, there is still the issue of GL_MULTISAMPLE being undefined.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">I can see it is defined in the following files:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Lucida Console"">ThirdParty/glew/vtkglew/<wbr>include/GL/glew.h<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Lucida Console"">Utilities/ParseOGLExt/headers/<wbr>GL3/gl3.h<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Lucida Console"">Utilities/ParseOGLExt/headers/<wbr>glext.h</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">but with it in 3 locations I can’t tell how it is supposed to properly make its way into the Rendering/OpenGL2/*.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Is your working build from the master branch?  I’m wondering if I should abandon hope with 7.1.1 and go to 8.x.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Suggestions?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Glen<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Ken Martin [mailto:<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a><wbr>]
<br>
<b>Sent:</b> Wednesday, May 24, 2017 8:06 AM<br>
<b>To:</b> Brooksby, Glen W (GE Global Research, US) <<a href="mailto:brooksby@ge.com" target="_blank">brooksby@ge.com</a>><br>
<b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Subject:</b> EXT: Re: [vtkusers] VTK 7.1.1 iOS build<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">We no longer support ES2 (I should remove that option) so ES3 is definitely a good step.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Tue, May 23, 2017 at 5:03 PM, Brooksby, Glen W (GE Global Research, US) <<a href="mailto:brooksby@ge.com" target="_blank">brooksby@ge.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks for the prompt reply Ken.  I’ll give it another go.  The only difference I see between your build and mine
 is OPENGL_ES_VERSION=3.0, and BUILD_EXAMPLES=ON, whereas I had ES=2.0 and examples off. I’ll make the change and see what happens.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Glen</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Ken Martin [mailto:<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a><wbr>]
<br>
<b>Sent:</b> Tuesday, May 23, 2017 3:58 PM<br>
<b>To:</b> Brooksby, Glen W (GE Global Research, US) <<a href="mailto:brooksby@ge.com" target="_blank">brooksby@ge.com</a>><br>
<b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Subject:</b> EXT: Re: [vtkusers] VTK 7.1.1 iOS build</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">The ios build of VTK starts at the top where it sets up subdirectories and then recursively calls cmake on VTK for those subdirectories with specific options. So the return at the
 top is correct. When the build process is building the subdirectories it will process that same file with different settings where it will get to those later if statements.<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Also you can look at <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="https://open.cdash.org/viewNotes.php?buildid=4909344" target="_blank">https://open.cdash.org/<wbr>viewNotes.php?buildid=4909344</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">which shows how the nightly dashboard is setup for iOS.<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal">Hope that helps! <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Ken<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Tue, May 23, 2017 at 3:38 PM, Brooksby, Glen W (GE Global Research, US) <<a href="mailto:brooksby@ge.com" target="_blank">brooksby@ge.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">I’m attempting to build VTK (v7.1.1) for iOS and I’ve run into problems.  In looking at the top level CMakeLists.txt file I see a stanza that says:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">option(VTK_IOS_BUILD "Build vtk.framework for iOS" OFF)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">if (VTK_IOS_BUILD)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">  include(vtkiOS)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">  return()</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">endif()</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">The only instructions I see for building VTK for iOS are
<a href="https://blog.kitware.com/building-vtk-for-mobile-architectures/" target="_blank">
here</a>. These instructions say to set <span style="font-family:"Courier New"">VTK_IOS_BUILD=ON</span> and a few other variables.<u></u><u></u></p>
<p class="MsoNormal">However, if
<span style="font-family:"Courier New"">VTK_IOS_BUILD=ON</span>, the stanza above causes CMake to “return”, or quit processing the top-level CMakeLists.txt file.  Yet further down in the same CMakeLists.txt file I see:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span class="m_-4372008702918705116m-1056602042347884090m-700701361661895800pl-k"><span style="font-family:"Courier New"">if</span></span><span style="font-family:"Courier New""> (ANDROID
<span class="m_-4372008702918705116m-1056602042347884090m-700701361661895800pl-k">OR</span> APPLE_IOS)</span> …<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">and
<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span class="m_-4372008702918705116m-1056602042347884090m-700701361661895800pl-k"><span style="font-family:"Courier New"">if</span></span><span style="font-family:"Courier New""> (APPLE_IOS)</span>…<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">These two conditionals seem to be targeting iOS, but will never be reached if
<span style="font-family:"Courier New"">VTK_IOS_BUILD=ON</span>.  I see nowhere where
<span style="font-family:"Courier New"">APPLE_IOS</span> is set, nor instructions to set it. 
<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">For my case I changed the first stanza to:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">option(VTK_IOS_BUILD "Build vtk.framework for iOS" OFF)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">if (VTK_IOS_BUILD)</span><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:13.5pt">
<span style="font-family:"Courier New"">include(vtkiOS)</span><u></u><u></u></p>
<p class="MsoNormal" style="text-indent:13.5pt">
<span style="font-family:"Courier New"">SET (APPLE_IOS 1)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">  #return()</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">endif()</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Configure, generate, and the build seems to get much further, but the build still breaks when building for the simulator (in vtkGL2PSExporter.cxx because it’s not finding vtk_gl2ps.h).<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">A framework is produced, but it appears to be incomplete.  Specifically, vtkInteractorStyleMultiTouchCa<wbr>mera.h is not included, which may be caused by
<span style="font-family:"Courier New"">APPLE_IOS</span> being set.  Because of this the iOS example GLPaint cannot be built.
<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Is there anyone who is having success building VTK 7.1.1 for iOS who can shed some light on this or provide more thorough instructions? Would a different version have more success? 
 A VTK Framework does appear to have been produced.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">For reference I’m building VTK 7.1.1, using CMake version 3.8.0.  I’m building on a Macbook air running MacOS 10.12.4 (Sierra), with Xcode 8.3.1.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal"><span style="color:#888888"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#888888">Glen Brooksby</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#888888"> </span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" 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" 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" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal">--
<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Ken Martin PhD<u></u><u></u></p>
<div>
<p class="MsoNormal">Distinguished Engineer<br>
<span style="font-size:9.5pt">Kitware Inc.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">28 Corporate Drive<br>
Clifton Park NY 12065<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif">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><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Ken Martin PhD<u></u><u></u></p>
<div>
<p class="MsoNormal">Distinguished Engineer<br>
<span style="font-size:9.5pt">Kitware Inc.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">28 Corporate Drive<br>
Clifton Park NY 12065<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif">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><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Ken Martin PhD<div>Distinguished Engineer<br><span style="font-size:12.8px">Kitware Inc.</span><br></div><div>28 Corporate Drive<br>Clifton Park NY 12065<br><div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">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></div></div></div></div></div>
</div>