[vtk-developers] [Ves] Activating vtkxdmf in vtk-android build

Aashish Chaudhary aashish.chaudhary at kitware.com
Fri Aug 23 10:07:32 EDT 2013


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> 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
> > 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
>>
>>
>> On Fri, Aug 23, 2013 at 9:28 AM, Casey Goodlett <
>> 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> 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
>>>> 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
>>>
>>> _______________________________________________
>>> Ves mailing list
>>> Ves at public.kitware.com
>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>>>
>>>
>>
>> _______________________________________________
>> Ves mailing list
>> Ves at public.kitware.com
>> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>>
>>
>
>
> --
> | Aashish Chaudhary
> | R&D Engineer
> | Kitware Inc.
> | www.kitware.com
>



-- 
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130823/57aa2609/attachment.html>


More information about the vtk-developers mailing list