[Ves] kiwi build failure

Michael Bowerman michael.bowerman at gmail.com
Fri Aug 15 10:26:14 EDT 2014


Sorry for the basic question, most of the build documentation available is
before git revision d11b159563760944dc166d0435e4a7be9fc54eda (android kiwi:
change build scripts to be more flexible), where the *.sh files were
removed.

When I try to build with CMake, I get lots of errors. First, if I try to do
the build in the source tree, it gives me the an error about "in-source
builds not supported" when I try to build from: Apps/Android/Kiwi

Next, I tried to build from Apps/Android/build, but that gives me build
errors when I make. First, with not being able to find jni.h. After I
manually add the include to CMAKE_CXX_FLAGS to find java, I get another
error with not being able to find android/log.h.

I am most likely doing something wrong before that point. I should not need
to manually add all of these includes, right?

Thanks!

$ sw_vers

ProductName: Mac OS X

ProductVersion: 10.9.4

BuildVersion: 13E28


CMakeCache.txt:

# This is the CMakeCache file.

# For build in directory: /Users/luser/VES/Apps/Android/build

# It was generated by CMake: /opt/local/bin/cmake

# You can edit this file to change values found and used by cmake.

# If you do not want to change any of the values, simply exit the editor.

# If you do want to change a value, simply edit, save, and exit the editor.

# The syntax for the file is as follows:

# KEY:TYPE=VALUE

# KEY is the name of a variable in the cache.

# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.

# VALUE is the current value for the KEY.


########################

# EXTERNAL cache entries

########################


//The android command-line tool

ANDROID_EXECUTABLE:FILEPATH=/Applications/Android
Studio.app/sdk/tools/android


//No help, variable specified on the command line.

ANDROID_NATIVE_API_LEVEL:UNINITIALIZED=8


//The Android API to target

ANDROID_TARGET:STRING=android-18


//The ant build tool

ANT_EXECUTABLE:FILEPATH=/opt/local/bin/ant


//Path to a program.

CMAKE_AR:FILEPATH=/usr/bin/ar


//No help, variable specified on the command line.

CMAKE_BINARY_DIR:UNINITIALIZED=/Users/luser/VES/Apps/Android/Kiwi/CMakeBuild


//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or

// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.

CMAKE_BUILD_TYPE:STRING=


//Enable/Disable color output during build.

CMAKE_COLOR_MAKEFILE:BOOL=ON


//CXX compiler.

CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++


//Flags used by the compiler during all build types.

CMAKE_CXX_FLAGS:STRING=


//Flags used by the compiler during debug builds.

CMAKE_CXX_FLAGS_DEBUG:STRING=-g


//Flags used by the compiler during release builds for minimum

// size.

CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG


//Flags used by the compiler during release builds.

CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG


//Flags used by the compiler during release builds with debug info.

CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG


//C compiler.

CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc


//Flags used by the compiler during all build types.

CMAKE_C_FLAGS:STRING=


//Flags used by the compiler during debug builds.

CMAKE_C_FLAGS_DEBUG:STRING=-g


//Flags used by the compiler during release builds for minimum

// size.

CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG


//Flags used by the compiler during release builds.

CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG


//Flags used by the compiler during release builds with debug info.

CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG


//Flags used by the linker.

CMAKE_EXE_LINKER_FLAGS:STRING=' '


//Flags used by the linker during debug builds.

CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=


//Flags used by the linker during release minsize builds.

CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=


//Flags used by the linker during release builds.

CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=


//Flags used by the linker during Release with Debug Info builds.

CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=


//Enable/Disable output of compile commands during generation.

CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF


//Path to a program.

CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool


//Install path prefix, prepended onto install directories.

CMAKE_INSTALL_PREFIX:PATH=/usr/local


//Path to a program.

CMAKE_LINKER:FILEPATH=/usr/bin/ld


//Path to a program.

CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make


//Flags used by the linker during the creation of modules.

CMAKE_MODULE_LINKER_FLAGS:STRING=' '


//Flags used by the linker during debug builds.

CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=


//Flags used by the linker during release minsize builds.

CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=


//Flags used by the linker during release builds.

CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=


//Flags used by the linker during Release with Debug Info builds.

CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=


//Path to a program.

CMAKE_NM:FILEPATH=/usr/bin/nm


//Path to a program.

CMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUND


//Path to a program.

CMAKE_OBJDUMP:FILEPATH=CMAKE_OBJDUMP-NOTFOUND


//Build architectures for OSX

CMAKE_OSX_ARCHITECTURES:STRING=


//Minimum OS X version to target for deployment (at runtime); newer

// APIs weak linked. Set to empty string for default value.

CMAKE_OSX_DEPLOYMENT_TARGET:STRING=


//The product will be built against the headers and libraries located

// inside the indicated SDK.

CMAKE_OSX_SYSROOT:STRING=


//Value Computed by CMake

CMAKE_PROJECT_NAME:STATIC=KiwiViewer


//Path to a program.

CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib


//Flags used by the linker during the creation of dll's.

CMAKE_SHARED_LINKER_FLAGS:STRING=' '


//Flags used by the linker during debug builds.

CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=


//Flags used by the linker during release minsize builds.

CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=


//Flags used by the linker during release builds.

CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=


//Flags used by the linker during Release with Debug Info builds.

CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=


//If set, runtime paths are not added when installing shared libraries,

// but are added when building.

CMAKE_SKIP_INSTALL_RPATH:BOOL=NO


//If set, runtime paths are not added when using shared libraries.

CMAKE_SKIP_RPATH:BOOL=NO


//Flags used by the linker during the creation of static libraries.

CMAKE_STATIC_LINKER_FLAGS:STRING=


//Flags used by the linker during debug builds.

CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=


//Flags used by the linker during release minsize builds.

CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=


//Flags used by the linker during release builds.

CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=


//Flags used by the linker during Release with Debug Info builds.

CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=


//Path to a program.

CMAKE_STRIP:FILEPATH=/usr/bin/strip


//No help, variable specified on the command line.

CMAKE_TOOLCHAIN_FILE:UNINITIALIZED=/Users/luser/VES/CMake/toolchains/android.toolchain.cmake


//If true, cmake will use relative paths in makefiles and projects.

CMAKE_USE_RELATIVE_PATHS:BOOL=OFF


//If this value is on, makefiles will be generated without the

// .SILENT directive, and all commands will be echoed to the console

// during the make.  This is useful for debugging only. With Visual

// Studio IDE projects all commands are done without /nologo.

CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE


//Dependencies for the target

KiwiNative_LIB_DEPENDS:STATIC=general;GLESv2;general;ves;general;vesShaders;general;kiwi;general;/usr/lib/libz.dylib;general;log;


//Value Computed by CMake

KiwiViewer_BINARY_DIR:STATIC=/Users/luser/VES/Apps/Android/build


//Value Computed by CMake

KiwiViewer_SOURCE_DIR:STATIC=/Users/luser/VES/Apps/Android/Kiwi


//Build KiwiViewer with PCL support

USE_PCL:BOOL=OFF


//The directory containing a CMake configuration file for VES.

VES_DIR:PATH=/Users/luser/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Install/ves-android/lib


//The directory containing a CMake configuration file for VTK.

VTK_DIR:PATH=/Users/luser/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Install/vtk-android/lib/cmake/vtk-6.0


//Path to a file.

ZLIB_INCLUDE_DIR:PATH=/usr/include


//Path to a library.

ZLIB_LIBRARY:FILEPATH=/usr/lib/libz.dylib



########################

# INTERNAL cache entries

########################


//MODIFIED property for variable: ANDROID_EXECUTABLE

ANDROID_EXECUTABLE-MODIFIED:INTERNAL=ON

//ADVANCED property for variable: CMAKE_AR

CMAKE_AR-ADVANCED:INTERNAL=1

//This is the directory where this CMakeCache.txt was created

CMAKE_CACHEFILE_DIR:INTERNAL=/Users/luser/VES/Apps/Android/build

//Major version of cmake used to create the current loaded cache

CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3

//Minor version of cmake used to create the current loaded cache

CMAKE_CACHE_MINOR_VERSION:INTERNAL=0

//Patch version of cmake used to create the current loaded cache

CMAKE_CACHE_PATCH_VERSION:INTERNAL=0

//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE

CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1

//Path to CMake executable.

CMAKE_COMMAND:INTERNAL=/opt/local/bin/cmake

//Path to cpack program executable.

CMAKE_CPACK_COMMAND:INTERNAL=/opt/local/bin/cpack

//Path to ctest program executable.

CMAKE_CTEST_COMMAND:INTERNAL=/opt/local/bin/ctest

//ADVANCED property for variable: CMAKE_CXX_COMPILER

CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_CXX_FLAGS

CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1

//MODIFIED property for variable: CMAKE_CXX_FLAGS

CMAKE_CXX_FLAGS-MODIFIED:INTERNAL=ON

//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG

CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL

CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE

CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO

CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_C_COMPILER

CMAKE_C_COMPILER-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_C_FLAGS

CMAKE_C_FLAGS-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG

CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL

CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE

CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO

CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1

//Path to cache edit program executable.

CMAKE_EDIT_COMMAND:INTERNAL=/opt/local/bin/ccmake

//Executable file format

CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown

//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS

CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG

CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL

CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE

CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO

CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS

CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1

//Name of generator.

CMAKE_GENERATOR:INTERNAL=Unix Makefiles

//Name of generator toolset.

CMAKE_GENERATOR_TOOLSET:INTERNAL=

//Start directory with the top level CMakeLists.txt file for this

// project

CMAKE_HOME_DIRECTORY:INTERNAL=/Users/luser/VES/Apps/Android/Kiwi

//ADVANCED property for variable: CMAKE_INSTALL_NAME_TOOL

CMAKE_INSTALL_NAME_TOOL-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_LINKER

CMAKE_LINKER-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_MAKE_PROGRAM

CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS

CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG

CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL

CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE

CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO

CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_NM

CMAKE_NM-ADVANCED:INTERNAL=1

//number of local generators

CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=2

//ADVANCED property for variable: CMAKE_OBJCOPY

CMAKE_OBJCOPY-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_OBJDUMP

CMAKE_OBJDUMP-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_RANLIB

CMAKE_RANLIB-ADVANCED:INTERNAL=1

//Path to CMake installation.

CMAKE_ROOT:INTERNAL=/opt/local/share/cmake-3.0

//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS

CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG

CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL

CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE

CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO

CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH

CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_SKIP_RPATH

CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS

CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG

CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL

CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE

CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO

CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_STRIP

CMAKE_STRIP-ADVANCED:INTERNAL=1

//uname command

CMAKE_UNAME:INTERNAL=/usr/bin/uname

//ADVANCED property for variable: CMAKE_USE_RELATIVE_PATHS

CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1

//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE

CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1

//Details about finding ZLIB

FIND_PACKAGE_MESSAGE_DETAILS_ZLIB:INTERNAL=[/usr/lib/libz.dylib][/usr/include][v1.2.5()]

//ADVANCED property for variable: ZLIB_INCLUDE_DIR

ZLIB_INCLUDE_DIR-ADVANCED:INTERNAL=1

//ADVANCED property for variable: ZLIB_LIBRARY

ZLIB_LIBRARY-ADVANCED:INTERNAL=1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20140815/6a4725e5/attachment-0002.html>


More information about the Ves mailing list