<div dir="ltr">Hi everyone,<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">...</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span style="font-family:arial,sans-serif">    </span>ERROR: In /Users/schmitt/paraview/opt/ParaView-3.98.1_RC1_OSX-10.7/paraview/src/paraview/ParaViewCore/ClientServerCore/Core/vtkPVPluginLoader.cxx, line 296<br><span style="font-family:arial,sans-serif">     </span>vtkPVPluginLoader (0x7fdf9fc01810): dlopen(/Users/schmitt/paraview/paraview_svn/trunk/plugins/vtkLFMReader/build-v3.98.1_RC1/libvtkLFMReader.dylib, 1): Library not loaded: libhdf5.7.3.0.dylib<br>
<span style="font-family:arial,sans-serif">     </span>Referenced from: /Users/schmitt/paraview/opt/ParaView-3.98.1_RC1_OSX-10.7/paraview/src/paraview-build/lib/libvtkpqComponents-pv3.98.1.dylib<br><span style="font-family:arial,sans-serif">     </span>Reason: image not found</blockquote>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">... </blockquote><div><br></div><div>I found and fixed the problem.  It turned out to be exactly what Utkarsh suggested: problems fixed by fixup_install.py.  Specifically, I had forgotten a few &quot;key=value&quot; arguments for fixup_plugin.py</div>
<div><br></div><div>In case anyone else runs into this in the future, here&#39;s what I did:</div><div><br></div><div>1.  Build ParaView via SuperBuild. (ccmake; gmake; ctest; cpack -G&quot;DragNDrop&quot;)</div><div>2.  Edit my plugin&#39;s CMakeLists.txt to add:</div>
<div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div dir="ltr"><div><div>add_custom_target(dist                                                                                                                                                                                                                      </div>
</div></div><div dir="ltr"><div><div>    COMMAND ${CMAKE_COMMAND}  -DBINARY_DIR:PATH=${CMAKE_CURRENT_BINARY_DIR}                                                                                                                                                                 </div>
</div></div><div dir="ltr"><div><div>                              -DPV_SUPERBUILD_LIST_DIR=/Users/schmitt/paraview/opt/src/ParaViewSuperbuild-3.98.0/Projects                                                                                                                   </div>
</div></div><div dir="ltr"><div><div>                              -DINSTALL_DIR:PATH=${CMAKE_CURRENT_BINARY_DIR}                                                                                                                                                                </div>
</div></div><div dir="ltr"><div><div>                              -DPARAVIEW_BINARY_DIR:PATH=${ParaView_DIR}                                                                                                                                                                    </div>
</div></div><div dir="ltr"><div><div>                              -DTMP_DIR:PATH=${CMAKE_CURRENT_BINARY_DIR}                                                                                                                                                                    </div>
</div></div><div dir="ltr"><div><div>                              -Dbundle_name:STRING=${CMAKE_CURRENT_BINARY_DIR}/vtkLFMReader.tgz                                                                                                                                             </div>
</div></div><div dir="ltr"><div><div>                              -P ${CMAKE_CURRENT_LIST_DIR}/install_vtkLFMReader.cmake)    </div></div></div></blockquote><div dir="ltr"><div><br></div><div>3.  Add install_vtkLFMReader.cmake, which is largely the same as install_vistrails.cmake:</div>
<div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div dir="ltr"><div><div>if (APPLE)</div></div></div><div dir="ltr"><div><div>  set (SHARED_LIBRARY_PREFIX &quot;lib&quot;)</div></div></div>
<div dir="ltr"><div><div>  set (SHARED_LIBRARY_SUFFIX &quot;.dylib&quot;)</div></div></div><div dir="ltr"><div><div>  set (PLUGIN_DIR &quot;lib&quot;)</div></div></div><div dir="ltr"><div><div>elseif (UNIX)</div></div></div>
<div dir="ltr"><div><div>  set (SHARED_LIBRARY_PREFIX &quot;lib&quot;)</div></div></div><div dir="ltr"><div><div>  set (SHARED_LIBRARY_SUFFIX &quot;.so&quot;)</div></div></div><div dir="ltr"><div><div>  set (PLUGIN_DIR &quot;lib&quot;)</div>
</div></div><div dir="ltr"><div><div>elseif (WIN32)</div></div></div><div dir="ltr"><div><div>  set (SHARED_LIBRARY_PREFIX &quot;&quot;)</div></div></div><div dir="ltr"><div><div>  set (SHARED_LIBRARY_SUFFIX &quot;.dll&quot;)</div>
</div></div><div dir="ltr"><div><div>  set (PLUGIN_DIR &quot;bin&quot;)</div></div></div><div dir="ltr"><div><div>endif()</div></div></div><div dir="ltr"><div><div><br></div></div></div><div dir="ltr"><div><div>execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory ${TMP_DIR}/vtkLFMReader)</div>
</div></div><div dir="ltr"><div><div>execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${TMP_DIR}/vtkLFMReader)</div></div></div><div dir="ltr"><div><div>execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${BINARY_DIR}/${SHARED_LIBRARY_PREFIX}vtkLFMReader${SHARED_LIBRARY_SUFFIX} ${TMP_DIR}/vtkLFMReader)</div>
</div></div><div dir="ltr"><div><div><br></div></div></div><div dir="ltr"><div><div>if (APPLE)</div></div></div><div dir="ltr"><div><div>      COMMAND ${PV_SUPERBUILD_LIST_DIR}/apple/fixup_plugin.py</div></div></div><div dir="ltr">
<div><div>            # The directory containing the plugin dylibs or the plugin itself.</div></div></div><div dir="ltr"><div><div>            ${TMP_DIR}/vtkLFMReader//${SHARED_LIBRARY_PREFIX}vtkLFMReader${SHARED_LIBRARY_SUFFIX}</div>
</div></div><div dir="ltr"><div><div>            # names to replace (in order)</div></div></div><div dir="ltr"><div><div>            &quot;${PARAVIEW_BINARY_DIR}/lib/=@executable_path/../Libraries/&quot;</div></div></div>
<div dir="ltr"><div><div>            &quot;/Users/schmitt/paraview/opt/ParaView-3.98.0_OSX-10.7/install/lib/Qt=@executable_path/../Frameworks/Qt&quot;</div></div></div><div dir="ltr"><div><div>            &quot;/Users/schmitt/paraview/opt/ParaView-3.98.0_OSX-10.7/install/lib=@executable_path/../Libraries/&quot;</div>
</div></div><div dir="ltr"><div><div>            &quot;libhdf5.7.3.0.dylib=@executable_path/../Libraries/libhdf5.1.8.9.dylib&quot;</div></div></div><div dir="ltr"><div><div>            &quot;libhdf5_hl.7.3.0.dylib=@executable_path/../Libraries/libhdf5.1.8.9.dylib&quot;</div>
</div></div><div dir="ltr"><div><div>            )</div></div></div><div dir="ltr"><div><div>endif()</div></div></div></blockquote><div dir="ltr"><div><br></div><div>4.  build my plugin (cmake ... gmake dist)</div><div>5.  Load my plugin with the paraview.app inside the dmg</div>
<div><br></div><div>Thanks for your help!</div><div>Pete</div><div class="gmail_extra"><br></div></div>