[Ves] Activating vtkxdmf in vtk-android build
Felipe Bordeu Weldt
felipe.bordeu at ec-nantes.fr
Thu Aug 22 09:56:56 EDT 2013
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.
More information about the Ves
mailing list