Hi Sishir,<br><br>You can run ctest with -VV to get full output to see why the program is crashing.<br><br>For debugging, as I said in my previous email, set the cmake variable CMAKE_BUILD_TYPE to Debug, then rebuild.  That will compile VES and VTK with debug symbols.  An Android.mk file shouldn't be required.  I haven't personally done gdb debugging on jni code through eclipse, so unfortunately I cannot guide you any further.<br>

<br>Pat<br><br><div class="gmail_quote">On Wed, Mar 14, 2012 at 11:51 AM, Sishir Jain <span dir="ltr"><<a href="mailto:sishirjain@gmail.com">sishirjain@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>    I was able to built ves using Mesa. But on running ctest I got the following error:<br><br>========================================================================<br>root@ubuntu:~/VES/Apps/Linux/CMakeBuild/build/CMakeExternals/Build/ves-host# ctest<br>


Test project /root/VES/Apps/Linux/CMakeBuild/build/CMakeExternals/Build/ves-host<br>    Start 1: TestDrawPlane<br>1/7 Test #1: TestDrawPlane ....................***Exception: SegFault  0.53 sec<br>    Start 2: TestKiwiViewer<br>


2/7 Test #2: TestKiwiViewer ...................***Exception: SegFault  1.80 sec<br>    Start 3: TestClipPlane<br>3/7 Test #3: TestClipPlane ....................***Exception: SegFault  0.40 sec<br>    Start 4: TestTexture<br>


4/7 Test #4: TestTexture ......................***Exception: SegFault  0.31 sec<br>    Start 5: TestGradientBackground<br>5/7 Test #5: TestGradientBackground ...........***Exception: SegFault  0.45 sec<br>    Start 6: TestPointCloud<br>


6/7 Test #6: TestPointCloud ...................***Exception: SegFault  0.46 sec<br>    Start 7: TestMatrix<br>7/7 Test #7: TestMatrix .......................   Passed    0.00 sec<br><br>14% tests passed, 6 tests failed out of 7<br>


<br>Total Test time (real) =   6.98 sec<br><br>The following tests FAILED:<br>      1 - TestDrawPlane (SEGFAULT)<br>      2 - TestKiwiViewer (SEGFAULT)<br>      3 - TestClipPlane (SEGFAULT)<br>      4 - TestTexture (SEGFAULT)<br>


      5 - TestGradientBackground (SEGFAULT)<br>      6 - TestPointCloud (SEGFAULT)<br>Errors while running CTest<br><br>=======================================================================================<br><br>Apart from this error, I am also unable to create a project/workspace using which I can debug ves. Normally an android project using native code through jni is debugged by attaching the native source files under jni folder and using ndk-build to create .so and then ndk-gdb for debugging. Android.mk is required in this case. <br>


<br>If instead of Android.mk, cmake is to be used for building, could you please guide in creating a project/workspace where ves can be debugged and extended (preferably on eclipse) ?<br><br>Regards,<br>Sishir<div class="HOEnZb">

<div class="h5"><br><br><div class="gmail_quote">
On Mon, Mar 12, 2012 at 11:29 PM, Pat Marion <span dir="ltr"><<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi Sishir,<br><br>Rather than use Android.mk to build VES, I recommend you stick with the regular cmake + makefiles build.  In cmake, you can configure the CMAKE_BUILD_TYPE variable to be Debug, or RelWithDebInfo, this will build ves with debug information so that it can be debugged by ndk-gdb when linked to your project.<br>




<br>For you build error when configuring the build for linux, you are missing GLESv2.  I install this on ubuntu using the mesa package:  libgles2-mesa-dev<br><br>Please send your questions to the VES public mailing list so that others can participate.<span><font color="#888888"><br>




<br>Pat</font></span><div><div><br><br><div class="gmail_quote">On Sun, Mar 11, 2012 at 8:31 AM, Sishir Jain <span dir="ltr"><<a href="mailto:sishirjain@gmail.com" target="_blank">sishirjain@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>Hi Pat,</div>
<div>          We need to build our own android application using ves. We were trying to generate an android project in which we could use native C/C++ ves code through jni.</div>
<div> We wanted to include the ves souce files in the same project and debug that using ndk debugger (ndk-gdb). But we got stuck at the make file (Android.mk) which should include the information about the ves files.</div>






<div> </div>
<div>We also tried building ves for testing on linux but could not (see attachment).</div>
<div> </div>
<div>We need your help to configure the development environment (eclipse or anything else which you may prefer) where we could change ves C/C++ source.</div>
<div> </div>
<div>Regards,</div>
<div>Sishir</div>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>