Hello,<div><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:</div>
<div><br></div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
[ 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</blockquote><div><br></div><div>I see there are a few copies of malloc.h on my system:</div><div><br></div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
/Developer/SDKs/MacOSX10.6.sdk/usr/include/malloc/malloc.h<br>/Developer/SDKs/MacOSX10.7.sdk/usr/include/malloc/malloc.h</blockquote><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
/usr/include/malloc/malloc.h # same as the 10.7 malloc above</blockquote><div> </div><div> 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?</div>
<div><br></div><div>Thanks,</div><div>Pete</div>