I have inherited an application that was built with prior versions of VTK(5.6) and XCode(4.1). I have updated XCode to 4.5.1 and now I am trying to update VTK to 5.10.1. I am struggling with the simple matter of building VTK. My first problem was defining CC and CCX which I solved by by installing XCode 4.5.1 Preferences/Components/Command Line Tools.<div>
<br></div><div>I also modified my .profile to find cmake using:</div><div><div>export PATH=/Users/myname/Development/cmake:$PATH</div></div><div><br></div><div>But when I run CMake I get the following errors???</div><div>
<br></div><div><div><div><div>Tue Oct 23 $ cmake -c ../VTK5.10.1</div><div>-- The C compiler identification is GNU 4.2.1</div><div>-- The CXX compiler identification is GNU 4.2.1</div><div>-- Checking whether C compiler has -isysroot</div>
<div>-- Checking whether C compiler has -isysroot - yes</div><div>-- Checking whether C compiler supports OSX deployment target flag</div><div>-- Checking whether C compiler supports OSX deployment target flag - yes</div>
<div>-- Check for working C compiler using: Xcode</div><div>CMake Error: Generator: execution of make failed. Make command was: /Applications/CMake\ 2.8-1.app/Contents/bin/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTryCompileExec1459693210 -configuration Debug</div>
<div>-- Check for working C compiler using: Xcode -- broken</div><div>CMake Error at /Applications/CMake 2.8-9.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):</div><div>  The C compiler &quot;/usr/bin/gcc&quot; is not able to compile a simple test program.</div>
<div><br></div><div>  It fails with the following output:</div><div><br></div><div>   Change Dir: /Users/mycompany/Development/VTK5.10.1/CMakeFiles/CMakeTmp</div><div><br></div><div>  </div><div><br></div><div>  Run Build Command:/Applications/CMake\</div>
<div>  2.8-1.app/Contents/bin/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild</div>
<div>  -project CMAKE_TRY_COMPILE.xcodeproj build -target</div><div>  cmTryCompileExec1459693210 -configuration Debug</div><div><br></div><div>  No such file or directory</div><div><br></div><div>  Generator: execution of make failed.  Make command was:</div>
<div>  /Applications/CMake\</div><div>  2.8-1.app/Contents/bin/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild/cmakexbuild</div>
<div>  -project CMAKE_TRY_COMPILE.xcodeproj build -target</div><div>  cmTryCompileExec1459693210 -configuration Debug</div><div><br></div><div>  </div><div><br></div><div>  </div><div><br></div><div>  CMake will not be able to correctly generate this project.</div>
<div>Call Stack (most recent call first):</div><div>  CMakeLists.txt:15 (PROJECT)</div><div><br></div><div><br></div><div>-- Configuring incomplete, errors occurred!</div></div></div></div><div><br></div>