OpenCascade v 650 and Snow Leopard: a bug

Hardware: Intel Core 2 Duo, 1 GB memory
XCode: 3.2.6
Snow Leopard (Mac OS X 10.6.7).

Make failed due to the following message:

OSD_Chronometer::GetThreadCPU(Standard_Real&, Standard_Real&)’:
../../../src/OSD/OSD_Chronometer.cxx:87: error: ‘CLOCK_THREAD_CPUTIME_ID’ was not declared in this scope
../../../src/OSD/OSD_Chronometer.cxx:87: error: ‘clock_gettime’ was not declared in this scope
my-make[3]: *** [OSD_Chronometer.lo] Error 1
my-make[3]: Leaving directory `/Volumes/External_1/_Technology-Softwares/_CAD-OpenCASCADE/_Source/OpenCASCADE650/ros/adm/make/TKernel'
my-make[2]: *** [all-recursive] Error 1
my-make[2]: Leaving directory `/Volumes/External_1/_Technology-Softwares/_CAD-OpenCASCADE/_Source/OpenCASCADE650/ros/adm/make'
my-make[1]: *** [all-recursive] Error 1
my-make[1]: Leaving directory `/Volumes/External_1/_Technology-Softwares/_CAD-OpenCASCADE/_Source/OpenCASCADE650/ros'
my-make: *** [all] Error 2

Intel TB was installed after having downloaded the binary package dedicated to Mac OS X. Appropriate flags were set, as indicated by the bash shell script file included.

I am very confident about succeeding building OpenCascade under Mac OS X however.
I look forward to hearing from you soon.

Kind regards,

Laurent D.

Encl. 1 zip file (with the shell script, and three log - text - files)

Thomas Paviot's picture

Hi Laurent,

I use to work with a MacOSX machine (Macbook Pro) and faced the same issue. It was one of the first fix contributed to the OCE project (on March 15th, see commit "Fixed missing clock_gettime implementation in MacOSX" at

The latest release OCE-0.3.0 can be successfully and easily compiled on MacOSX using CMake. You can either download the source code, clone the repository, or download a PackageMaker OSX binary package at The oce-dev mailing list will be happy to help you in case of any problem:

Best Regards,