[cgma-dev] CGMA with Cubit not reading ACIS files

Tim Tautges tautges at mcs.anl.gov
Thu Aug 1 15:52:44 CDT 2013


You probably already know this, Rajeev, but could you make sure this is reflected to the CGM faq or elsewhere on the 
wiki?  Thanks.

- tim

On 08/01/2013 03:32 PM, David Thompson wrote:
> Hi Rajeev,
>
>> Good to know that --with-cubit option is working on OSX.
>> What exactly did you do to get around  DYLD_LIBRARY_PATH problem for OSX?
>
> I build the application (let's call it CGM2VTK) and place it inside a ".app" directory like so:
>
>    mkdir -p CGM2VTK.app/Contents/MacOS
>    mv CGM2VTK CGM2VTK.app/Contents/MacOS
>    cd CGM2VTK.app/Contents/MacOS
>    ln -s /Applications/Cubit-13.1/Cubit.app/Contents/MacOS/*dylib .
>    cd ../../../
>    ./CGM2VTK.app/Contents/MacOS/CGM2VTK file.sat file.vtp
>
> The links to the cubit libraries have to be in the same location (relative to the ".app" directory) as in Cubit.app. Alternately you can run the program like so:
>
>    DYLD_LIBRARY_PATH=/Applications/Cubit-13.1/Cubit.app/Contents/MacOS  ./CGM2VTK file.sat file.vtp
>
> I've hit related issues with the OCC backend: the libraries in my build of OpenCascade don't appear to have any paths embedded in them. I've used install_name_tool to modify binaries, but have found cases where install_name_tool complains that there isn't any space left. (Perhaps it's not getting build with "-headerpad_max_install_names"?)
>
> 	David
>
>> From: David Thompson <david.thompson at kitware.com>
>> To: Iulian Grindeanu <iulian at mcs.anl.gov>
>> Cc: cgma-dev at mcs.anl.gov
>> Sent: Wednesday, July 31, 2013 5:39 PM
>> Subject: Re: [cgma-dev] CGMA with Cubit not reading ACIS files
>>
>> Hi Iulian,
>>
>>> We are building usually on linux only; ...
>>
>> The software we're working on needs to support the big 3 (Linux, OS X, Windows).
>>
>>> Rajeev is building on 64 bit OSx, but only with occ.
>>> Does it pass make check for you or not?
>>
>> Yes. I have to fiddle with DYLD_LIBRARY_PATH because of the way Cubit is prepared on OS X, but make check passes.
>>
>>      Thanks,
>>      David
>>
>>
>>>> You cannot configure with cubit and occ at the same time.
>>>
>>> I did not.
>>>
>>>> What is your configuration ?
>>>
>>> CXX=clang++ CC=clang CXXFLAGS="-arch i386" CFLAGS="-arch i386" /path/to/cgm/configure  --prefix=/path/to/cgm/x86_install --enable-shared --with-cubit=/Applications/Cubit-13.1/Cubit.app/Contents/MacOS
>>>
>>>
>>>         Thanks,
>>>         David
>>>
>>>
>>>> Hi all,
>>>>
>>>> I have a version of CGMA working with OCC but when I build with cubit support, some simple test programs I wrote don't work any longer. Specifically, calling
>>>>
>>>>     const char* filename = "/path/to/cgm/test/model1.sat";
>>>>     ModelImportOptions opts;
>>>>     DLIList<RefEntity*> entities;
>>>>     stat = GeometryQueryTool::instance()->import_solid_model(
>>>>       filename, ACIS_SAT_TYPE, opts, entities);
>>>>
>>>> returns CUBIT_SUCCESS and prints a non-zero number of "ACIS Entities" have been read but then
>>>>
>>>> 1. entities is an empty list and
>>>> 2. calling GeometryQueryTool::instance()->bodies() also returns an empty list.
>>>>
>>>> Has anyone else seen this problem?
>>>>
>>>>         Thanks,
>>>>         David
>>
>>
>
>

-- 
================================================================
"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



More information about the cgma-dev mailing list