<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span><font size="2"><div>CGM - based on OCC 6.5/MOAB/Lasso and MeshKit all compile on Mac OSX 10.7.3 with XCode-4.3. make check failure is a 64bit specific problem. </div><div>Other code projects are facing the same problem: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/supercollider-Bugs-3478895-escapeWindow-crashes-app-td7283477.html</div><div><br></div><div>Below is the backtrace of test_edge_orient.</div><div> bt</div><div>#0 0x00007fff962c811e in _Unwind_Resume_or_Rethrow ()</div><div>#1 0x0000000101b96749 in Transfer_ProcessForTransient::Transferring ()</div><div>#2 0x0000000101b968b1 in Transfer_ProcessForTransient::Transfer ()</div><div>#3 0x0000000101c1a3ee in XSControl_TransferReader::TransferOne ()</div><div>#4 0x0000000101c12c96 in
XSControl_Reader::TransferRoots ()</div><div>#5 0x00000001000e0657 in OCCQueryEngine::import_solid_model (this=0x109706cd0, file_name=0x1097073a8 "ilc_13body.stp", file_type=0x109707248 "STEP", imported_entities=@0x7fff5fbff2d8, print_results=true, logfile_name=0x0, heal_step=true, import_bodies=true, import_surfaces=true, import_curves=true, import_vertices=true, free_surfaces=true) at OCCQueryEngine.cpp:1513</div><div>#6 0x000000010051346e in GeometryQueryTool::import_solid_model (this=0x109704b90, file_name=0x1097073a8 "ilc_13body.stp", file_type=0x109707248 "STEP", logfile_name=0x0, heal_step=true, import_bodies=true, import_surfaces=true, import_curves=true, import_vertices=true, free_surfaces=true, imported_entities=0x0) at GeometryQueryTool.cpp:992</div><div>#7 0x000000010041cf01 in CubitCompat_import_solid_model (file_name=0x1097073a8 "ilc_13body.stp", file_type=0x109707248 "STEP", logfile_name=0x0, heal_step=true,
import_bodies=true, import_surfaces=true, import_curves=true, import_vertices=true, free_surfaces=true, imported_entities=0x0) at CubitCompat.cpp:85</div><div>#8 0x00000001000338d0 in igeom_load_ (instance=0x10083d760, name=0x1097073a8 "ilc_13body.stp", options=0x0, err=0x7fff5fbff95c, name_len=14, options_size=0) at iGeom_CGMA.cc:439</div><div>#9 0x0000000100002188 in main (argc=1, argv=0x7fff5fbff9d8) at test_edge_orient.cc:59</div><div>(gdb) </div></font></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "> </div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">The error message is:</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">........</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">.....</div><div><div><font size="2">
*** Error on Record 2643 (on 9879 -> 26 % in File) *** Ident #1439</font></div><div><font size="2">Complex Type incorrect : GEOMETRIC_REPRESENTATION_ITEM / CURVE ... </font></div><div><font size="2"> *** Error on Record 2657 (on 9879 -> 26 % in File) *** Ident #1444</font></div><div><font size="2">Complex Type incorrect : RATIONAL_B_SPLINE_CURVE / BOUNDED_CURVE ... </font></div><div><font size="2"> *** Error on Record 2659 (on 9879 -> 26 % in File) *** Ident #1444</font></div><div><font size="2">Complex Type incorrect : REPRESENTATION_ITEM / GEOMETRIC_REPRESENTATION_ITEM ... </font></div><div><font size="2"> *** Error on Record 2660 (on 9879 -> 26 % in File) *** Ident #1444</font></div><div><font size="2">Complex Type incorrect : GEOMETRIC_REPRESENTATION_ITEM / CURVE ... </font></div><div><font size="2"> ... Step
File loaded ... </font></div><div><font size="2">Elapsed time: 0 Hours 0 Minutes 0.147091 Seconds </font></div><div><font size="2">CPU user time: 0.01 seconds </font></div><div><font size="2">CPU system time: 0 seconds </font></div><div><font size="2"> 9879 records (entities,sub-lists,scopes), 29736 parameters</font></div><div><font size="2"><br></font></div><div><font size="2"> ... Parameters prepared ... Elapsed time: 0 Hours 0 Minutes 0.151193 Seconds </font></div><div><font size="2">CPU user time: 0.01 seconds </font></div><div><font size="2">CPU system time: 0 seconds </font></div><div><font size="2">Report : 75 unknown entities</font></div><div><font size="2"> ... Objets analysed ... </font></div><div><font size="2">Elapsed time: 0 Hours 0 Minutes 0.158354 Seconds </font></div><div><font size="2">CPU user time: 0.02
seconds </font></div><div><font size="2">CPU system time: 0 seconds </font></div><div><font size="2"> STEP Loading done : 5784 Entities</font></div><div><font size="2"><br></font></div><div><font size="2">Program received signal EXC_BAD_ACCESS, Could not access memory.</font></div><div><font size="2">Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000015</font></div><div><font size="2">0x00007fff962c811e in _Unwind_Resume_or_Rethrow ()</font></div><div><font size="2">(gdb) </font></div><div><font size="2">No source file named address.</font></div></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></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> Jane Hu <janejhu@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Rajeev Jain <jain@mcs.anl.gov> <br><b><span style="font-weight: bold;">Cc:</span></b> Tim Tautges <tautges@mcs.anl.gov>; CGMA Development <cgma-dev@mcs.anl.gov>; James Tautges <jamesdtautges@gmail.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, February 28, 2012 12:26 PM<br> <b><span style="font-weight:
bold;">Subject:</span></b> Re: [cgma-dev] OCC MacOS compile successful<br> </font> </div> <br>
<div id="yiv820333857">Can you give me some detailed debug info.? it runs ok on Linux.<br><br>Thanks.<br><br>Jane<br><br><div class="yiv820333857gmail_quote">On Tue, Feb 28, 2012 at 11:41 AM, Rajeev Jain <span dir="ltr"><<a rel="nofollow" ymailto="mailto:jain@mcs.anl.gov" target="_blank" href="mailto:jain@mcs.anl.gov">jain@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="yiv820333857gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;"><div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div><span><div><font>Thanks, Jane. I made a couple of changes in addition to checking out the latest version and recompilng:</font></div>
<div><font>1. Installed gcc -4.7 (The previous error might be a compiler issue as per http://www.opencascade.org/org/forum/thread_19739/)</font></div>
<div><font>2. Applied the OCC652 patch in cgm/geom/occ</font></div><div><font><br></font></div><div><font>make works !</font></div><div><font>make check gives me this error </font></div><div><font><div>make check-TESTS</div>
<div>Geometry engine set to: OpenCascade 6.5</div><div> ... Step File Reading : ilc_13body.stp</div><div> ... STEP File Read ... </div><div>Elapsed time: 0 Hours 0 Minutes
0.007108 Seconds </div><div>CPU user time: 0.01 seconds </div><div>CPU system time: 0 seconds </div><div> *** Error on Record 648 (on 9879 -> 6 % in File) *** Ident #479</div><div>Complex Type incorrect : SOLID_ANGLE_UNIT / SI_UNIT ... </div>
<div> *** Error on Record 862 (on 9879 -> 8 % in File) *** Ident #650</div><div>Complex Type incorrect : NAMED_UNIT / LENGTH_UNIT ... </div><div> *** Error on Record 1489 (on 9879 -> 15 % in File) *** Ident #1115</div>
<div>Complex Type incorrect : RATIONAL_B_SPLINE_CURVE / BOUNDED_CURVE ... </div><div> *** Error </div><div>..................</div></font></div><div><font> *** Error on Record 2660 (on 9879 -> 26 % in File) *** Ident #1444</font></div>
<div><font>Complex Type incorrect : GEOMETRIC_REPRESENTATION_ITEM / CURVE
... </font></div><div><font> ... Step File loaded ... </font></div><div><font>Elapsed time: 0 Hours 0 Minutes 0.01294 Seconds </font></div><div><font>CPU user time: 0.01 seconds </font></div><div><font>CPU system time: 0 seconds </font></div>
<div><font> 9879 records (entities,sub-lists,scopes), 29736 parameters</font></div><div><font><br></font></div><div><font> ... Parameters prepared ... Elapsed time: 0 Hours 0 Minutes 0.016723 Seconds </font></div><div>
<font>CPU user time: 0.02 seconds </font></div><div><font>CPU system time: 0 seconds </font></div><div><font>Report : 75 unknown entities</font></div><div><font> ... Objets analysed ... </font></div><div><font>Elapsed time: 0 Hours 0 Minutes 0.023135
Seconds </font></div><div><font>CPU user time: 0.02 seconds </font></div><div><font>CPU system time: 0 seconds </font></div><div><font> STEP Loading done : 5784 Entities</font></div><div><font>/bin/sh: line 1: 29000 Segmentation fault: 11 ${dir}$tst</font></div>
<div><font>FAIL: test_edge_orient</font></div><div><font>Using default input file: ./../test/LeverArm.brep</font></div><div><font>Geometry engine set to: OpenCascade 6.5</font></div><div><font><br></font></div><div><font><br>
</font></div><div><font>ITAPS GEOMETRY INTERFACE TEST PROGRAM:</font></div><div><font><br></font></div><div><font>/bin/sh: line 1: 29019 Segmentation fault: 11 ${dir}$tst</font></div><div><font>FAIL: testgeom_occ</font></div>
<div><font><br></font></div><div><font><br></font></div><div><font><br></font></div><div><font>Creating Prism</font></div><div><font><br></font></div><div><font>terminate called throwing an exception</font></div><div><font><br>
</font></div><div><font>/bin/sh: line 1: 29037 Abort trap: 6 ${dir}$tst</font></div><div><font>FAIL: copy_attrib</font></div><div><font>===================</font></div><div><font>3 of 3 tests failed</font></div>
<div><font>===================</font></div><div><font>make[4]: *** [check-TESTS] Error 1</font></div><div><font>make[3]: *** [check-am] Error 2</font></div><div><font>make[2]: *** [check-recursive] Error 1</font></div><div>
<font>make[1]: *** [check] Error 2</font></div><div><font>make: *** [check-recursive] Error 1</font></div><div><font><br></font></div></span></div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> </div>
<div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><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;"> <div dir="ltr"> <font face="Arial"><div class="yiv820333857im"> <hr size="1">
<b><span style="font-weight:bold;">From:</span></b> Jane Hu <<a rel="nofollow" ymailto="mailto:janejhu@gmail.com" target="_blank" href="mailto:janejhu@gmail.com">janejhu@gmail.com</a>><br> <b><span style="font-weight:bold;">To:</span></b> Rajeev Jain <<a rel="nofollow" ymailto="mailto:jain@mcs.anl.gov" target="_blank" href="mailto:jain@mcs.anl.gov">jain@mcs.anl.gov</a>> <br>
<b><span style="font-weight:bold;">Cc:</span></b> Tim Tautges <<a rel="nofollow" ymailto="mailto:tautges@mcs.anl.gov" target="_blank" href="mailto:tautges@mcs.anl.gov">tautges@mcs.anl.gov</a>>; CGMA Development <<a rel="nofollow" ymailto="mailto:cgma-dev@mcs.anl.gov" target="_blank" href="mailto:cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a>>; James Tautges <<a rel="nofollow" ymailto="mailto:jamesdtautges@gmail.com" target="_blank" href="mailto:jamesdtautges@gmail.com">jamesdtautges@gmail.com</a>> <br>
</div><b><span style="font-weight:bold;">Sent:</span></b> Tuesday, February 28, 2012 10:28 AM<div><div class="yiv820333857h5"><br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [cgma-dev] OCC MacOS compile successful<br> </div>
</div></font> </div><div><div class="yiv820333857h5"> <br>
<div><br>Hi, Rajeev,<br><br>I just checked in r5411, please update your cgm to see if it fixes the problem.<br><br>Jane<br><br><div>On Mon, Feb 27, 2012 at 2:22 PM, Rajeev Jain <span dir="ltr"><<a rel="nofollow" ymailto="mailto:jain@mcs.anl.gov" target="_blank" href="mailto:jain@mcs.anl.gov">jain@mcs.anl.gov</a>></span> wrote:<br>
<blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;"><div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div><span><div><font>Right, I was missing DYLD_LBRARY_PATH. CGM configures now, make runs for a while then I get the following error:</font></div>
<div><font>....</font></div><div><font>In copy constructor 'BRepBuilderAPI_MakeShape::BRepBuilderAPI_MakeShape(const BRepBuilderAPI_MakeShape&)':</font></div><div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/TopTools_ListOfShape.hxx:112: error: 'TopTools_ListOfShape::TopTools_ListOfShape(const TopTools_ListOfShape&)' is private</font></div>
<div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepBuilderAPI_MakeShape.hxx:38: error: within this context</font></div><div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepBuilderAPI_MakeWire.hxx: In copy constructor
'BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire(const BRepBuilderAPI_MakeWire&)':</font></div><div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepBuilderAPI_MakeWire.hxx:66: note: synthesized method 'BRepBuilderAPI_MakeShape::BRepBuilderAPI_MakeShape(const BRepBuilderAPI_MakeShape&)' first required here </font></div>
<div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/TopTools_ListOfShape.hxx: In copy constructor 'BRepLib_MakeShape::BRepLib_MakeShape(const BRepLib_MakeShape&)':</font></div><div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/TopTools_ListOfShape.hxx:112: error: 'TopTools_ListOfShape::TopTools_ListOfShape(const TopTools_ListOfShape&)' is private</font></div>
<div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepLib_MakeShape.hxx:46: error: within this context</font></div><div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/TopTools_ListOfShape.hxx:112: error: 'TopTools_ListOfShape::TopTools_ListOfShape(const TopTools_ListOfShape&)' is private</font></div>
<div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepLib_MakeShape.hxx:46: error: within this context</font></div><div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/TopTools_ListOfShape.hxx:112: error: 'TopTools_ListOfShape::TopTools_ListOfShape(const TopTools_ListOfShape&)' is private</font></div>
<div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepLib_MakeShape.hxx:46: error: within this context</font></div><div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepLib_MakeWire.hxx: In copy constructor 'BRepLib_MakeWire::BRepLib_MakeWire(const BRepLib_MakeWire&)':</font></div>
<div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepLib_MakeWire.hxx:81: note: synthesized method 'BRepLib_MakeShape::BRepLib_MakeShape(const BRepLib_MakeShape&)' first required here </font></div>
<div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/TopTools_MapOfShape.hxx:88: error: 'TopTools_MapOfShape::TopTools_MapOfShape(const TopTools_MapOfShape&)' is private</font></div><div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepLib_MakeWire.hxx:81: error: within this context</font></div>
<div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepBuilderAPI_MakeWire.hxx: In copy constructor 'BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire(const BRepBuilderAPI_MakeWire&)':</font></div>
<div><font>/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepBuilderAPI_MakeWire.hxx:66: note: synthesized method
'BRepLib_MakeWire::BRepLib_MakeWire(const BRepLib_MakeWire&)' first required here </font></div><div><font>OCCModifyEngine.cpp: In member function 'CubitStatus OCCModifyEngine::do_loft(BRepOffsetAPI_ThruSections&, DLIList<DLIList<TopoDS_Edge*>*>) const':</font></div>
<div><font>OCCModifyEngine.cpp:952: note: synthesized method 'BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire(const BRepBuilderAPI_MakeWire&)' first required here </font></div><div><font>make[4]: *** [OCCModifyEngine.lo] Error 1</font></div>
<div><font>make[3]: *** [all-recursive] Error 1</font></div><div><font>make[2]: *** [all] Error 2</font></div><div><font>make[1]: *** [all-recursive] Error 1</font></div><div><font>make: *** [all] Error 2</font></div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; ">
<br></div></span></div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> </div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><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;">
<div dir="ltr"> <font face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Jane Hu <<a rel="nofollow" ymailto="mailto:janejhu@gmail.com" target="_blank" href="mailto:janejhu@gmail.com">janejhu@gmail.com</a>><br> <b><span style="font-weight:bold;">To:</span></b> Rajeev Jain <<a rel="nofollow" ymailto="mailto:jain@mcs.anl.gov" target="_blank" href="mailto:jain@mcs.anl.gov">jain@mcs.anl.gov</a>> <br>
<b><span style="font-weight:bold;">Cc:</span></b> Tim Tautges <<a rel="nofollow" ymailto="mailto:tautges@mcs.anl.gov" target="_blank" href="mailto:tautges@mcs.anl.gov">tautges@mcs.anl.gov</a>>; CGMA Development <<a rel="nofollow" ymailto="mailto:cgma-dev@mcs.anl.gov" target="_blank" href="mailto:cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a>>; James Tautges <<a rel="nofollow" ymailto="mailto:jamesdtautges@gmail.com" target="_blank" href="mailto:jamesdtautges@gmail.com">jamesdtautges@gmail.com</a>> <br>
<b><span style="font-weight:bold;">Sent:</span></b> Monday, February 27, 2012 9:42 AM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [cgma-dev] OCC MacOS compile successful<br> </font> </div><div><div>
<br>
<div>Hi, Rajeev:<br><br>It's good news that you are able to build OCC in Mac!<br><br>I saw this error before too in building CGM on OCC on Linux. However, it turned out to be a set up problem. Can you look at config.log, and check if it said that you are using the correctly OCC library? You have to set the LD_LIBRARY_PATH to include your new build directory.<br>
<br>Hope it helps.<br><br>Jane<br><br><div>On Fri, Feb 24, 2012 at 12:21 PM, Rajeev Jain <span dir="ltr"><<a rel="nofollow" ymailto="mailto:jain@mcs.anl.gov" target="_blank" href="mailto:jain@mcs.anl.gov">jain@mcs.anl.gov</a>></span> wrote:<br><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;">
<div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><span>Thanks, James.</span></div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; ">
<span>I was able to build OCC. Did you get CGM to work?</span></div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; ">Configuring CGM I get this:</div><div><font>checking if OpenCascade requires -lpthread... configure: error: Cannot link libTKKernel with Standard_Mutex</font><br>
</div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> </div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><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;">
<div dir="ltr"> <font face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Tim Tautges <<a rel="nofollow" ymailto="mailto:tautges@mcs.anl.gov" target="_blank" href="mailto:tautges@mcs.anl.gov">tautges@mcs.anl.gov</a>><br> <b><span style="font-weight:bold;">To:</span></b> CGMA Development <<a rel="nofollow" ymailto="mailto:cgma-dev@mcs.anl.gov" target="_blank" href="mailto:cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a>>; James Tautges <<a rel="nofollow" ymailto="mailto:jamesdtautges@gmail.com" target="_blank" href="mailto:jamesdtautges@gmail.com">jamesdtautges@gmail.com</a>> <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><div><div>
<br>
Hi all,<br> Good news, last night my son James, hacker extraordinaire, got OCC 6.5.2 to compile successfully on MacOS. 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 <a rel="nofollow" target="_blank" href="http://opencascade.blogspot.com/2010/04/porting-on-macos.html">http://opencascade.blogspot.com/2010/04/porting-on-macos.html</a><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 <time.h><br># include <sys/time.h><br># include <mach/clock.h><br># include <mach/mach.h><br>#endif<br><br>- And then add this code to the OSD_Chronometer::GetThreadCPU function:<br>
#elif defined(__MACH__)<br> struct timespec ts;<br> clock_serv_t cclock;<br> mach_timespec_t mts;<br> host_get_clock_service(mach_host_self(), CALENDAR_CLOCK,
&cclock);<br> clock_get_time(cclock, &mts);<br> mach_port_deallocate(mach_task_self(), cclock);<br> ts.tv_sec = mts.tv_sec;<br> 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> steadfast, because he trusts in you." Isaiah 26:3<br><br> Tim Tautges Argonne National Laboratory<br> (<a rel="nofollow" ymailto="mailto:tautges@mcs.anl.gov" target="_blank" href="mailto:tautges@mcs.anl.gov">tautges@mcs.anl.gov</a>) (telecommuting from UW-Madison)<br>
phone (gvoice): (608)
354-1459 1500 Engineering Dr.<br> fax: <a rel="nofollow">(608) 263-4499</a> Madison, WI 53706<br><br><br><br> </div></div></div> </div> </blockquote>
</div> </div></div></blockquote></div><br>
</div><br><br> </div></div></div> </div> </blockquote></div> </div></div></blockquote></div><br>
</div><br><br> </div></div></div> </div> </blockquote></div> </div></div></blockquote></div><br>
</div><br><br> </div> </div> </blockquote></div> </div></body></html>