Hi Jordi,

Thanks for the instructions, and sorry for taking so long to respond. I had to 
upgrade Xcode to 4.3.1 for a different project and ran into many projects. I'm 
wondering if this is responsible for your cmake toolchain not working for me.

XCode 4.3.1 is the .app version, which removes your /Developer folder, which is 
a pretty significant change.

I had to change your toolchain file to point to the new SDK location:

Code:

#set(IOS_DEVELOPER_ROOT "/Developer/Platforms/${IOS_TARGET}.platform/Developer")
set(IOS_DEVELOPER_ROOT 
"/Applications/Xcode.app/Contents/Developer/Platforms/${IOS_TARGET}.platform/Developer")




But when I run cmake, I get a compiler error:

Code:

$ cmake -DCMAKE_TOOLCHAIN_FILE=iOS5_GLES2.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not 
be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not 
be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
-- The C compiler identification is Clang
-- The CXX compiler identification is Clang
-- Check for working C compiler: 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang
CMake Error: Error required internal CMake variable not set, cmake may be not 
be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not 
be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working C compiler: 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang
 -- broken
CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 
(MESSAGE):
The C compiler
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang"
is not able to compile a simple test program.

It fails with the following output:

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

-- Configuring incomplete, errors occurred!




I saw in another post (http://forum.openscenegraph.org/viewtopic.php?t=9951) 
that you were using clang. What version?

Mike is:
Apple clang version 3.0 (tags/Apple/clang-211.11) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.3.0

How far are you from finishing your GLES2 example? I'm eager to try it... 
assuming I can get OSG to build properly.

Any ideas are highly appreciated.

Thanks,
Mike

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





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

Reply via email to