MacOSX Snow Leopard (10.6) Intel-64 bit binaries

If you want to skip the compilation process of both OpenCASCADE, GEOM, SMESH and pythonOCC, here are a few precompiled binaries.

Download and install the four following files:

Before you can run pythonOCC, you have to care that a few env variables are defined. Add the following lines to your .bash_profile script :

# OpenCASCADE
export CASROOT=/Library/OpenCASCADE/6.3.0
export OCC_SOURCE_ROOT=${CASROOT}
export DYLD_LIBRARY_PATH=${CASROOT}/lib:$DYLD_LIBRARY_PATH
# needed to get the visualization going…
export CSF_GraphicShr=${CASROOT}/lib/libTKOpenGl.dylib
export CSF_EXCEPTION_PROMPT=1
# OCC required variables
export CSF_IGESDefaults=${OCC_SOURCE_ROOT}/src/XSTEPResource
export CSF_LANGUAGE=us
export CSF_MDTVFontDirectory=${OCC_SOURCE_ROOT}/src/FontMFT
export CSF_MDTVTexturesDirectory=${OCC_SOURCE_ROOT}/src/Textures
export CSF_PluginDefaults=${OCC_SOURCE_ROOT}/src/StdResource
export CSF_SHMessage=${OCC_SOURCE_ROOT}/src/SHMessage
export CSF_StandardDefaults=${OCC_SOURCE_ROOT}/src/StdResource
export CSF_StandardLiteDefaults=${OCC_SOURCE_ROOT}/src/StdResource
export CSF_STEPDefaults=${OCC_SOURCE_ROOT}/src/XSTEPResource
export CSF_UnitsDefinition=${OCC_SOURCE_ROOT}/src/UnitsAPI/Units.dat
# GEOM shared libraries
export DYLD_LIBRARY_PATH=/usr/local/lib/GEOM-5.1.2.7:$DYLD_LIBRARY_PATH
# SMESH shared libraries
export DYLD_LIBRARY_PATH=/usr/local/lib/SMESH-5.1.2.2:$DYLD_LIBRARY_PATH
Then, from a python console, just check the installation is ok (i.e. no linkage errors):
Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.
>>> from OCC.Standard import *
>>>
Under MacOSX, unless you properly installed PyQt4-X11, you’ll need the python-xlib (0.15rc1 or higher) package in order to use the 3D viewer. You can now run the samples.