[vtk-developers] CMake 2.8 VTK XCode iOS

alagarajaR alagarajar at gmail.com
Thu Oct 24 06:13:26 EDT 2013


Hi Team,

I am trying to build VTK , so that I could use the library in iOS for Volume
Rendering the Images. I have download the VTK Source, have also downloaded
and installed CMAKE 2.8 in my Mac OS (OSX 10.8) . I have also installed
XCode 4.6.

I tried using CMake to generate XCode Project. While configuring , I have
also selected Ios Simulator toolchain for cross platform support . But I do
get the following error

-- Using iOS SDK:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk
-- Using iOS SDK:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk
The C compiler identification is Clang 4.2.0
The CXX compiler identification is Clang 4.2.0
Check for working C compiler using: Xcode
Check for working C compiler using: Xcode -- broken
CMake Error at
/Applications/CMake.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61
(message):
  The C compiler
 
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc"
  is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: /Users/araja/Desktop/VES_Build/CMakeFiles/CMakeTmp

  

  Run Build Command:/Applications/CMake.app/Contents/bin/cmakexbuild
-project
  CMAKE_TRY_COMPILE.xcodeproj build -target cmTryCompileExec2761230164
  -configuration Debug

  === BUILD NATIVE TARGET cmTryCompileExec2761230164 OF PROJECT
  CMAKE_TRY_COMPILE WITH CONFIGURATION Debug ===

  Check dependencies

  *target specifies product type 'com.apple.product-type.tool', but there's
no
  such product type for the 'iphonesimulator' platform
*
  

  

  ** BUILD FAILED **

  

  

  The following build commands failed:

  	Check dependencies

  (1 failure)

  

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be
lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

Configuring incomplete, errors occurred!
See also "/Users/araja/Desktop/VES_Build/CMakeFiles/CMakeOutput.log".
See also "/Users/araja/Desktop/VES_Build/CMakeFiles/CMakeError.log".

Even in CMakeError.log I see the same error

target specifies product type 'com.apple.product-type.tool', but there's no
such product type for the 'iphonesimulator' platform


Is is that I am missing anything while building? It would be great if guys
could help me out?






--
View this message in context: http://vtk.1045678.n5.nabble.com/CMake-2-8-VTK-XCode-iOS-tp5724096.html
Sent from the VTK - Dev mailing list archive at Nabble.com.



More information about the vtk-developers mailing list