[cgma-dev] [Meshkit-dev] installing Meshkit

Tim Tautges tautges at mcs.anl.gov
Fri Apr 8 15:13:56 CDT 2011


Thanks Steve.  I know the whole link against cubit's shared libs thing is dicey, maybe we need to bite the bullet and 
renew our university license for acis.

- tim

On 04/08/2011 12:20 PM, Steve Jackson wrote:
> On Apr 7, 2011, at 18:23 , Paul Wilson wrote:
>
>> Hi Steve,
>>
>> I'm curious to know what you think is different about the Mac versions that would cause this kind of issue?  (Short of actually debugging the problem - more of an assessment of where the problem might be.)
>
> I can name two possible sources of trouble.  First, my version of Cubit OSX is compiled for 32-bit architecture and might be compiled for an older version of OSX than my laptop has.  So at minimum there is the task of convincing the compiler to generate code compatible with the Cubit library.  It is possible I overlooked a compiler incantation needed to make new code link correctly with an old library, though I tried quite a few (-m32, -arch i386, etc.).
>
> Second, the whole approach of linking against a third-party application bundles's internal libraries is a very hacky one; I would wager that it's even more uncommon to do this on OSX than it is on Linux.  The dynamic libraries in Cubit have path references to one another that are relative to subdirectories the Cubit.app bundle, and I think it might be complicated to convince these libraries to work with one another when loaded from an executable outside of the app bundle.  Dynamic library loading works somewhat differently on OSX than on Linux, and I'm not as familiar with it, so I don't whether there's something I'm overlooking.
>
> I'll give it a try with OCC next week.
> ~S
>
>>
>> On 04/07/2011 10:48 AM, Steve Jackson wrote:
>>> On Apr 7, 2011, at 10:24 , Tim Tautges wrote:
>>>
>>>> On 04/07/2011 09:21 AM, Avery Bingham wrote:
>>>>> I have a few questions on installing MeshKit.
>>>>>
>>>>> First, has it been installed on a Mac? Second I am having some difficulties getting CGM installed.  I use Cubit, but
>>>>> I have a prebuilt version and I cant get the configure file to use the cubit libraries from my installed version.
>>>>> Unfortunately I don't have ACIS or access to the cubit source code.   This seems to be a road block to installing
>>>>> MeshKit.  Do you have a suggested workaround?
>>>>>
>>>> This should be installable on a mac, though I'm not sure if anybody has actually tested that.
>>> That's a good question.  I spent some time trying to build CGM (merge-cubit12 branch) against Cubit 12.2 on Mac OS 10.6, and I got nowhere: I cannot find a way to successfully link against the libcubiti19 file that's inside in the Cubit application.  (I can convince the linker to link against this file, but I cannot reference any symbols without producing undefined symbol errors.)   This prevents CGM from passing its configure step.
>>>
>>> I haven't time to work on this further, but if anyone with a Mac wants to look at this more closely, they can contact me for details about what I've tried so far.
>>>
>>> (Would it be practical to set up MeskKit to build without CGM, or with a CGM that doesn't have a geometry backend installed?  It seems like the greatest burden for a new user is getting CGM set up with an appropriate backend.)
>>> ~S
>>>
>>
>> --
>> -- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --
>> Paul Wilson ~ UW-Madison ~ 608-263-0807 ~ cal: http://bit.ly/pphw-cal
>> Associate Professor, Engineering Physics. ~ http://cnerg.engr.wisc.edu
>> Chair, Energy Analysis&   Policy Program ~ http://nelson.wisc.edu/eap
>> Note: I will be on sabbatical for the 2010-2011 academic year.
>>
>>
>
>

-- 
================================================================
"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: (608) 263-8485      1500 Engineering Dr.
            fax: (608) 263-4499      Madison, WI 53706



More information about the cgma-dev mailing list