Hi, I'm wondering if anyone has some suggestions to a cmake build error I'm 
getting when trying to build the iOS xcode project.

I'm following the instructions in the readme (although building everything 
inside a build-ios dir) with something like

> 
> cmake -G Xcode \
> -D OSG_BUILD_PLATFORM_IPHONE:BOOL=ON \
> -D CMAKE_CXX_FLAGS:STRING="-ftree-vectorize -fvisibility-inlines-hidden 
> -mno-thumb -arch armv6 -pipe -no-cpp-precomp -miphoneos-version-min=3.1" \
> -D BUILD_OSG_APPLICATIONS:BOOL=OFF \
> -D OSG_BUILD_FRAMEWORKS:BOOL=OFF \
> -D OSG_WINDOWING_SYSTEM:STRING=IOS \
> -D OSG_BUILD_PLATFORM_IPHONE:BOOL=ON \
> -D CMAKE_OSX_ARCHITECTURES:STRING="armv6;armv7" \
> -D 
> CMAKE_OSX_SYSROOT:STRING=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk
>  \
> -D OSG_GL1_AVAILABLE:BOOL=OFF \
> -D OSG_GL2_AVAILABLE:BOOL=OFF \
> -D OSG_GLES1_AVAILABLE:BOOL=ON \
> -D OSG_GL_DISPLAYLISTS_AVAILABLE:BOOL=OFF \
> -D OSG_GL_FIXED_FUNCTION_AVAILABLE:BOOL=ON \
> -D OSG_GL_LIBRARY_STATIC:BOOL=OFF \
> -D OSG_GL_MATRICES_AVAILABLE:BOOL=ON \
> -D OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE:BOOL=ON \
> -D OSG_GL_VERTEX_FUNCS_AVAILABLE:BOOL=OFF \
> -D DYNAMIC_OPENSCENEGRAPH:BOOL=OFF \
> -D DYNAMIC_OPENTHREADS:BOOL=OFF ../
> 


The problem is I get the following error...

> 
> -- The C compiler identification is GNU
> -- The CXX compiler identification is unknown
> -- Checking whether C compiler has -isysroot
> -- Checking whether C compiler has -isysroot - yes
> -- Checking whether C compiler supports OSX deployment target flag
> -- Checking whether C compiler supports OSX deployment target flag - yes
> -- Check for working C compiler using: Xcode
> -- Check for working C compiler using: Xcode -- broken
> CMake Error at /Applications/CMake 
> 2.8-4.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 
> (MESSAGE):
>   The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
> 
>   It fails with the following output:
> 
>    Change Dir: 
> /Users/glennm/DevStuff/openscenegraph/osg/build-ios/CMakeFiles/CMakeTmp
> 
>     Run Build Command:/Applications/CMake\ 2.8-4.app/Contents/bin/cmakexbuild
>   -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTryCompileExec
>   -configuration Debug
> 
>   ** BUILD FAILED **
> 
>   The following build commands failed:
> 
>       Check dependencies
> 
>   (1 failure)
> 
>   === BUILD NATIVE TARGET cmTryCompileExec 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 'iphoneos' platform
> 
>   CMake will not be able to correctly generate this project.
> Call Stack (most recent call first):
>   CMakeLists.txt:30 (PROJECT)
> 
> -- Configuring incomplete, errors occurred!
> 


I'm not really sure if this and xcode issue, or something wrong with gcc or 
cmake settings. There's a few posts on the net quoting a lot of the same errors 
I'm getting, but it's difficult to know if anyone actually had a solution.

I tried building the mac OSX build again using cmake, an it seems to be 
generating its xcode project fine.

Thanks for any suggestions.

Glenn

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41535#41535





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to