[vtkusers] Building VTK 7.0 for Android (api 19)

Luuk de Gram luukdegram at gmail.com
Wed Mar 9 04:13:49 EST 2016


Dear VTK community,

I've been trying to build VTK 7.0 for Android using api level 19. Although
I did succeed in building it using api 21, I would prefer it to work with
api 19. I could not find any information if 21 and higher is a requirement
to building 7.0.

Anyway whenever I run make, I get the following errors:

/home/luuk/Documents/VTK/Utilities/KWSys/vtksys/SystemInformation.cxx: In
member function 'vtksys::SystemInformation::LongLong
vtksys::SystemInformationImplementation::GetProcMemoryAvailable(const
char*, const char*)':
/home/luuk/Documents/VTK/Utilities/KWSys/vtksys/SystemInformation.cxx:3523:21:
error: aggregate 'ResourceLimitType rlim' has incomplete type and cannot be
defined
   ResourceLimitType rlim;
                     ^
/home/luuk/Documents/VTK/Utilities/KWSys/vtksys/SystemInformation.cxx:3524:42:
error: 'getrlimit64' was not declared in this scope
   ierr=GetResourceLimit(RLIMIT_DATA,&rlim);
                                          ^
Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/build.make:353: recipe for
target
'Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/SystemInformation.cxx.o'
failed
make[5]: ***
[Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/SystemInformation.cxx.o]
Error 1
CMakeFiles/Makefile2:171: recipe for target
'Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/all' failed
make[4]: *** [Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/vtk-android.dir/build.make:109: recipe for target
'CMakeExternals/Prefix/vtk-android/src/vtk-android-stamp/vtk-android-build'
failed
make[2]: ***
[CMakeExternals/Prefix/vtk-android/src/vtk-android-stamp/vtk-android-build]
Error 2
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/vtk-android.dir/all'
failed
make[1]: *** [CMakeFiles/vtk-android.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
make: *** [all] Error 2

Regards,
Luuk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160309/0eb5c7cc/attachment.html>


More information about the vtkusers mailing list