<div dir="ltr"><div>Hi Hong,<br><br>I&#39;m glad to hear it&#39;s working. I&#39;m not sure what the problem was.<br><br></div>Andy<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 28, 2013 at 3:30 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 link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hi Andy,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Just let you know that I am able to work around the error by adding an option in CMake to allow users to specify the static PhastaAdaptor lib to link to and
 I am able to build our simulation code linked to ParaView coprocessing successfully. Let me know if you know a better way to do it.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hong<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:paraview-bounces@paraview.org" target="_blank">paraview-bounces@paraview.org</a> [mailto:<a href="mailto:paraview-bounces@paraview.org" target="_blank">paraview-bounces@paraview.org</a>]
<b>On Behalf Of </b>Hong Yi<br>
<b>Sent:</b> Wednesday, August 28, 2013 12:44 PM<br>
<b>To:</b> Andy Bauer</span></p><div><div class="h5"><br>
<b>Cc:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> Re: [Paraview] cannot find -lvtkPVPythonCatalyst error when doing coprocessing<u></u><u></u></div></div><p></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">Hi Andy,<br>
<br>
That seems to work well, but just to double make sure, let me copy the list of relevant coprocessing libs for 3.98 for your perusal:<br>
----------------<br>
libvtkCoProcessorCS-pv3.98.a<br>
libvtkCoProcessorPython27D-pv3.98.a<br>
libvtkCoProcessorImplementation-pv3.98.a<br>
libvtkCoProcessorPython-pv3.98.a<br>
libvtkCoProcessor-pv3.98.a<br>
----------------<br>
<br>
On a related question, now I am getting error &quot;cannot find -lPhastaAdaptor&quot; although I have libPhastaAdaptor.a in the lib directory. It looks like it tries to link to shared library rather than the static library. I am using &quot;find_package(ParaView 3.98 REQUIRED
 COMPONENTS vtkCoProcessorImplementation PhastaAdaptor)&quot; followed by &quot;target_link_libraries(phastaIC.exe vtkCoProcessorImplementation PhastaAdaptor)&quot; in CMakeLists.txt file. What else should I do or correct to make the linker to link to libPhastaAdaptor.a (as
 it did for other coprocessing-related static libs) rather than link to shared lib via -lPhastaAdaptor?<br>
<br>
Thanks and best regards,<br>
Hong<u></u><u></u></span></p>
<div>
<div class="MsoNormal" style="text-align:center" align="center"><span style>
<hr align="center" size="2" width="100%">
</span></div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Andy Bauer [<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>]<br>

<b>Sent:</b> Wednesday, August 28, 2013 12:10 PM<br>
<b>To:</b> Hong Yi<br>
<b>Cc:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> Re: [Paraview] cannot find -lvtkPVPythonCatalyst error when doing coprocessing</span><span style><u></u><u></u></span></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style>Hi Hong,<br>
<br>
The Catalyst User&#39;s Guide corresponds to ParaView 4.0 and later. You&#39;re correct that for 3.98 you&#39;ll need to link to one of the CoProcessing libraries. If I recall correctly, you should use:
<u></u><u></u></span></p>
<div>
<pre><span style>TARGET_LINK_LIBRARIES(phastaIC.exe vtkCoProcessorImplementation)<u></u><u></u></span></pre>
</div>
<h2><span style="font-weight:normal">If that doesn&#39;t work, can you email me the list of CoProcessing libraries in your build tree?<br>
<br>
</span><span style><u></u><u></u></span></h2>
</div>
<p class="MsoNormal"><span style>Regards,<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span style>Andy<u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style><u></u> <u></u></span></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span style>On Wed, Aug 28, 2013 at 11:53 AM, Hong Yi &lt;<a href="mailto:hongyi@renci.org" target="_blank">hongyi@renci.org</a>&gt; wrote:<u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">When building our simulation code linked to ParaView 3.98 (built with coprocessing enabled) with CMake, I got the error &quot;cannot find
 -lvtkPVPythonCatalyst&quot; in the final linking stage. I followed Catalyst User Guide to add the following into CMakeLists.txt to handle coprocessing:<br>
<br>
------------------------------------------<br>
...<br>
find_package(ParaView 3.98 REQUIRED COMPONENTS vtkPVPythonCatalyst PhastaAdaptor)<br>
include(&quot;${PARAVIEW_USE_FILE}&quot;)<br>
add_definitions(&quot;-DUSE_CATALYST&quot;)<br>
...<br>
target_link_libraries(phastaIC.exe vtkPVPythonCatalyst PhastaAdaptor)<br>
...<br>
------------------------------------------<br>
<br>
I verified there is no vtkPVPythonCatalyst lib in the ParaView build, although there are a few coprocessing-related libs there in the ParaView build. Should I change vtkPVPythonCatalyst to some coprocessing-related component? If so, which component name should
 I use? I need to use python for pipeline handling and link catalyst to fortran code.
<br>
<br>
Thanks for any tips you can provide!</span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#888888"><br>
<br>
<span>Hong</span></span><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"><u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style><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><u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span style><u></u> <u></u></span></p>
</div>
</div>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>