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 &lt;<a href="mailto:pschmittml@gmail.com">pschmittml@gmail.com</a>&gt; wrote:<br>
&gt; Hello,<br>&gt; I have a clean install of OS-X 10.7.2 &quot;Lion&quot;.  I&#39;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>
&gt;&gt;<br>&gt;&gt; [ 75%] Building CXX object Model/CMakeFiles/Manta_Model.dir/Readers/glm/glm.o<br>&gt;&gt; In file included from /Users/paraview/paraview/ParaView-3.12.0-Darwin-x86_64/Manta/Model/Readers/glm/glm.cc:17:<br>
&gt;&gt; /usr/include/malloc/malloc.h:150 error: expected initializer before &#39;__AVAILABILITY_INTERNAL__MAC_10_7&#39;<br>&gt;&gt; /usr/include/malloc/malloc.h:246 error: expected initializer before &#39;__AVAILABILITY_INTERNAL__MAC_10_7&#39;<br>
&gt;&gt; /usr/include/malloc/malloc.h:249 error: expected initializer before &#39;__AVAILABILITY_INTERNAL__MAC_10_7&#39;<br>&gt;&gt; /usr/include/malloc/malloc.h:252 error: expected initializer before &#39;__AVAILABILITY_INTERNAL__MAC_10_7&#39;<br>
&gt;&gt; /usr/include/malloc/malloc.h:258 error: expected initializer before &#39;__AVAILABILITY_INTERNAL__MAC_10_7&#39;<br>&gt;&gt; Make[5]: *** [Model/CMakeFiles/Manta_Model.dir/Readers/glm/glm.o] Error 1<br>&gt;&gt; Make[4]: *** [Model/CMakeFiles/Manta_Model.dir/all] Error 2<br>
&gt;&gt; Make[3]: *** [all] Error 2<br>&gt;&gt; Make[2]: *** [Manta-prefix/src/Manta-stamp/Manta-build] Error 2<br>&gt;&gt; Make[1]: *** [CMakeFiles/Manta.dir/all] Error 2<br>&gt;&gt; Make: *** [all] Error 2<br>&gt;<br>&gt; I see there are a few copies of malloc.h on my system:<br>
&gt;&gt;<br>&gt;&gt; /Developer/SDKs/MacOSX10.6.sdk/usr/include/malloc/malloc.h<br>&gt;&gt; /Developer/SDKs/MacOSX10.7.sdk/usr/include/malloc/malloc.h<br>&gt;&gt;<br>&gt;&gt; /usr/include/malloc/malloc.h  # same as the 10.7 malloc above<br>
&gt;<br>&gt;  <br>&gt;  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>
&gt; Thanks,<br>&gt; Pete<br><br>-- <br>Robert M. O&#39;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>