<div dir="ltr">Hi Carlos,<div><br></div><div>Thank you for the answer, I am experienced in Android development but I still find it hard to combine the ves library and the android project in Eclipse with all the makefiles and stuff. So you used visual studio for compiling that's ok.. but you can't put a breakpoint in that while an android app is working in your phone right? So are you basically making the modifications in the windows side checking it and importing them to android?</div>
<div><br></div><div style>I am actually trying to migrate the build process from build files to the android ndk-build. Then maybe I can try ndk-gdb: <a href="http://tools.android.com/recent/usingthendkplugin">http://tools.android.com/recent/usingthendkplugin</a></div>
<div style><br></div><div style>I am still open for other suggestions thanks =)</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 27, 2013 at 10:34 PM, Carlos <span dir="ltr"><<a href="mailto:ves@calculoandamios.com" target="_blank">ves@calculoandamios.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="ES" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">My experience on this issue is the following:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman"">         </span></span></span><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ves/Kiwi is my first approach to develop mobile apps, both for Android an IOS, so I’m not an experienced mobile developer.<u></u><u></u></span></p>
<p><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman"">         </span></span></span><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I have never used before Eclipse nor Xcode in Mac. I mainly use Visual Studio.<u></u><u></u></span></p>
<p><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman"">         </span></span></span><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I started as you compiling Kiwi for android in Windows using the Developers guide.<u></u><u></u></span></p>
<p><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman"">         </span></span></span><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Then I created an Eclipse project to modify the project. For this I imported the Kiwi project for Android. I remember it was not too much difficult.<u></u><u></u></span></p>
<p><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman"">         </span></span></span><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Even I’m pretty sure it is possible to create an Eclipse project for the VES library, I was not able to create it. I found a lot of problems with the headers and libraries related with the ARM7.<u></u><u></u></span></p>
<p><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman"">         </span></span></span><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">In order to debug some modifications in the VES code, I used visual studio to compile the Windows desktop version of Kiwi. At this point the help given by Joachim Pouderoux in this list was crucial. You can check previous emails.<u></u><u></u></span></p>
<p><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:Symbol;color:#1f497d"><span>·<span style="font:7.0pt "Times New Roman"">         </span></span></span><u></u><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">For creating a VS project I just created a library project for each library (Kiwi / VES / VesShaders) and I added all the .cpp files. I did not remember big problems to solve the errors that appeared. In this way you do not need the superbuild and you are able to debug your app.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Recently I started using Xcode in IOS and it is also quite easy to create a project from the scratch and it has the advantage that the interaction with the app is more natural that in the desktop version.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">So I would say that in theory it is possible to create an eclipse project for building the Ves libraries but medium / advanced android develop knowledge using Eclipse is required. If not I would recommend you to compile the Desktop version and check there your changes. Then you can use Eclipse for the debugging the java code.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hope this helps.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Carlos<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:ves-bounces@public.kitware.com" target="_blank">ves-bounces@public.kitware.com</a> [mailto:<a href="mailto:ves-bounces@public.kitware.com" target="_blank">ves-bounces@public.kitware.com</a>] <b>En nombre de </b>Candemir Doger<br>
<b>Enviado el:</b> miércoles</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">, 26 de junio de 2013 14:58<br><b>Para:</b> <a href="mailto:ves@public.kitware.com" target="_blank">ves@public.kitware.com</a><br>
<b>Asunto:</b> [Ves] Building and Debugging with an IDE<u></u><u></u></span></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Hello all,<u></u><u></u></p><div><p class="MsoNormal">
<u></u> <u></u></p></div><div><p class="MsoNormal">I have succesfully compiled VES and run the Kiwi application from Eclipse by following the instructions here: <a href="http://www.vtk.org/Wiki/VES/Developers_Guide_(Windows)" target="_blank">http://www.vtk.org/Wiki/VES/Developers_Guide_(Windows)</a><u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">However, I would like to create an IDE setup to rapidly make code changes in kiwi and ves-android source code and debug these changes (if possible). Thus, I tried to create Eclipse project files with CMake and I imported it. However, there were problems during the build process. <u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I will not mentioned about the problems I encounter during the Eclipse import but I would like to ask some simple questions:<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">1- Would it be possible for me to debug the ves-android application from Eclipse? e.g. running the Android app and putting a breakpoint in ves-android source code to see when it's called.<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">2- Can I add the ves-android project(if I can add it to Eclipse) to the android ndk project (the real android project) as a reference in Eclipse? So when I make a change in the ves-android code the ndk project gets compiled again?<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Previously I worked with android ndk and created a good Eclipse setup with autocompletion and auto-build  features but I am not sure if it is possible with an additional project, in this case ves-android.<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I am looking forward for some answers or at least someone can say it's not possible and I can manually build the ves-code from command console and run the android application from eclipse.<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thanks.<u></u><u></u></p></div><div><p class="MsoNormal">-Candemir<u></u><u></u></p></div></div></div></div></div></div><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></div>