Thanks for the tip, Utkarsh.<br><br>Now I'm having some difficulty with CMake (I'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 "1.0"<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 "generate" 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?<br><br><div class="gmail_quote">
On Mon, Nov 8, 2010 at 1:01 PM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
You need to compile a plugin and load that, simply loading the XML<br>
wouldn'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 class="h5"><br>
On Mon, Nov 8, 2010 at 2:47 PM, John Haiducek <<a href="mailto:jhaiduce@gmail.com">jhaiduce@gmail.com</a>> wrote:<br>
> I downloaded a new vtk class (vtkAddTetraLayer) from<br>
> <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>
> vtkAddTetraLayer.cxx to a shared library. I can then load the plugin using<br>
> the Server Manager XML file, but when I try to use it I get:<br>
><br>
> ERROR: In<br>
> /home/haiduced/Downloads/ParaView-3.8.1/Servers/Common/vtkProcessModule.cxx,<br>
> line 1065<br>
> vtkProcessModule (0x861b60): Cannot create object of type<br>
> "vtkAddTetraLayer".<br>
> while processing<br>
> Message 0 = New<br>
> Argument 0 = string_value {vtkAddTetraLayer}<br>
> Argument 1 = id_value {1068}<br>
><br>
><br>
><br>
> ERROR: In<br>
> /home/haiduced/Downloads/ParaView-3.8.1/Servers/Common/vtkProcessModule.cxx,<br>
> line 1066<br>
> vtkProcessModule (0x861b60): Aborting execution for debugging purposes.<br>
><br>
> So ParaView doesn't know about this vtk class. Is there a way to tell<br>
> ParaView that the class is defined in the shared library<br>
> vtkAddTetraLayer.so? Is there a way to access this new class from ParaView<br>
> without recompiling VTK and ParaView from scratch?<br>
><br>
> John Haiducek<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <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:<br>
> <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>
><br>
</blockquote></div><br>