Hi Peter,<br><br>This is not related to directly to your question but note that Lion does not really support 10.5 deployment targets. It only supports Snow Leopard (10.6) and later.<br><br>Bob<br><br>On Friday, February 3, 2012, Peter Schmitt <<a href="mailto:pschmittml@gmail.com">pschmittml@gmail.com</a>> wrote:<br>
> Hello,<br>> I have a clean install of OS-X 10.7.2 "Lion". I've installed xcode-4.2.1 from the App store. When building ParaView from SuperBuild with CMAKE_OSX_DEPLOYMENT_TARGET=10.5, I get the following error:<br>
>><br>>> [ 75%] Building CXX object Model/CMakeFiles/Manta_Model.dir/Readers/glm/glm.o<br>>> In file included from /Users/paraview/paraview/ParaView-3.12.0-Darwin-x86_64/Manta/Model/Readers/glm/glm.cc:17:<br>
>> /usr/include/malloc/malloc.h:150 error: expected initializer before '__AVAILABILITY_INTERNAL__MAC_10_7'<br>>> /usr/include/malloc/malloc.h:246 error: expected initializer before '__AVAILABILITY_INTERNAL__MAC_10_7'<br>
>> /usr/include/malloc/malloc.h:249 error: expected initializer before '__AVAILABILITY_INTERNAL__MAC_10_7'<br>>> /usr/include/malloc/malloc.h:252 error: expected initializer before '__AVAILABILITY_INTERNAL__MAC_10_7'<br>
>> /usr/include/malloc/malloc.h:258 error: expected initializer before '__AVAILABILITY_INTERNAL__MAC_10_7'<br>>> Make[5]: *** [Model/CMakeFiles/Manta_Model.dir/Readers/glm/glm.o] Error 1<br>>> Make[4]: *** [Model/CMakeFiles/Manta_Model.dir/all] Error 2<br>
>> Make[3]: *** [all] Error 2<br>>> Make[2]: *** [Manta-prefix/src/Manta-stamp/Manta-build] Error 2<br>>> Make[1]: *** [CMakeFiles/Manta.dir/all] Error 2<br>>> Make: *** [all] Error 2<br>><br>> I see there are a few copies of malloc.h on my system:<br>
>><br>>> /Developer/SDKs/MacOSX10.6.sdk/usr/include/malloc/malloc.h<br>>> /Developer/SDKs/MacOSX10.7.sdk/usr/include/malloc/malloc.h<br>>><br>>> /usr/include/malloc/malloc.h # same as the 10.7 malloc above<br>
><br>> <br>> and I am guessing the SuperBuild is pointing to the wrong one. Any ideas of how to get around this? If my goal is to create a 3.12.0 development install, should I be using OS-X 10.7 with XCode 4.2.1?<br>
> Thanks,<br>> Pete<br><br>-- <br>Robert M. O'Bara, MEng.<br>Technical Leader<br><br>Kitware Inc.<br>28 Corporate Drive<br>Suite 101<br>Clifton Park, NY 12065<br><br>Phone: (518) 881- 4931<br>