<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span><div><font size="2">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 size="2">....</font></div><div><font size="2">In copy constructor 'BRepBuilderAPI_MakeShape::BRepBuilderAPI_MakeShape(const BRepBuilderAPI_MakeShape&)':</font></div><div><font size="2">/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 size="2">/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepBuilderAPI_MakeShape.hxx:38: error: within this context</font></div><div><font size="2">/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepBuilderAPI_MakeWire.hxx: In copy constructor
'BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire(const BRepBuilderAPI_MakeWire&)':</font></div><div><font size="2">/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 size="2">/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/TopTools_ListOfShape.hxx: In copy constructor 'BRepLib_MakeShape::BRepLib_MakeShape(const BRepLib_MakeShape&)':</font></div><div><font size="2">/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 size="2">/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepLib_MakeShape.hxx:46: error: within this context</font></div><div><font
size="2">/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 size="2">/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepLib_MakeShape.hxx:46: error: within this context</font></div><div><font size="2">/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 size="2">/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepLib_MakeShape.hxx:46: error: within this context</font></div><div><font size="2">/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepLib_MakeWire.hxx: In copy constructor 'BRepLib_MakeWire::BRepLib_MakeWire(const BRepLib_MakeWire&)':</font></div><div><font
size="2">/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 size="2">/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 size="2">/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepLib_MakeWire.hxx:81: error: within this context</font></div><div><font size="2">/Users/rajeevjain/Downloads/OpenCASCADE652/ros/install/inc/BRepBuilderAPI_MakeWire.hxx: In copy constructor 'BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire(const BRepBuilderAPI_MakeWire&)':</font></div><div><font size="2">/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 size="2">OCCModifyEngine.cpp: In member function 'CubitStatus OCCModifyEngine::do_loft(BRepOffsetAPI_ThruSections&, DLIList<DLIList<TopoDS_Edge*>*>) const':</font></div><div><font size="2">OCCModifyEngine.cpp:952: note: synthesized method 'BRepBuilderAPI_MakeWire::BRepBuilderAPI_MakeWire(const BRepBuilderAPI_MakeWire&)' first required here </font></div><div><font size="2">make[4]: *** [OCCModifyEngine.lo] Error 1</font></div><div><font size="2">make[3]: *** [all-recursive] Error 1</font></div><div><font size="2">make[2]: *** [all] Error 2</font></div><div><font size="2">make[1]: *** [all-recursive] Error 1</font></div><div><font size="2">make: *** [all] Error 2</font></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div></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; "><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> 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> <br>
<div id="yiv362014949">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 class="yiv362014949gmail_quote">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 class="yiv362014949gmail_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 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 class="yiv362014949h5">
<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 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 <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> </blockquote></div> </div></body></html>