[cgma-dev] OCC MacOS compile successful
Jane Hu
janejhu at gmail.com
Mon Feb 27 09:42:50 CST 2012
Hi, Rajeev:
It's good news that you are able to build OCC in Mac!
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.
Hope it helps.
Jane
On Fri, Feb 24, 2012 at 12:21 PM, Rajeev Jain <jain at mcs.anl.gov> wrote:
> Thanks, James.
> I was able to build OCC. Did you get CGM to work?
> Configuring CGM I get this:
> checking if OpenCascade requires -lpthread... configure: error: Cannot
> link libTKKernel with Standard_Mutex
>
> Rajeev
>
> ------------------------------
> *From:* Tim Tautges <tautges at mcs.anl.gov>
> *To:* CGMA Development <cgma-dev at mcs.anl.gov>; James Tautges <
> jamesdtautges at gmail.com>
> *Sent:* Friday, January 6, 2012 9:10 AM
> *Subject:* [cgma-dev] OCC MacOS compile successful
>
> Hi all,
> Good news, last night my son James, hacker extraordinaire, got OCC 6.5.2
> to compile successfully on MacOS. The details:
>
> - Snow leopard, gcc4.2, OCC6.5.2 (straight from the OCC download page)
> - Besides the following changes, follow the steps on
> http://opencascade.blogspot.com/2010/04/porting-on-macos.html
> - Run "autoreconf -fi" in the ros folder and then "aclocal", "automake",
> and "autoconf"
>
> - Add the following code to the platform specific part of
> ros/src/OSD/OSD_Chronometer.cxx:
> #ifdef __MACH__
> # include <time.h>
> # include <sys/time.h>
> # include <mach/clock.h>
> # include <mach/mach.h>
> #endif
>
> - And then add this code to the OSD_Chronometer::GetThreadCPU function:
> #elif defined(__MACH__)
> struct timespec ts;
> clock_serv_t cclock;
> mach_timespec_t mts;
> host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock);
> clock_get_time(cclock, &mts);
> mach_port_deallocate(mach_task_self(), cclock);
> ts.tv_sec = mts.tv_sec;
> ts.tv_nsec = mts.tv_nsec;
>
> - Proceed to configure, make, and install
>
> The new version of OSD_Chronometer.cxx is attached.
>
> We haven't built or tested CGM on top of this, but that's next.
>
> - tim
>
> --
> ================================================================
> "You will keep in perfect peace him whose mind is
> steadfast, because he trusts in you." Isaiah 26:3
>
> Tim Tautges Argonne National Laboratory
> (tautges at mcs.anl.gov) (telecommuting from UW-Madison)
> phone (gvoice): (608) 354-1459 1500 Engineering Dr.
> fax: (608) 263-4499 Madison, WI 53706
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20120227/37ee5208/attachment.htm>
More information about the cgma-dev
mailing list