From david.thompson at kitware.com Thu Apr 2 15:33:16 2015 From: david.thompson at kitware.com (David Thompson) Date: Thu, 2 Apr 2015 15:33:16 -0400 Subject: [Cmb-users] Building v4 w/ OpenCascade on Mac OS Message-ID: <4DAB5205-5A26-4CB7-A7D7-F66B7D205451@kitware.com> Hi Bob, 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.) David 1. Check out a slightly-modified CMB superbuild cd /src git clone https://gitlab.kitware.com/dcthomp/cmb-superbuild.git cd cmb-superbuild git checkout cmb-with-oce 2. Build the superbuild, including CMB: cd /bld mkdir cmb-superbuild cd cmb-superbuild cat >> CMakeCache.txt CMAKE_BUILD_TYPE:STRING=Release CMAKE_OSX_ARCHITECTURES:STRING=x86_64 CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9 CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk ENABLE_cmb_BUILD_MODE:STRING=SuperBuild ENABLE_smtk_BUILD_MODE:STRING=Release QT_QMAKE_EXECUTABLE:STRING=/usr/local/bin/qmake USE_SYSTEM_python:BOOL=ON USE_SYSTEM_qt:BOOL=ON ^D cmake /src/cmb-superbuild make 3. Run ModelBuilder. Note the environment variable. OpenCascade does not properly link its libraries on OS X, so this is required: cd /bld/cmb-superbuild/cmb/src/cmb-build DYLD_FALLBACK_LIBRARY_PATH=/bld/cmb-superbuild/install/lib ./bin/ModelBuilder.app/Contents/MacOS/ModelBuilder 4. Load the SMTK plugins exposing modeling kernels. - Choose the Tools?Manage Plugins... menu - Click "Load New..." in the Plugin Manager dialog. - Navigate to /bld/cmb-superbuild/install/lib and choose libsmtkCGMSession_Plugin.dylib - In the Plugin Manager, click the triangle to the left of "smtkCGMSession_Plugin" and check the "Auto Load" option. - You may also wish to do the above for: - libsmtkDiscreteSession_Plugin.dylib - libsmtkExodusSession_Plugin.dylib - libsmtkRemoteSessionPlugin.dylib - Quit and restart ModelBuilder so that the autoload settings are preserved. (This way you do not need to manage plugins again.) 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. From bob.obara at kitware.com Fri Apr 3 16:19:00 2015 From: bob.obara at kitware.com (Robert Michael O'Bara) Date: Fri, 3 Apr 2015 16:19:00 -0400 Subject: [Cmb-users] Building v4 w/ OpenCascade on Mac OS In-Reply-To: <4DAB5205-5A26-4CB7-A7D7-F66B7D205451@kitware.com> References: <4DAB5205-5A26-4CB7-A7D7-F66B7D205451@kitware.com> Message-ID: Hi David, 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. Bob Robert M. O'Bara, MEng. Assistant Director of Scientific Computing Kitware Inc. 28 Corporate Drive Suite 101 Clifton Park, NY 12065 Phone: (518) 881- 4931 > On Apr 2, 2015, at 3:33 PM, David Thompson wrote: > > Hi Bob, > > 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.) > > David > > 1. Check out a slightly-modified CMB superbuild > > cd /src > git clone https://gitlab.kitware.com/dcthomp/cmb-superbuild.git > cd cmb-superbuild > git checkout cmb-with-oce > > 2. Build the superbuild, including CMB: > > cd /bld > mkdir cmb-superbuild > cd cmb-superbuild > cat >> CMakeCache.txt > CMAKE_BUILD_TYPE:STRING=Release > CMAKE_OSX_ARCHITECTURES:STRING=x86_64 > CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9 > CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk > ENABLE_cmb_BUILD_MODE:STRING=SuperBuild > ENABLE_smtk_BUILD_MODE:STRING=Release > QT_QMAKE_EXECUTABLE:STRING=/usr/local/bin/qmake > USE_SYSTEM_python:BOOL=ON > USE_SYSTEM_qt:BOOL=ON > ^D > cmake /src/cmb-superbuild > make > > 3. Run ModelBuilder. Note the environment variable. > OpenCascade does not properly link its libraries on OS X, so this is required: > > cd /bld/cmb-superbuild/cmb/src/cmb-build > DYLD_FALLBACK_LIBRARY_PATH=/bld/cmb-superbuild/install/lib ./bin/ModelBuilder.app/Contents/MacOS/ModelBuilder > > 4. Load the SMTK plugins exposing modeling kernels. > > - Choose the Tools?Manage Plugins... menu > - Click "Load New..." in the Plugin Manager dialog. > - Navigate to /bld/cmb-superbuild/install/lib and choose libsmtkCGMSession_Plugin.dylib > - In the Plugin Manager, click the triangle to the left of "smtkCGMSession_Plugin" and check the "Auto Load" option. > - You may also wish to do the above for: > - libsmtkDiscreteSession_Plugin.dylib > - libsmtkExodusSession_Plugin.dylib > - libsmtkRemoteSessionPlugin.dylib > - Quit and restart ModelBuilder so that the autoload settings are preserved. (This way you do not need to manage plugins again.) > > 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. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.obara at kitware.com Thu Apr 30 16:01:49 2015 From: bob.obara at kitware.com (Bob Obara) Date: Thu, 30 Apr 2015 16:01:49 -0400 Subject: [Cmb-users] Fwd: ModelBuilder v4 In-Reply-To: References: Message-ID: Any ideas? Bob ---------- Forwarded message ---------- From: Hines, Amanda M ERDC-RDE-ITL-MS Date: Thu, Apr 30, 2015 at 3:42 PM Subject: ModelBuilder v4 To: Bob O'Bara I was able to build v4 by using the superbuild instead of the developer option. However, when I try to run ModelBuilder, I get the following error: dyld: Symbol not found: __cg_png_create_info_struct Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO Expected in: /Users/rditlaem/Work/Applications/cmb_v4/build/install/lib//libPng.dylib in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO Trace/BPT trap Any suggestions? Thanks, Amanda -- Robert M. O'Bara, MEng. Assistant Director of Scientific Computing Kitware Inc. 28 Corporate Drive Suite 101 Clifton Park, NY 12065 Phone: (518) 881- 4931 -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.thompson at kitware.com Thu Apr 30 16:04:01 2015 From: david.thompson at kitware.com (David Thompson) Date: Thu, 30 Apr 2015 16:04:01 -0400 Subject: [Cmb-users] Fwd: ModelBuilder v4 In-Reply-To: References: Message-ID: Hi Bob, > Any ideas? I've been able to fix this by pointing DYLD_FALLBACK_LIBRARY_PATH (instead of DYLD_LIBRARY_PATH) to the superbuild's install/lib directory. David > ... > I was able to build v4 by using the superbuild instead of the developer option. However, when I try to run ModelBuilder, I get the following error: > > dyld: Symbol not found: __cg_png_create_info_struct > Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO > Expected in: /Users/rditlaem/Work/Applications/cmb_v4/build/install/lib//libPng.dylib > in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO > Trace/BPT trap > > Any suggestions?