<div dir="ltr">Currently we use the build process in VTK for applications, meaning that we take the examples in VTK/Examples/Android and edit them and then build VTK to get the examples built as well. The resulting executables are in CMakeExternals/Build/vtk-android/Examples/Android/...<div><br></div><div>You can add VTK as a library into android studio but last I heard the process involves hand editing build files etc and it is not something I am familiar with.</div><div><br></div><div>Ken</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 21, 2016 at 10:42 AM, <span dir="ltr"><<a href="mailto:xiaoyu_543@sina.com" target="_blank">xiaoyu_543@sina.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>Hi Ken,</p><p><br></p><p>Thanks for your kindly reply.</p><p>I have tried on OSX and build successfully.</p><p>But I still don't know how to add vtk to my android studio project.</p><p>Thanks a lot for your help again.</p><p><br></p><p><br></p><div><div style="background:#f2f2f2">----- 原始邮件 -----<br>发件人:Ken Martin <<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>><br>收件人:<a href="mailto:xiaoyu_543@sina.com" target="_blank">xiaoyu_543@sina.com</a><br>抄送人:vtkusers <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>主题:Re: [vtkusers] How to build VTK 7.0.0 for android?<br>日期:2016年03月17日 01点27分<br></div><br><div dir="ltr">For VTK we currently use OSX or Linux for building Android. Windows has some complexities that make it difficult to do the mixed build process we use for Android.<div><br></div><div>Thanks</div><div>Ken </div></div><div><br><div>On Tue, Mar 15, 2016 at 10:55 AM, <span dir="ltr"><<a href="mailto:xiaoyu_543@sina.com" target="_blank">xiaoyu_543@sina.com</a>></span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>Hi everybody:</p><p><br></p><p>I want to build vtk 7.0.0 for android developing,below is my procedure and problems i met.</p><p>Please help to check,thanks .</p><p><br></p><p>Step 1. Download source file "<a href="http://www.vtk.org/files/release/7.0/VTK-7.0.0.zip" style="margin:0px;padding:0px;border:0px;outline:0px;font-size:14px;vertical-align:baseline;color:rgb(34,77,163);text-decoration:none;font-family:'Open Sans',Arial,sans-serif;font-style:normal;font-variant:normal;font-weight:500;letter-spacing:normal;line-height:23.8px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background:rgb(240,240,240)" target="_blank">VTK-7.0.0.zip</a>" from "<a href="http://www.vtk.org/" target="_blank">http://www.vtk.org/</a>". <br></p><p>Step 2. Config VTK in CMake like below and generate vtk.sln project:</p><p><img alt=""></p><p><br></p><p>Step 3. Build VTK.sln. I choose build all in debug mode and suffered 2 errors:</p><p>first error :<br></p><p>2> -- Build files have been written to: D:/code/VTK-7.0.0-android-bin_3/CMakeExternals/Build/vtk-compile-tools</p><p>2> Performing build step for 'vtk-compile-tools'<br>2> make: *** No rule to make target `vtkCompileTools'. Stop.<br></p><p>2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: “cmd.exe” exited with code 2.</p><p><br></p><p>second error:</p><p>3> CMake Error at CMakeLists.txt:29 (project):<br>3> CMAKE_SYSTEM_NAME is 'Android' but 'NVIDIA Nsight Tegra Visual Studio<br>3> Edition' is not installed.<br>3><br>3><br>3> -- Configuring incomplete, errors occurred!<br>3> See also "D:/code/VTK-7.0.0-android-bin_3/CMakeExternals/Build/vtk-android/CMakeFiles/CMakeOutput.log".<br>3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: “cmd.exe” exited with code 1.<br></p><p><br></p><p>I find some response from url "<a href="https://blog.kitware.com/building-vtk-for-mobile-architectures/" target="_blank">https://blog.kitware.com/building-vtk-for-mobile-architectures/</a>".</p><p>But I still don't understand how i can do to build VTK for Android correctly.</p><p><br></p><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br><a href="tel:518%20371%203971" value="+15183713971" target="_blank">518 371 3971</a><div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">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.</span></div></div></div>
</font></span></div>
</div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">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.</span></div></div></div>
</div>