<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt">Thanks. <br>It works. I've added this to the installation wiki:  <a href="https://trac.mcs.anl.gov/projects/ITAPS/wiki/CgmFromScratch">https://trac.mcs.anl.gov/projects/ITAPS/wiki/CgmFromScratch</a><br>I haven't tried OCC, OCE work for me, a minor caveat is you'll have to specify OCE_INSTALL_INCLUDE_DIR. OCE by default places it in oce/include instead of root level, where CGM looks for includes.<br><br>Rajeev<br><div><span><br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Tim
 Tautges <tautges@mcs.anl.gov><br> <b><span style="font-weight: bold;">To:</span></b> cgma-dev@mcs.anl.gov <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, August 1, 2013 3:52 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [cgma-dev] CGMA with Cubit not reading ACIS files<br> </font> </div> <div class="y_msg_container"><br>You probably already know this, Rajeev, but could you make sure this is reflected to the CGM faq or elsewhere on the <br>wiki?  Thanks.<br><br>- tim<br><br>On 08/01/2013 03:32 PM, David Thompson wrote:<br>> Hi Rajeev,<br>><br>>> Good to know that --with-cubit option is working on OSX.<br>>> What exactly did you do to get around  DYLD_LIBRARY_PATH problem for OSX?<br>><br>> I build the application (let's call it CGM2VTK) and place it inside a ".app" directory like so:<br>><br>>    mkdir -p CGM2VTK.app/Contents/MacOS<br>>    mv
 CGM2VTK CGM2VTK.app/Contents/MacOS<br>>    cd CGM2VTK.app/Contents/MacOS<br>>    ln -s /Applications/Cubit-13.1/Cubit.app/Contents/MacOS/*dylib .<br>>    cd ../../../<br>>    ./CGM2VTK.app/Contents/MacOS/CGM2VTK file.sat file.vtp<br>><br>> 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:<br>><br>>    DYLD_LIBRARY_PATH=/Applications/Cubit-13.1/Cubit.app/Contents/MacOS  ./CGM2VTK file.sat file.vtp<br>><br>> 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"?)<br>><br>>
     David<br>><br>>> From: David Thompson <<a ymailto="mailto:david.thompson@kitware.com" href="mailto:david.thompson@kitware.com">david.thompson@kitware.com</a>><br>>> To: Iulian Grindeanu <<a ymailto="mailto:iulian@mcs.anl.gov" href="mailto:iulian@mcs.anl.gov">iulian@mcs.anl.gov</a>><br>>> Cc: <a ymailto="mailto:cgma-dev@mcs.anl.gov" href="mailto:cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a><br>>> Sent: Wednesday, July 31, 2013 5:39 PM<br>>> Subject: Re: [cgma-dev] CGMA with Cubit not reading ACIS files<br>>><br>>> Hi Iulian,<br>>><br>>>> We are building usually on linux only; ...<br>>><br>>> The software we're working on needs to support the big 3 (Linux, OS X, Windows).<br>>><br>>>> Rajeev is building on 64 bit OSx, but only with occ.<br>>>> Does it pass make check for you or not?<br>>><br>>> Yes. I have to fiddle
 with DYLD_LIBRARY_PATH because of the way Cubit is prepared on OS X, but make check passes.<br>>><br>>>      Thanks,<br>>>      David<br>>><br>>><br>>>>> You cannot configure with cubit and occ at the same time.<br>>>><br>>>> I did not.<br>>>><br>>>>> What is your configuration ?<br>>>><br>>>> 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<br>>>><br>>>><br>>>>         Thanks,<br>>>>         David<br>>>><br>>>><br>>>>> Hi all,<br>>>>><br>>>>> 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<br>>>>><br>>>>>     const char* filename = "/path/to/cgm/test/model1.sat";<br>>>>>     ModelImportOptions opts;<br>>>>>     DLIList<RefEntity*> entities;<br>>>>>     stat = GeometryQueryTool::instance()->import_solid_model(<br>>>>>       filename, ACIS_SAT_TYPE, opts, entities);<br>>>>><br>>>>> returns CUBIT_SUCCESS and prints a non-zero number of "ACIS Entities" have been read but then<br>>>>><br>>>>> 1. entities is an empty list and<br>>>>> 2. calling GeometryQueryTool::instance()->bodies() also returns an empty list.<br>>>>><br>>>>> Has anyone else seen this problem?<br>>>>><br>>>>>         Thanks,<br>>>>>   
      David<br>>><br>>><br>><br>><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 ymailto="mailto:tautges@mcs.anl.gov" 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: (608) 263-4499      Madison, WI 53706<br><br><br><br></div> </div> </div> </blockquote></div>   </div></body></html>