[Ves] [vtk-developers] CMake 2.8 VTK XCode iOS
Casey Goodlett
casey.goodlett at kitware.com
Thu Oct 24 09:24:20 EDT 2013
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
You could either remove that flag from the simulator toolchain file until
we get a proper fix in place or update to xcode 5.
Thank you
On Thu, Oct 24, 2013 at 6:13 AM, alagarajaR <alagarajar at gmail.com> wrote:
> 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.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
--
Casey B. Goodlett, Ph.D.
R&D Engineer
Kitware, Inc. - North Carolina Office
http://www.kitware.com
(919) 969-6990 x310
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20131024/cb0f0069/attachment-0001.html>
More information about the Ves
mailing list