[Ves] Problem in compiling VES for android on window

JX NIE njx937 at gmail.com
Tue Dec 9 05:54:46 EST 2014


Hello all,
    My name is NIE Junxiao. I am now trying to build Kiwi for android on
windows, but came up with some problem.
    I build VES by using nmake.
1.    If I set ANDROID_NDK_SUPERBUILD and HOST_SUPERBUILD on, I will get an
error called 'min' is not a member of 'std' and 'max' is not a member of
'std'. If I set  HOST_SUPERBUILD off, I can succeed in build vtk-host and
eigen.
2. Neither HOST_SUPERBUILD on nor off, I got
CMake Error at C:/Sources/VES/CMake/toolchains/android.toolchain.cmake:868
(list
):
  list index: 17 out of range (-17, 16)
Call Stack (most recent call first):

C:/Sources/Build/VES/CMakeExternals/Build/vtk-android/CMakeFiles/3.1.0-rc2/CMa
keSystem.cmake:6 (include)
  CMakeLists.txt:3 (project)
and a "could not determine machine name for compiler" error
Thank you.
Best regards,
NIE JUNXIAO



error logs (error is enhanced with =====)

[ 48%] Built target vtk-host
[ 51%] Creating directories for 'vtk-android'
[ 54%] No download step for 'vtk-android'
[ 57%] No update step for 'vtk-android'
[ 60%] No patch step for 'vtk-android'
[ 63%] Performing configure step for 'vtk-android'
loading initial cache file
C:/Sources/VES/CMake/toolchains/TryRunResults.cmake
CMake Warning at
C:/Sources/VES/CMake/toolchains/android.toolchain.cmake:442 (me
ssage):
============================================
  Could not determine machine name for compiler from
  C:/Sources/Android/ndk/toolchains/renderscript/prebuilt/windows-x86_64
Call Stack (most recent call first):
  C:/Sources/VES/CMake/toolchains/android.toolchain.cmake:691
(__DETECT_TOOLCHAI
N_MACHINE_NAME)
  C:/Sources/VES/CMake/toolchains/android.toolchain.cmake:736
(__GLOB_NDK_TOOLCH
AINS)

C:/Sources/Build/VES/CMakeExternals/Build/vtk-android/CMakeFiles/3.1.0-rc2/CMa
keSystem.cmake:6 (include)
  CMakeLists.txt:3 (project)

============================================
CMake Error at C:/Sources/VES/CMake/toolchains/android.toolchain.cmake:868
(list
):
  list index: 17 out of range (-17, 16)
Call Stack (most recent call first):

C:/Sources/Build/VES/CMakeExternals/Build/vtk-android/CMakeFiles/3.1.0-rc2/CMa
keSystem.cmake:6 (include)
  CMakeLists.txt:3 (project)


CMake Warning (dev) at
C:/Sources/VES/CMake/toolchains/android.toolchain.cmake:1
700 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "LIBRARY_OUTPUT_PATH_ROOT" will no longer be
  dereferenced when the policy is set to NEW.  Since the policy is not set
  the OLD behavior will be used.
Call Stack (most recent call first):

C:/Sources/Build/VES/CMakeExternals/Build/vtk-android/CMakeFiles/3.1.0-rc2/CMa
keSystem.cmake:6 (include)
  CMakeLists.txt:3 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

[] = _gcc_version
[aarch64-linux-android-gcc.exe (GCC) 4.9 20140827 (prerelease)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.] = _
gcc_version_info
[4.9.0] = _gcc_version
CMAKE_C_COMPILER_VERSION=
-- Performing Test Support for 64 bit file systems
CMake Error at C:/Sources/VES/CMake/toolchains/android.toolchain.cmake:752
(list
):
  list sub-command REMOVE_DUPLICATES requires list to be present.
Call Stack (most recent call first):

C:/Sources/Build/VES/CMakeExternals/Build/vtk-android/CMakeFiles/3.1.0-rc2/CMa
keSystem.cmake:6 (include)
  CMakeLists.txt:3 (project)


============================================
CMake Error at C:/Sources/VES/CMake/toolchains/android.toolchain.cmake:753
(list
):
  list sub-command SORT requires list to be present.
Call Stack (most recent call first):

C:/Sources/Build/VES/CMakeExternals/Build/vtk-android/CMakeFiles/3.1.0-rc2/CMa
keSystem.cmake:6 (include)
  CMakeLists.txt:3 (project)


============================================
CMake Error at C:/Sources/VES/CMake/toolchains/android.toolchain.cmake:759
(mess
age):
  No one of known Android ABIs is supported by this cmake toolchain.
Call Stack (most recent call first):

C:/Sources/Build/VES/CMakeExternals/Build/vtk-android/CMakeFiles/3.1.0-rc2/CMa
keSystem.cmake:6 (include)
  CMakeLists.txt:3 (project)


============================================
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Configuring incomplete, errors occurred!
See also
"C:/Sources/Build/VES/CMakeExternals/Build/vtk-android/CMakeFiles/CMake
Output.log".
NMAKE : fatal error U1077: 'echo' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
12.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
12.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20141209/3fdf998d/attachment-0001.html>


More information about the Ves mailing list