[vtkusers] VTK build for android fails

Luciano Geronimo luciano.geronimo.fnord at gmail.com
Wed Jan 3 18:22:52 EST 2018


Good day,

Following the instructions at
https://blog.kitware.com/building-vtk-for-mobile-architectures/ I pulled
VTK from git, installed the Android Studio 3.0.1 and NDK16b. I set
ANDROID_ARCH_ABI = armeabi
ANDROID_EXECUTABLE = /home/luciano/Android/Sdk/tools/android
ANDROID_NATIVE_API_LEVEL = 21
ANDROID_NDK = /home/luciano/android-ndk-r16b
VTK_ANDROID_BUILD = true

When I run sudo make in the build directory the build fails with :
[ 12%] Building C object
ThirdParty/freetype/vtkfreetype/CMakeFiles/vtkfreetype.dir/src/base/ftdebug.c.o
[ 12%] Building C object
ThirdParty/freetype/vtkfreetype/CMakeFiles/vtkfreetype.dir/builds/unix/ftsystem.c.o
[ 13%] Building C object
ThirdParty/tiff/vtktiff/libtiff/CMakeFiles/vtktiff.dir/__/port/dummy.c.o
[ 13%] Linking C static library ../../../../lib/libvtktiff-9.0.a
[ 13%] Linking C static library ../../../lib/libvtkfreetype-9.0.a
[ 13%] Built target vtktiff
[ 13%] Built target vtkfreetype
Makefile:129: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/vtk-android.dir/build.make:111: recipe for target
'CMakeExternals/Prefix/vtk-android-21-armeabi/src/vtk-android-stamp/vtk-android-build'
failed
make[2]: ***
[CMakeExternals/Prefix/vtk-android-21-armeabi/src/vtk-android-stamp/vtk-android-build]
Error 2
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/vtk-android.dir/all'
failed
make[1]: *** [CMakeFiles/vtk-android.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2

My android SDK is in /home/luciano/Android/sdk and my NDK is in
/home/luciano/android-ndk-r16b
My system is a x64 ubuntu 16 building using gcc. VTK build for desktop
works fine.

What am I doing wrong? How can I build and use VTK in android?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180103/cef6a618/attachment.html>


More information about the vtkusers mailing list