I am currently trying to build any recent version of VTK with any recent version of Android using:
cmake -S vtk -B vtk-android-build -GNinja -DVTK_ANDROID_BUILD=ON cmake --build vtk-android-build
I have tried the following NDKs:
android-ndk-r21e android-ndk-r19c android-ndk-r16b
Along with the three
v8.0.2 tags as well as the current master for VTK with each of these.
For most Cartesian products, I am consistently getting the error:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: OPENGL_egl_LIBRARY linked by target "vtkRenderingOpenGL2" in directory /home/tt/kw/vtk/Rendering/OpenGL2
This post seems to suggest that NDK version r16b should work with VTK v8.0.2. However, with this configuration, I am getting the following error:
/home/tt/kw/vtk/Common/System/vtkTimerLog.cxx: In static member function 'static void vtkTimerLog::DumpLogWithIndentsAndPercentages(std::ostream*)': /home/tt/kw/vtk/Common/System/vtkTimerLog.cxx:536:25: error: 'round' is not a member of 'std' double percentage = std::round(elapsedTime / parent.second * 1000.) / 10.;
Is there a known build/NDK/SDK configuration that works?