[vtkusers] VTK for android

Ken Martin ken.martin at kitware.com
Mon Oct 12 09:22:30 EDT 2015


Here is what I do and it works well

Set my ANDROID_NDK in my environment, I also have android and ant in my
path

mkdir vtkbin; cd vtkbin

cmake-gui ../vtk  (assuming your vtk tree is next to your vtkbin tree)

manually add an entry for VTK_ANDROID_BUILD bool and check the box

configure

check the box for build examples

configure/generate

ninja (or make if you use make)

you should have apks built for three examples at this point, they are
located in vtkbin/CMakeExternals/Build/vtk-android/Examples/Android/*/bin

Thanks
Ken


Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
ken.martin at kitware.com
919 869-8871 (w)


This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you
are not the intended recipient, any disclosure, copying, distribution or
any action taken in reliance on it is prohibited and may be unlawful. If
you received this communication in error please notify us immediately and
destroy the original message.  Thank you.


-----Original Message-----
From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Lonni
Besançon
Sent: Monday, October 12, 2015 9:15 AM
To: vtkusers at vtk.org
Subject: [vtkusers] VTK for android

Hello,

I've re-built VTK from the last version available on git.
My goal is to try and make the example from the repo work on android.

However, when I try to ccmake the examples I get the following errors:
/CMake Error at /usr/local/lib/cmake/vtk-6.2/vtkModuleAPI.cmake:120
(message):
   Requested modules not available:

     vtkRenderingOpenGL2
 Call Stack (most recent call first):
   /usr/local/lib/cmake/vtk-6.2/VTKConfig.cmake:80 (vtk_module_config)
   NativeVTK/CMakeLists.txt:8 (find_package)/

Yet, when I check my CMakeCache, I have:
///Choose the rendering backend.
VTK_RENDERING_BACKEND:STRING=OpenGL2/

Would love to get some help on that matter.

Thanks in advance.



--
View this message in context:
http://vtk.1045678.n5.nabble.com/VTK-for-android-tp5734365.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers


More information about the vtkusers mailing list