<div dir="ltr"><div><div>Hi Hong,<br><br></div>Correct me if I&#39;m wrong but isn&#39;t Phasta built with CMake? If it is, in CMakeLists.txt you can do something like:<br>find_package(ParaView REQUIRED)<br>include(&quot;${PARAVIEW_USE_FILE}&quot;)<br>
...<br><br></div>If not, I would suggest creating a simple executable and build it with CMake and see what libraries are linked in there. It&#39;s a bit tough to figure out which libraries are missing as that depends on how you build ParaView and what system libraries you&#39;re running on.<br>
<br>Andy<br><div><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 22, 2013 at 2:52 PM, Hong Yi <span dir="ltr">&lt;<a href="mailto:hongyi@renci.org" target="_blank">hongyi@renci.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hello,<br>
<br>
I am working to build an in-situ viz for a phasta simulation. I am able to build phasta linked to ParaView v3.98.1 coprocessing library and run phasta simulation linked to coprocessing library to process a python pipeline in-situ for each time step iteration. 
 In the pipeline, there are two rendered views with each view containing a slice and an isocontour showing a bubble in the slice, which are set to be exported to png images when exporting the pipeline. This phasta simulation with in-situ viz can run through
 if I comment out &quot;WriteAllImages&quot; in the pipeline python code and the output data (parallel unstructured grid writer output) can be written out as expected during the simulation iteration. However, when I uncomment out &quot;WriteAllImages&quot; statement, I got a &quot;Generic
 Warning: In /../ParaView-3.98.1-source/VTK/Parallel/MPI/vtkMPICommunicator.cxx, line 72<br>
MPI had an error&quot; and phasta simulation code then exits and no images are written out. So I know &quot;WriteAllImages&quot; causes this run time problem. I suspect I may not link all shared libs that are needed for off-screen rendering and then export to png images.
 Here are the libraries I have linked to currently in the Makefile:<br>
<br>
-lPhastaAdaptor -lvtkFortranAdaptor-pv3.98 -lvtkCoProcessor-pv3.98 -lvtkCoProcessorPython -lvtkCoProcessorPython27D-pv3.98 -lvtkPVPythonSupport-pv3.98 -lvtkPVServerManagerRenderingPython -lvtkPVServerManagerCorePython -lvtkPVServerManagerDefaultPython -lvtkPVServerManagerApplicationPython
 -lvtkFiltersCore-pv3.98 -lvtkFiltersCorePython27D-pv3.98 -lvtkFiltersGeneral-pv3.98 -lvtkFiltersGeneralPython27D-pv3.98 -lvtkFiltersImaging-pv3.98 -lvtkFiltersImagingPython27D-pv3.98 -lOSMesa.so<br>
<br>
I am hoping someone could spot some libraries that I have missed here to get &quot;WriteAllImages&quot; work for in-situ viz, or perhaps there are something else I did not do correctly.
<br>
<br>
Many thanks for any suggestions or advice you can offer regarding this problem.<span class="HOEnZb"><font color="#888888"><br>
<br>
Hong <br>
<br>
</font></span></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>