<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi David,<div class=""><br class=""></div><div class="">This worked!  The only thing is that some of the models (like the Hyoid_gearing) that use to load relatively quickly now takes about 2 mins.</div><div class=""><br class=""></div><div class="">Bob</div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Robert M. O'Bara, MEng.<br class="">Assistant Director of Scientific Computing<br class=""><br class="">Kitware Inc.<br class="">28 Corporate Drive<br class="">Suite 101<br class="">Clifton Park, NY 12065<br class=""><br class="">Phone: (518) 881- 4931</div><div class=""><br class=""></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Apr 2, 2015, at 3:33 PM, David Thompson <<a href="mailto:david.thompson@kitware.com" class="">david.thompson@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Hi Bob,<br class=""><br class="">I was able to build CMB v4 using the instructions below and load a variety of CGM files. What models were giving you trouble? (There are definitely a few that cause crashes, but deep inside OpenCascade.)<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">     </span>David<br class=""><br class="">1. Check out a slightly-modified CMB superbuild<br class=""><br class="">    cd /src<br class="">    git clone <a href="https://gitlab.kitware.com/dcthomp/cmb-superbuild.git" class="">https://gitlab.kitware.com/dcthomp/cmb-superbuild.git</a><br class="">    cd cmb-superbuild<br class="">    git checkout cmb-with-oce<br class=""><br class="">2. Build the superbuild, including CMB:<br class=""><br class="">    cd /bld<br class="">    mkdir cmb-superbuild<br class="">    cd cmb-superbuild<br class="">    cat >> CMakeCache.txt<br class="">    CMAKE_BUILD_TYPE:STRING=Release<br class="">    CMAKE_OSX_ARCHITECTURES:STRING=x86_64<br class="">    CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9<br class="">    CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk<br class="">    ENABLE_cmb_BUILD_MODE:STRING=SuperBuild<br class="">    ENABLE_smtk_BUILD_MODE:STRING=Release<br class="">    QT_QMAKE_EXECUTABLE:STRING=/usr/local/bin/qmake<br class="">    USE_SYSTEM_python:BOOL=ON<br class="">    USE_SYSTEM_qt:BOOL=ON<br class="">    ^D<br class="">    cmake /src/cmb-superbuild<br class="">    make<br class=""><br class="">3. Run ModelBuilder. Note the environment variable.<br class="">   OpenCascade does not properly link its libraries on OS X, so this is required:<br class=""><br class="">    cd /bld/cmb-superbuild/cmb/src/cmb-build<br class="">    DYLD_FALLBACK_LIBRARY_PATH=/bld/cmb-superbuild/install/lib ./bin/ModelBuilder.app/Contents/MacOS/ModelBuilder<br class=""><br class="">4. Load the SMTK plugins exposing modeling kernels.<br class=""><br class="">    - Choose the Tools→Manage Plugins... menu<br class="">    - Click "Load New..." in the Plugin Manager dialog.<br class="">    - Navigate to /bld/cmb-superbuild/install/lib and choose libsmtkCGMSession_Plugin.dylib<br class="">    - In the Plugin Manager, click the triangle to the left of "smtkCGMSession_Plugin" and check the "Auto Load" option.<br class="">    - You may also wish to do the above for:<br class="">      - libsmtkDiscreteSession_Plugin.dylib<br class="">      - libsmtkExodusSession_Plugin.dylib<br class="">      - libsmtkRemoteSessionPlugin.dylib<br class="">    - Quit and restart ModelBuilder so that the autoload settings are preserved. (This way you do not need to manage plugins again.)<br class=""><br class="">5. Load a CGM/OpenCascade model by typing Cmd-O or clicking the Open toolbar button or choosing the File→Open menu item. You can also choose File→New Session...→cgm and use the operators (right click on the session in the model pane) to create a new model from scratch.<br class=""><br class=""></div></blockquote></div><br class=""></div></body></html>