[Ves] Activating vtkxdmf in vtk-android build

Felipe Bordeu felipe.bordeu at ec-nantes.fr
Fri Aug 23 12:15:50 EDT 2013


Thanks for all the help,

I tried (during 2 hours) to separate the HDF5 from  XDMF (in the same 
way as the MySQL support ).
Adding an option in the cMakeLists.txt files and a definition to be able 
to put #ifdef in the code.

but the problem is the class XdmfDataDesc, this class is used almost 
everywhere, and internally uses H5, so again I'm stuck.
We need to rewrite this class entirely to make this work.

Enough for me for this week ,
Bon week-end to all.
Felipe.

Le 23/08/2013 16:07, Aashish Chaudhary a écrit :
> Also,
>
> If you get a similar patch working, then we can help you doing the 
> patch work at the build time automatically and will try to address 
> this in VTK as well.
>
> Thanks,
>
>
>
> On Fri, Aug 23, 2013 at 10:05 AM, Aashish Chaudhary 
> <aashish.chaudhary at kitware.com <mailto:aashish.chaudhary at kitware.com>> 
> wrote:
>
>     Android passwd struct does not have pw_gecos
>
>     Look at this patch
>
>     https://github.com/nathan-osman/AndroX/blob/ad64b792791e1088e40444037402605e17949865/src/patch/openssh.patch
>
>
>     On Fri, Aug 23, 2013 at 9:54 AM, David E DeMarle
>     <dave.demarle at kitware.com <mailto:dave.demarle at kitware.com>> wrote:
>
>         You might be the first to compile hdf5 onto android. We cross
>         compile xdmf and hdf5  frequently, but only for supercomputer
>         tool chains (cray-gnu and bluegene-xlc specifically).
>
>         As far as I know there is no easy way to remove the hdf5
>         dependency from xdmf. xdmf's premise is to be a front end for
>         hdf5 and the binary back end was added afterward. So it will
>         likely take a bit of hacking to take it out. Since the back
>         end is componentized though, it should be possible.
>
>
>         David E DeMarle
>         Kitware, Inc.
>         R&D Engineer
>         21 Corporate Drive
>         Clifton Park, NY 12065-8662
>         Phone: 518-881-4909 <tel:518-881-4909>
>
>
>         On Fri, Aug 23, 2013 at 9:28 AM, Casey Goodlett
>         <casey.goodlett at kitware.com
>         <mailto:casey.goodlett at kitware.com>> wrote:
>
>             Felipe,
>
>             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.
>
>             Thank you
>
>
>             On Thu, Aug 22, 2013 at 9:56 AM, Felipe Bordeu Weldt
>             <felipe.bordeu at ec-nantes.fr
>             <mailto:felipe.bordeu at ec-nantes.fr>> wrote:
>
>                 Hello,
>
>                 Thanks Pat for the excellent webinar about VES
>                 Android, I'm trying to build my vtk class (a reader)
>                 (using the VTK module, with a symbolic link to my
>                 readers directory).
>                 My reader depends on the vtkxdmf2 that needs hdf5 support.
>
>                 first error building h5
>
>                 [ 31%] Building C object
>                 ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5detect.dir/H5detect.c.o
>                 /work/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Source/vtk/ThirdParty/hdf5/vtkhdf5/src/H5detect.c:
>                 In function 'print_header':
>                 /work/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Source/vtk/ThirdParty/hdf5/vtkhdf5/src/H5detect.c:1204:29:
>                 error: 'struct passwd' has no member named 'pw_gecos'
>                 make[2]: ***
>                 [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5detect.dir/H5detect.c.o]
>                 Erreur 1
>                 make[1]: ***
>                 [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5detect.dir/all]
>                 Erreur 2
>                 make: *** [all] Erreur 2
>
>                 [ 31%] Building C object
>                 ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5make_libsettings.dir/H5make_libsettings.c.o
>                 /Big/fbordeu/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Source/vtk/ThirdParty/hdf5/vtkhdf5/src/H5make_libsettings.c:
>                 In function 'print_header':
>                 /Big/fbordeu/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Source/vtk/ThirdParty/hdf5/vtkhdf5/src/H5make_libsettings.c:186:18:
>                 error: 'struct passwd' has no member named 'pw_gecos'
>                 make[2]: ***
>                 [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5make_libsettings.dir/H5make_libsettings.c.o]
>                 Erreur 1
>                 make[1]: ***
>                 [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/H5make_libsettings.dir/all]
>                 Erreur 2
>                 make: *** [all] Erreur 2
>
>                 to solve these error I just commented the offending
>                 lines (leaving the code like without H5_HAVE_GETPWUID)
>
>                 then the generation of the file
>                 ./VTK/ThirdParty/hdf5/vtkhdf5/H5lib_settings.c failed
>                 so I copied from the vtk-host folder to the vtk-android
>
>                 now I have a this error:
>
>                 ...
>                 [ 47%] Built target H5make_libsettings
>                 [ 47%] Building C object
>                 ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/H5Tconv.c.o
>                 /Big/fbordeu/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Source/vtk/ThirdParty/hdf5/vtkhdf5/src/H5Tconv.c:
>                 In function 'vtk__H5T_conv_llong_int':
>                 /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
>                 Please submit a full bug report,
>                 with preprocessed source if appropriate.
>                 See <http://gcc.gnu.org/bugs.html> for instructions.
>                 make[2]: ***
>                 [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/H5Tconv.c.o]
>                 Erreur 1
>                 make[1]: ***
>                 [ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/all]
>                 Erreur 2
>                 make: *** [all] Erreur 2
>
>
>                 I'm not an expert of compiling for android. I'm stuck
>                 here.
>
>                 Is there any way of building the XMDF library without
>                 H5 support, only ascii and binary support is enough
>                 for me ???
>
>                 Thanks
>                 Felipe.
>
>                 _______________________________________________
>                 Ves mailing list
>                 Ves at public.kitware.com <mailto:Ves at public.kitware.com>
>                 http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>
>
>
>
>             -- 
>             Casey B. Goodlett, Ph.D.
>             R&D Engineer
>             Kitware, Inc. - North Carolina Office
>             http://www.kitware.com
>             (919) 969-6990 x310 <tel:%28919%29%20969-6990%20x310>
>
>             _______________________________________________
>             Ves mailing list
>             Ves at public.kitware.com <mailto:Ves at public.kitware.com>
>             http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>
>
>
>         _______________________________________________
>         Ves mailing list
>         Ves at public.kitware.com <mailto:Ves at public.kitware.com>
>         http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>
>
>
>
>     -- 
>     | Aashish Chaudhary
>     | R&D Engineer
>     | Kitware Inc.
>     | www.kitware.com <http://www.kitware.com>
>
>
>
>
> -- 
> | Aashish Chaudhary
> | R&D Engineer
> | Kitware Inc.
> | www.kitware.com <http://www.kitware.com>
>
>
> _______________________________________________
> Ves mailing list
> Ves at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/ves


-- 
Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : 33 (0)2 40 37 16 57
Fax. : 33 (0)2 40 74 74 06
Felipe.Bordeu at ec-nantes.fr
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20130823/8db40488/attachment-0001.html>


More information about the Ves mailing list