<div dir="ltr">Am I correct in understanding that you are using the VES build system to cross-compile VTK?  There is currently a bug due to some changes needed to support Xcode 5.  This is preventing older xcode versions from working, and I hope to have a fix shortly.  This due to the addition of the flag -miphoneos-version-min which is needed to get things to compile on Xcode 5 but is not supported in Xcode 4.6<div>

<br></div><div>You could either remove that flag from the simulator toolchain file until we get a proper fix in place or update to xcode 5.</div><div><br></div><div>Thank you</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Thu, Oct 24, 2013 at 6:13 AM, alagarajaR <span dir="ltr"><<a href="mailto:alagarajar@gmail.com" target="_blank">alagarajar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Team,<br>
<br>
I am trying to build VTK , so that I could use the library in iOS for Volume<br>
Rendering the Images. I have download the VTK Source, have also downloaded<br>
and installed CMAKE 2.8 in my Mac OS (OSX 10.8) . I have also installed<br>
XCode 4.6.<br>
<br>
I tried using CMake to generate XCode Project. While configuring , I have<br>
also selected Ios Simulator toolchain for cross platform support . But I do<br>
get the following error<br>
<br>
-- Using iOS SDK:<br>
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk<br>
-- Using iOS SDK:<br>
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk<br>
The C compiler identification is Clang 4.2.0<br>
The CXX compiler identification is Clang 4.2.0<br>
Check for working C compiler using: Xcode<br>
Check for working C compiler using: Xcode -- broken<br>
CMake Error at<br>
/Applications/CMake.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61<br>
(message):<br>
  The C compiler<br>
<br>
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc"<br>
  is not able to compile a simple test program.<br>
<br>
  It fails with the following output:<br>
<br>
   Change Dir: /Users/araja/Desktop/VES_Build/CMakeFiles/CMakeTmp<br>
<br>
<br>
<br>
  Run Build Command:/Applications/CMake.app/Contents/bin/cmakexbuild<br>
-project<br>
  CMAKE_TRY_COMPILE.xcodeproj build -target cmTryCompileExec2761230164<br>
  -configuration Debug<br>
<br>
  === BUILD NATIVE TARGET cmTryCompileExec2761230164 OF PROJECT<br>
  CMAKE_TRY_COMPILE WITH CONFIGURATION Debug ===<br>
<br>
  Check dependencies<br>
<br>
  *target specifies product type 'com.apple.product-type.tool', but there's<br>
no<br>
  such product type for the 'iphonesimulator' platform<br>
*<br>
<br>
<br>
<br>
<br>
  ** BUILD FAILED **<br>
<br>
<br>
<br>
<br>
<br>
  The following build commands failed:<br>
<br>
        Check dependencies<br>
<br>
  (1 failure)<br>
<br>
<br>
<br>
<br>
<br>
  CMake will not be able to correctly generate this project.<br>
Call Stack (most recent call first):<br>
<br>
<br>
<br>
CMake Warning (dev) in CMakeLists.txt:<br>
  No cmake_minimum_required command is present.  A line of code such as<br>
<br>
    cmake_minimum_required(VERSION 2.8)<br>
<br>
  should be added at the top of the file.  The version specified may be<br>
lower<br>
  if you wish to support older CMake versions for this project.  For more<br>
  information run "cmake --help-policy CMP0000".<br>
This warning is for project developers.  Use -Wno-dev to suppress it.<br>
<br>
Configuring incomplete, errors occurred!<br>
See also "/Users/araja/Desktop/VES_Build/CMakeFiles/CMakeOutput.log".<br>
See also "/Users/araja/Desktop/VES_Build/CMakeFiles/CMakeError.log".<br>
<br>
Even in CMakeError.log I see the same error<br>
<br>
target specifies product type 'com.apple.product-type.tool', but there's no<br>
such product type for the 'iphonesimulator' platform<br>
<br>
<br>
Is is that I am missing anything while building? It would be great if guys<br>
could help me out?<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/CMake-2-8-VTK-XCode-iOS-tp5724096.html" target="_blank">http://vtk.1045678.n5.nabble.com/CMake-2-8-VTK-XCode-iOS-tp5724096.html</a><br>
Sent from the VTK - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Casey B. Goodlett, Ph.D.<br>R&D Engineer<br>Kitware, Inc. - North Carolina Office<br><a href="http://www.kitware.com">http://www.kitware.com</a><br>(919) 969-6990 x310
</div>