That did the trick, thanks!<br><br><div class="gmail_quote">On Tue, Nov 9, 2010 at 3:41 PM, Peter Schmitt <span dir="ltr">&lt;<a href="mailto:pschmittml@gmail.com">pschmittml@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi John,<div><br></div><div>You might be able to get past the &quot;<span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">error while loading shared libraries: libvtkCommon.so.pv3.8&quot; problem by prepending to your LD_LIBRARY_PATH.  In bash:</span><div>

<font face="arial, sans-serif"><span style="border-collapse: collapse;"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse: collapse;">export LD_LIBRARY_PATH=..../path/containing/libvtkCommon.so.pv3.8:$LD_LIBRARY_PATH</span></font></div>

<div><font face="arial, sans-serif"><span style="border-collapse: collapse;"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse: collapse;"><br>
</span></font></div><div><font face="arial, sans-serif"><span style="border-collapse: collapse;">Cheers,<br>Pete<br></span></font><div><div></div><div class="h5"><br><div class="gmail_quote">On Mon, Nov 8, 2010 at 3:13 PM, John Haiducek <span dir="ltr">&lt;<a href="mailto:jhaiduce@gmail.com" target="_blank">jhaiduce@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks for the tip, Utkarsh.<br><br>Now I&#39;m having some difficulty with CMake (I&#39;ve not used CMake enough to get comfortable with it yet). <br>

<br>My CMakeLists.txt is:<br><br><div style="margin-left: 40px;">cmake_minimum_required(VERSION 2.8)<br>
 FIND_PACKAGE(ParaView REQUIRED)<br> INCLUDE(${PARAVIEW_USE_FILE})<br><br>ADD_PARAVIEW_PLUGIN(AddTetraLayer &quot;1.0&quot;<br>  SERVER_MANAGER_XML vtkAddTetraLayer_SM.xml <br>  SERVER_MANAGER_SOURCES vtkAddTetraLayer.cxx<br>


  GUI_RESOURCE_FILES vtkAddTetraLayer_GUI.xml)<br></div><br><br>When I do a &quot;generate&quot; in ccmake, I get this:<br><br><div style="margin-left: 40px;"> CMake Warning at /usr/local/lib/paraview-3.8/CMake/ParaViewPlugins.cmake:986 (ADD_LIBRARY):<br>


   Cannot generate a safe runtime search path for target AddTetraLayer because<br>   files in some directories may conflict with libraries in implicit<br>   directories:<br><br>     runtime library [libQtCore.so.4] in /usr/lib64 may be hidden by files in:<br>


       /usr/local/lib/paraview-3.8<br><br>   Some of these libraries may not be found correctly.<br> Call Stack (most recent call first):<br>   CMakeLists.txt:9 (ADD_PARAVIEW_PLUGIN)<br></div><br><br>I am then able to build in spite of the error, but the output looks like:<br>


<br><div style="margin-left: 40px;">[  9%] Generating qrc_AddTetraLayer.cxx<br>[ 18%] Generating vtkSMXML_AddTetraLayer.h<br>/usr/local/bin/kwProcessXML: error while loading shared libraries: libvtkCommon.so.pv3.8: cannot open shared object file: No such file or directory<br>


make[2]: *** [vtkSMXML_AddTetraLayer.h] Error 127<br>make[1]: *** [CMakeFiles/AddTetraLayer.dir/all] Error 2<br>make: *** [all] Error 2<br></div><br>Can anyone tell me how to fix these errors?<div><div></div><div>
<br><br><div class="gmail_quote">
On Mon, Nov 8, 2010 at 1:01 PM, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


You need to compile a plugin and load that, simply loading the XML<br>
wouldn&#39;t do. Look at the example in<br>
${ParaViewSource}/Examples/Plugins/Filter to see how to write the<br>
CMakeLists.txt to build such a plugin.<br>
<br>
Refer to the Wiki for additional details:<br>
<a href="http://www.paraview.org/Wiki/Plugin_HowTo#Adding_a_new_VTK_filter" target="_blank">http://www.paraview.org/Wiki/Plugin_HowTo#Adding_a_new_VTK_filter</a><br>
<br>
Utkarsh<br>
<div><div></div><div><br>
On Mon, Nov 8, 2010 at 2:47 PM, John Haiducek &lt;<a href="mailto:jhaiduce@gmail.com" target="_blank">jhaiduce@gmail.com</a>&gt; wrote:<br>
&gt; I downloaded a new vtk class (vtkAddTetraLayer) from<br>
&gt; <a href="http://www.vision.ee.ethz.ch/%7Eblloyd/Extrusion/" target="_blank">http://www.vision.ee.ethz.ch/~blloyd/Extrusion/</a>. I compiled the<br>
&gt; vtkAddTetraLayer.cxx to a shared library. I can then load the plugin using<br>
&gt; the Server Manager XML file, but when I try to use it I get:<br>
&gt;<br>
&gt; ERROR: In<br>
&gt; /home/haiduced/Downloads/ParaView-3.8.1/Servers/Common/vtkProcessModule.cxx,<br>
&gt; line 1065<br>
&gt; vtkProcessModule (0x861b60): Cannot create object of type<br>
&gt; &quot;vtkAddTetraLayer&quot;.<br>
&gt; while processing<br>
&gt; Message 0 = New<br>
&gt;   Argument 0 = string_value {vtkAddTetraLayer}<br>
&gt;   Argument 1 = id_value {1068}<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ERROR: In<br>
&gt; /home/haiduced/Downloads/ParaView-3.8.1/Servers/Common/vtkProcessModule.cxx,<br>
&gt; line 1066<br>
&gt; vtkProcessModule (0x861b60): Aborting execution for debugging purposes.<br>
&gt;<br>
&gt; So ParaView doesn&#39;t know about this vtk class. Is there a way to tell<br>
&gt; ParaView that the class is defined in the shared library<br>
&gt; vtkAddTetraLayer.so? Is there a way to access this new class from ParaView<br>
&gt; without recompiling VTK and ParaView from scratch?<br>
&gt;<br>
&gt; John Haiducek<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div></div></div></div>
</blockquote></div><br>