<div dir="ltr"><div><div><div><div><div><div><div>Good day,<br><br></div>Following the instructions at <a href="https://blog.kitware.com/building-vtk-for-mobile-architectures/">https://blog.kitware.com/building-vtk-for-mobile-architectures/</a> I pulled VTK from git, installed the Android Studio 3.0.1 and NDK16b. I set <br>ANDROID_ARCH_ABI = armeabi <br>ANDROID_EXECUTABLE = /home/luciano/Android/Sdk/tools/android<br>ANDROID_NATIVE_API_LEVEL = 21<br></div>ANDROID_NDK = /home/luciano/android-ndk-r16b<br></div>VTK_ANDROID_BUILD = true<br><br></div>When I run sudo make in the build directory the build fails with :<br>[ 12%] Building C object ThirdParty/freetype/vtkfreetype/CMakeFiles/vtkfreetype.dir/src/base/ftdebug.c.o<br>[ 12%] Building C object ThirdParty/freetype/vtkfreetype/CMakeFiles/vtkfreetype.dir/builds/unix/ftsystem.c.o<br>[ 13%] Building C object ThirdParty/tiff/vtktiff/libtiff/CMakeFiles/vtktiff.dir/__/port/dummy.c.o<br>[ 13%] Linking C static library ../../../../lib/libvtktiff-9.0.a<br>[ 13%] Linking C static library ../../../lib/libvtkfreetype-9.0.a<br>[ 13%] Built target vtktiff<br>[ 13%] Built target vtkfreetype<br>Makefile:129: recipe for target 'all' failed<br>make[3]: *** [all] Error 2<br>CMakeFiles/vtk-android.dir/build.make:111: recipe for target 'CMakeExternals/Prefix/vtk-android-21-armeabi/src/vtk-android-stamp/vtk-android-build' failed<br>make[2]: *** [CMakeExternals/Prefix/vtk-android-21-armeabi/src/vtk-android-stamp/vtk-android-build] Error 2<br>CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/vtk-android.dir/all' failed<br>make[1]: *** [CMakeFiles/vtk-android.dir/all] Error 2<br>Makefile:94: recipe for target 'all' failed<br>make: *** [all] Error 2<br><br></div>My android SDK is in /home/luciano/Android/sdk and my NDK is in /home/luciano/android-ndk-r16b <br></div>My system is a x64 ubuntu 16 building using gcc. VTK build for desktop works fine.<br><br></div>What am I doing wrong? How can I build and use VTK in android?<br><div><div><div><div><br></div></div></div></div></div>