<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 id="origbody"><div style="background: #f2f2f2;">----- 原始邮件 -----<br>发件人:Ken Martin <ken.martin@kitware.com><br>收件人:xiaoyu_543@sina.com<br>抄送人:vtkusers <vtkusers@vtk.org><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 class=""><br><div class="">On Tue, Mar 15, 2016 at 10:55 AM, <span dir="ltr"><<a target="_blank" href="mailto:xiaoyu_543@sina.com">xiaoyu_543@sina.com</a>></span> wrote:<br><blockquote class="" 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 target="_blank" 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)">VTK-7.0.0.zip</a>" from "<a target="_blank" href="http://www.vtk.org/">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 target="_blank" href="https://blog.kitware.com/building-vtk-for-mobile-architectures/">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 target="_blank" href="http://www.kitware.com" rel="noreferrer">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a target="_blank" href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a target="_blank" href="http://markmail.org/search/?q=vtkusers" rel="noreferrer">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a target="_blank" href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="">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>
</div>