<div dir="ltr">Hi, I'm trying to build VTK for android using cmake on Linux.<div>I download the source from <a href="https://gitlab.kitware.com/vtk/vtk.git">https://gitlab.kitware.com/vtk/vtk.git</a></div><div>and made a branch based on v6.2.0 tag.</div><div><br></div><div>First, I build VTK for linux without problmes. I verify and the .so are generated ok.</div><div>I wish the same results, for Android.</div><div>So, I rebuild (on another build directory) for androd. </div><div><br></div><div>My first problem, was that the installation process of 'vtl-compile-tools' was failed. Because I don't have rights for write on /usr/local</div><div>For resolv that, I replaced the macro:</div><div><br></div><div># Compile a minimal VTK for its compile tools</div><div>macro(compile_vtk_tools)</div><div>  ExternalProject_Add(</div><div>    vtk-compile-tools</div><div>    SOURCE_DIR ${CMAKE_SOURCE_DIR}</div><div>    PREFIX ${PREFIX_DIR}/vtk-compile-tools</div><div>    BINARY_DIR ${BUILD_DIR}/vtk-compile-tools</div><div>    ${VTK_BUILD_COMMAND} vtkCompileTools</div><div>    CMAKE_ARGS</div><div>      -DCMAKE_BUILD_TYPE:STRING=Release</div><div>      -DVTK_BUILD_ALL_MODULES:BOOL=OFF</div><div>      -DVTK_Group_Rendering:BOOL=OFF</div><div>      -DVTK_Group_StandAlone:BOOL=ON</div><div>      -DBUILD_SHARED_LIBS:BOOL=ON</div><div>      -DBUILD_EXAMPLES:BOOL=OFF</div><div>      -DBUILD_TESTING:BOOL=OFF</div><div>  )</div><div>endmacro()</div><div><br></div><div>with:</div><div> </div><div><div># Compile a minimal VTK for its compile tools</div><div>macro(compile_vtk_tools)</div><div>  ExternalProject_Add(</div><div>    vtk-compile-tools</div><div>    SOURCE_DIR ${CMAKE_SOURCE_DIR}</div><div>    PREFIX ${PREFIX_DIR}/vtk-compile-tools</div><div>    BINARY_DIR ${BUILD_DIR}/vtk-compile-tools</div><div>    ${VTK_BUILD_COMMAND} vtkCompileTools</div><div>    CMAKE_ARGS</div><div>      -DCMAKE_BUILD_TYPE:STRING=Release</div><div>      -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_DIR}/vtk-compile-tools</div><div>      -DVTK_BUILD_ALL_MODULES:BOOL=OFF</div><div>      -DVTK_Group_Rendering:BOOL=OFF</div><div>      -DVTK_Group_StandAlone:BOOL=ON</div><div>      -DBUILD_SHARED_LIBS:BOOL=ON</div><div>      -DBUILD_EXAMPLES:BOOL=OFF</div><div>      -DBUILD_TESTING:BOOL=OFF</div><div>  )</div><div>endmacro()</div></div><div><br></div><div>on the file:</div><div><br></div><div>CMake/vtkAndroid.cmake</div><div><br></div><div>I try run make again, and all process finish successful. But only static libraries were generated!! (.a).</div><div>So I change the file 'CMake/vtkAndroid.cmake'  to force to build vtk-android with var BUILD_SHARED_LIBS activated.</div><div>Again, I try to run make but I found many errors.</div><div>Some of them are concerned with NDK, so I'm investigate now how resolv. </div><div><br></div><div>Meanawhile, I want to make the next questions: </div><div>a) It shuld be possible buildt shared VTK libraries for Android right now?</div><div>b) I see that some .cxx files are explicitly excluded for compilation when OpenGL ES 2.0 are used. For what reason?</div><div><br></div><div>Thanks, and sorry by my poor english.</div><div>Daniel F.</div></div>