[Paraview] ParaView-3.12.0 SuperBuild on OS-X Lion

David E DeMarle dave.demarle at kitware.com
Fri Feb 3 20:30:37 EST 2012


Disable the Manta plugin, or apply this patch to the Manta directory
in the superbuild.

Index: CMake/ConfigCompilerFlags.cmake
===================================================================
--- CMake/ConfigCompilerFlags.cmake     (revision 2439)
+++ CMake/ConfigCompilerFlags.cmake     (working copy)
@@ -173,7 +173,7 @@
     SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.5.sdk" CACHE
STRING "OS X Sysroot" FORCE)
     COMPARE_VERSION_STRINGS(${APPLE_VERSION} "10" APPLE_SNOW_LEOPARD_CMP)
     IF (APPLE_SNOW_LEOPARD_CMP GREATER -1)
-      SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.6.sdk" CACHE
STRING "OS X Sysroot" FORCE)
+      SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.7.sdk" CACHE
STRING "OS X Sysroot" FORCE)
     ENDIF(APPLE_SNOW_LEOPARD_CMP GREATER -1)
   ELSE(MANTA_TARGET_LEOPARD)
    SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.4u.sdk" CACHE
STRING "OS X Sysroot" FORCE)
Index: Core/Util/CPUTime.cc
===================================================================
--- Core/Util/CPUTime.cc        (revision 2439)
+++ Core/Util/CPUTime.cc        (working copy)
@@ -2,7 +2,7 @@
 #include <Core/Thread/ThreadError.h>

 #if defined(__APPLE__)
-#include <ppc_intrinsics.h>
+//#include <ppc_intrinsics.h>
 #include <mach/mach.h>
 #include <mach/mach_time.h>
 #elif _WIN32

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



On Fri, Feb 3, 2012 at 5:26 PM, Peter Schmitt <pschmittml at gmail.com> wrote:
> Hello,
>
> 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:
>
>> [ 75%] Building CXX object
>> Model/CMakeFiles/Manta_Model.dir/Readers/glm/glm.o
>> In file included from
>> /Users/paraview/paraview/ParaView-3.12.0-Darwin-x86_64/Manta/Model/Readers/glm/glm.cc:17:
>> /usr/include/malloc/malloc.h:150 error: expected initializer before
>> '__AVAILABILITY_INTERNAL__MAC_10_7'
>> /usr/include/malloc/malloc.h:246 error: expected initializer before
>> '__AVAILABILITY_INTERNAL__MAC_10_7'
>> /usr/include/malloc/malloc.h:249 error: expected initializer before
>> '__AVAILABILITY_INTERNAL__MAC_10_7'
>> /usr/include/malloc/malloc.h:252 error: expected initializer before
>> '__AVAILABILITY_INTERNAL__MAC_10_7'
>> /usr/include/malloc/malloc.h:258 error: expected initializer before
>> '__AVAILABILITY_INTERNAL__MAC_10_7'
>> Make[5]: *** [Model/CMakeFiles/Manta_Model.dir/Readers/glm/glm.o] Error 1
>> Make[4]: *** [Model/CMakeFiles/Manta_Model.dir/all] Error 2
>> Make[3]: *** [all] Error 2
>> Make[2]: *** [Manta-prefix/src/Manta-stamp/Manta-build] Error 2
>> Make[1]: *** [CMakeFiles/Manta.dir/all] Error 2
>> Make: *** [all] Error 2
>
>
> I see there are a few copies of malloc.h on my system:
>
>> /Developer/SDKs/MacOSX10.6.sdk/usr/include/malloc/malloc.h
>> /Developer/SDKs/MacOSX10.7.sdk/usr/include/malloc/malloc.h
>>
>> /usr/include/malloc/malloc.h  # same as the 10.7 malloc above
>
>
>  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?
>
> Thanks,
> Pete
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list