<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span>Thanks, James.</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span>I was able to build OCC. Did you get CGM to work?</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">Configuring CGM I get this:</div><div><font size="2">checking if OpenCascade requires -lpthread... configure: error: Cannot link libTKKernel with Standard_Mutex</font><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">&nbsp;</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><font style="font-family: arial, helvetica, sans-serif; " size="2">Rajeev</font><br><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px;
 padding-left: 5px;">  <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Tim Tautges &lt;tautges@mcs.anl.gov&gt;<br> <b><span style="font-weight: bold;">To:</span></b> CGMA Development &lt;cgma-dev@mcs.anl.gov&gt;; James Tautges &lt;jamesdtautges@gmail.com&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, January 6, 2012 9:10 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [cgma-dev] OCC MacOS compile successful<br> </font> </div> <br>
Hi all,<br>&nbsp; Good news, last night my son James, hacker extraordinaire, got OCC 6.5.2 to compile successfully on MacOS.&nbsp; The details:<br><br>- Snow leopard, gcc4.2, OCC6.5.2 (straight from the OCC download page)<br>- Besides the following changes, follow the steps on http://opencascade.blogspot.com/2010/04/porting-on-macos.html<br>- Run "autoreconf -fi" in the ros folder and then "aclocal", "automake", and "autoconf"<br><br>- Add the following code to the platform specific part of ros/src/OSD/OSD_Chronometer.cxx:<br>#ifdef __MACH__<br># include &lt;time.h&gt;<br># include &lt;sys/time.h&gt;<br># include &lt;mach/clock.h&gt;<br># include &lt;mach/mach.h&gt;<br>#endif<br><br>- And then add this code to the OSD_Chronometer::GetThreadCPU function:<br>#elif defined(__MACH__)<br>&nbsp; struct timespec ts;<br>&nbsp; clock_serv_t cclock;<br>&nbsp; mach_timespec_t mts;<br>&nbsp; host_get_clock_service(mach_host_self(), CALENDAR_CLOCK,
 &amp;cclock);<br>&nbsp; clock_get_time(cclock, &amp;mts);<br>&nbsp; mach_port_deallocate(mach_task_self(), cclock);<br>&nbsp; ts.tv_sec = mts.tv_sec;<br>&nbsp; ts.tv_nsec = mts.tv_nsec;<br><br>- Proceed to configure, make, and install<br><br>The new version of OSD_Chronometer.cxx is attached.<br><br>We haven't built or tested CGM on top of this, but that's next.<br><br>- tim<br><br>--<br>================================================================<br>"You will keep in perfect peace him whose mind is<br>&nbsp; steadfast, because he trusts in you."&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Isaiah 26:3<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Tim Tautges&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Argonne National Laboratory<br>&nbsp; &nbsp; &nbsp; &nbsp;  (<a ymailto="mailto:tautges@mcs.anl.gov" href="mailto:tautges@mcs.anl.gov">tautges@mcs.anl.gov</a>)&nbsp; &nbsp; &nbsp; (telecommuting from UW-Madison)<br> phone (gvoice): (608)
 354-1459&nbsp; &nbsp; &nbsp; 1500 Engineering Dr.<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fax: (608) 263-4499&nbsp; &nbsp; &nbsp; Madison, WI 53706<br><br><br><br> </div> </div> </blockquote></div>   </div></body></html>