I'm afraid there's no such thing as a main.cxx example for iOS.  You can't compile a main.cxx file to produce an iOS program using VES.  You have to build a complete iOS app, and iOS apps require some code in Objective-C and several resource files.  You have to use XCode to generate a new iOS project, or copy the existing Kiwi project.<br>

<br>Your iOS app has to contain a GKLView in order to initialize the rendering context for VES.  If you're not already familiar with GLKit in iOS, you should try following some of the online tutorials for GLKit.  After you have some familiarity with GLKit, the best way to get started is to create a new project in XCode and select File -> New Project and then choose OpenGL Game as the base project template.  Then, you have to add VTK and VES library and include search paths to the XCode project, this can be a tricky step.  In the next release of VES we will have a build step that creates frameworks which greatly simplify using VTK and VES in XCode.  We'll also have an example using GLKit, the current release version of Kiwi uses EAGLView because it was developed before Apple had released GLKit.  If you've never created an iOS project from scratch, you might find it easiest to just copy the existing Kiwi project and use that as a template.  Just make sure you modify the xcconfig file to set the currect path locations.<br>

<br>Pat<br><br><div class="gmail_quote">On Tue, Nov 13, 2012 at 3:50 AM, Thiago Tavares Magalhães <span dir="ltr"><<a href="mailto:ttavaresm@gmail.com" target="_blank">ttavaresm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<span lang="en"><span>Hello all</span><span>,</span><br><br><span>A short time</span> <span>since</span> <span>I sent</span> <span>my last</span> <span>question</span><span>, sorry</span> <span>for my</span> <span>insistence</span><span>,</span> <span>but I'm still</span> <span>new to</span> <span>VES</span><span>.</span><br>



<br><span>I want to</span> <span>develop</span> <span>a simple example using</span> <span>VES</span><span>,</span> <span>but</span> <span>on a</span> <span>common</span> <span>text editor</span><span>,</span> <span>such as gedit</span><span>, for example</span><span>, and</span> <span>compiling with</span> <span>cmake</span><span>.</span><br>



<span>I've</span> <span>specified the</span> <span>directory</span> <span>VES</span> <span>(already installed</span><span>)</span> <span>in</span> <span>CMAkeList</span><span>.</span> <span>My</span> <span>CMakeList</span> <span>is</span> <span>thus:</span><br>



<br><span>/ /</span> <span>-----------------------------------</span> <span>/ /</span> <span>-----------</span> <span>------------------------</span> <span>/ /</span><br>

<span>cmake_minimum_required</span> <span>(VERSION</span> <span>2.8)</span><br><br><span>PROJECT</span> <span>(</span><span>Step1</span><span>)</span><br><br>

<span>set (</span><span>CMAKE_OSX_SYSROOT</span> <span>iphoneos4.3</span><span>)</span><br><span>set (</span><span>CMAKE_XCODE_EFFECTIVE_PLATFORMS</span> <span>"-</span><span>iPhoneOS</span><span>;</span><span>-</span><span>iphonesimulator</span><span>")</span><br>



<br><span>include_directories</span> <span>(</span><span>$</span> <span>CMAKE_CURRENT_SOURCE_DIR</span> <span>{</span><span>}</span><span>)</span><br><br><span>Find_package (</span><span>VES</span> <span>REQUIRED</span><span>)</span><br>



<span>Include_directories</span> <span>(</span><span>$</span> <span>VES_INCLUDE_DIRS</span> <span>{</span><span>}</span><span>)</span><br><br><span>Find_package (</span><span>VTK</span> <span>REQUIRED</span><span>)</span><br>



<span>INCLUDE</span> <span>(</span><span>$</span> <span>{</span><span>}</span> <span>VTK_USE_FILE</span><span>)</span><br><br><span>ADD_EXECUTABLE</span> <span>(</span><span>EsferaMalhaDeArestas</span> <span>.. /</span> <span>main.cxx</span><span>)</span><br>



<span>TARGET_LINK_LIBRARIES</span> <span>(</span><span>EsferaMalhaDeArestas</span> <span>vtkRendering</span><span>)</span><br><span>/ /</span> <span>-----------------------------------</span> <span>/ /</span> <span>-----------</span> <span>------------------------</span> <span>/ /</span><br>



<br><span>How do I</span> <span>run the application</span> <span>within that</span> <span>iPadSimulator</span><span>?</span> <span>Could someone</span> <span>show me</span> <span>a code</span> <span>example</span> <span>that does something</span> <span>very simple</span><span>,</span> <span>such as</span> <span>instantiating a</span> <span>coneSource</span> <span>and</span> <span>display it</span> <span>on the screen of</span> <span>iPadSimulator</span><span>,</span> <span>please?</span><br>



<br><span>I promise I</span><span>'ll give</span> <span>a reasonable space</span> <span>of time</span> <span>between this</span> <span>and my</span> <span>next question</span><span>.</span><br>

<br><span>Thank you!</span><span class="HOEnZb"><font color="#888888"><br><span>Thiago</span></font></span></span><span class="HOEnZb"><font color="#888888"><br clear="all"><br>-- <br><div style="text-align:left"><div><span style="color:rgb(102,102,102)"><span style><a href="http://lattes.cnpq.br/1989532473555107" target="_blank">Thiago Tavares Magalhães</a><br>



</span></span></div><span style="color:rgb(102,102,102)"><span style></span></span></div><div style="text-align:left"><span style="color:rgb(102,102,102)"><span style>Instituto Superior de Tecnologia em Ciências da Computação de Petrópolis - <b>FAETERJ</b><br>



Laboratório Nacional de Computação Científica -<b> LNCC</b></span></span><br></div><br>
</font></span><br>_______________________________________________<br>
Ves mailing list<br>
<a href="mailto:Ves@public.kitware.com">Ves@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a><br>
<br></blockquote></div><br>