[Ves] Problems building the kiwi viewer for Android in a Windows system
Bill Hoffman
bill.hoffman at kitware.com
Wed Nov 27 11:00:07 EST 2013
On 11/27/2013 9:37 AM, Ainhoa Gracia wrote:
> Hi!!
>
> We are using the 2.8.12.1 version
>
> Thank you very much!
>
> Ainhoa
>
Hi, I have been working on the Windows build. There are several fixes
that need to be in the code for this to work. Right now, they are in
this branch: improve_ves_android. Looking at your error log, I can
see that you did not run cmake-gui from a VS command prompt, you have to
do that.
These steps should work:
Download this:
http://developer.android.com/sdk/index.html
Then the NDK
http://developer.android.com/tools/sdk/ndk/index.html
Get a copy of VES
git clone git://vtk.org/stage/VES.git
git checkout improve_ves_android
Configure VES with CMake
****** This is important, you must run a Visual Studio build command
prompt shell
open a VS build shell
set ANDROID_NDK=c:\Users\hoffman\android-windows\android-ndk-r9
run cmake use full path to your install of cmake
cmake-gui (must be 2.8.12.1)
Turn on VES_ANDROID_SUPERBUILD
Run nmake.
Build Kiki:
Run cmake-gui on Kiwi, be sure to use toolchain option (specify
toolchain for cross-compiling)
Use the full path to VES/CMake/toolchains/android.toolchain.cmake
You will also need to set these variables:
VTK_DIR to VES-build/CMakeExternals/Build/vtk-android
VES_DIR = VES-build/CMakeExternals/Build/ves-android
ANT_EXECUTABLE=C:/full/path/to/android-windows/adt-bundle-windows-x86_64-20130917/eclipse/plugins/org.apache.ant_1.8.3.v201301120609/bin/ant.bat
ANDROID_EXECUTABLE:FILEPATH=c:/full/path/to/android-windows/adt-bundle-windows-x86_64-20130917/sdk/tools/android.bat
ANDROID_TARGET has bad default should fix this, have to change to this
android-18
-Bill
More information about the Ves
mailing list