<div dir="ltr"><div>Felipe,<br><br>I have not tried to enable xdmf support in a cross-compile environment.  I added the VTK developers list in case someone on that list has insight on this compilation problem.<br></div><br>

Thank you<br>
<div class="gmail_extra"><br><br><div class="gmail_quote">

On Thu, Aug 22, 2013 at 9:56 AM, Felipe Bordeu Weldt <span dir="ltr">&lt;<a href="mailto:felipe.bordeu@ec-nantes.fr" target="_blank">felipe.bordeu@ec-nantes.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




Hello,<br>
<br>
Thanks Pat for the excellent webinar about VES Android, I&#39;m trying to build my vtk class (a reader) (using the VTK module, with a symbolic link to my readers directory).<br>
My reader depends on the vtkxdmf2 that needs hdf5 support.<br>
<br>
first error building h5<br>
<br>
[ 31%] Building C object ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5detect.dir/H5detect.c.o<br>
/work/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Source/vtk/ThirdParty/hdf5/vtkhdf5/src/H5detect.c: In function &#39;print_header&#39;:<br>
/work/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Source/vtk/ThirdParty/hdf5/vtkhdf5/src/H5detect.c:1204:29: error: &#39;struct passwd&#39; has no member named &#39;pw_gecos&#39;<br>
make[2]: *** [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5detect.dir/H5detect.c.o] Erreur 1<br>
make[1]: *** [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5detect.dir/all] Erreur 2<br>
make: *** [all] Erreur 2<br>
<br>
[ 31%] Building C object ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5make_libsettings.dir/H5make_libsettings.c.o<br>
/Big/fbordeu/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Source/vtk/ThirdParty/hdf5/vtkhdf5/src/H5make_libsettings.c: In function &#39;print_header&#39;:<br>
/Big/fbordeu/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Source/vtk/ThirdParty/hdf5/vtkhdf5/src/H5make_libsettings.c:186:18: error: &#39;struct passwd&#39; has no member named &#39;pw_gecos&#39;<br>
make[2]: *** [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5make_libsettings.dir/H5make_libsettings.c.o] Erreur 1<br>
make[1]: *** [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5make_libsettings.dir/all] Erreur 2<br>
make: *** [all] Erreur 2<br>
<br>
to solve these error I just commented the offending lines (leaving the code like without H5_HAVE_GETPWUID)<br>
<br>
then the generation of the file ./VTK/ThirdParty/hdf5/vtkhdf5/H5lib_settings.c failed<br>
so I copied from the vtk-host folder to the vtk-android<br>
<br>
now I have a this error:<br>
<br>
...<br>
[ 47%] Built target H5make_libsettings<br>
[ 47%] Building C object ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/H5Tconv.c.o<br>
/Big/fbordeu/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Source/vtk/ThirdParty/hdf5/vtkhdf5/src/H5Tconv.c: In function &#39;vtk__H5T_conv_llong_int&#39;:<br>
/Big/fbordeu/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Source/vtk/ThirdParty/hdf5/vtkhdf5/src/H5Tconv.c:7203:1: internal compiler error: in get_arm_condition_code, at config/arm/arm.c:17187<br>
Please submit a full bug report,<br>
with preprocessed source if appropriate.<br>
See &lt;<a href="http://gcc.gnu.org/bugs.html" target="_blank">http://gcc.gnu.org/bugs.html</a>&gt; for instructions.<br>
make[2]: *** [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/H5Tconv.c.o] Erreur 1<br>
make[1]: *** [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/all] Erreur 2<br>
make: *** [all] Erreur 2<br>
<br>
<br>
I&#39;m not an expert of compiling for android. I&#39;m stuck here.<br>
<br>
Is there any way of building the XMDF library without H5 support, only ascii and binary support is enough for me ???<br>
<br>
Thanks<br>
Felipe.<br>
<br>
_______________________________________________<br>
Ves mailing list<br>
<a href="mailto:Ves@public.kitware.com" target="_blank">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>
</blockquote></div><br><br clear="all"><br>-- <br>Casey B. Goodlett, Ph.D.<br>R&amp;D Engineer<br>Kitware, Inc. - North Carolina Office<br><a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br><a href="tel:%28919%29%20969-6990%20x310" value="+19199696990" target="_blank">(919) 969-6990 x310</a>
</div></div>