[Paraview] cannot find -lvtkPVPythonCatalyst error when doing coprocessing

Andy Bauer andy.bauer at kitware.com
Thu Aug 29 09:56:05 EDT 2013


Hi Hong,

I'm glad to hear it's working. I'm not sure what the problem was.

Andy


On Wed, Aug 28, 2013 at 3:30 PM, Hong Yi <hongyi at renci.org> wrote:

>  Hi Andy,****
>
> ** **
>
> 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.
> ****
>
> ** **
>
> Thanks,****
>
> Hong****
>
> ** **
>
> *From:* paraview-bounces at paraview.org [mailto:
> paraview-bounces at paraview.org] *On Behalf Of *Hong Yi
> *Sent:* Wednesday, August 28, 2013 12:44 PM
> *To:* Andy Bauer
>
> *Cc:* paraview at paraview.org
> *Subject:* Re: [Paraview] cannot find -lvtkPVPythonCatalyst error when
> doing coprocessing****
>
>  ** **
>
> Hi Andy,
>
> 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:
> ----------------
> libvtkCoProcessorCS-pv3.98.a
> libvtkCoProcessorPython27D-pv3.98.a
> libvtkCoProcessorImplementation-pv3.98.a
> libvtkCoProcessorPython-pv3.98.a
> libvtkCoProcessor-pv3.98.a
> ----------------
>
> On a related question, now I am getting error "cannot find
> -lPhastaAdaptor" 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 "find_package(ParaView 3.98 REQUIRED COMPONENTS
> vtkCoProcessorImplementation PhastaAdaptor)" followed by
> "target_link_libraries(phastaIC.exe vtkCoProcessorImplementation
> PhastaAdaptor)" 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?
>
> Thanks and best regards,
> Hong****
>  ------------------------------
>
> *From:* Andy Bauer [andy.bauer at kitware.com]
> *Sent:* Wednesday, August 28, 2013 12:10 PM
> *To:* Hong Yi
> *Cc:* paraview at paraview.org
> *Subject:* Re: [Paraview] cannot find -lvtkPVPythonCatalyst error when
> doing coprocessing****
>
> Hi Hong,
>
> The Catalyst User's Guide corresponds to ParaView 4.0 and later. You're
> correct that for 3.98 you'll need to link to one of the CoProcessing
> libraries. If I recall correctly, you should use: ****
>
> TARGET_LINK_LIBRARIES(phastaIC.exe vtkCoProcessorImplementation)****
>
>  If that doesn't work, can you email me the list of CoProcessing
> libraries in your build tree?
>
> ****
>
> Regards,****
>
> Andy****
>
> ** **
>
> ** **
>
> On Wed, Aug 28, 2013 at 11:53 AM, Hong Yi <hongyi at renci.org> wrote:****
>
> When building our simulation code linked to ParaView 3.98 (built with
> coprocessing enabled) with CMake, I got the error "cannot find
> -lvtkPVPythonCatalyst" in the final linking stage. I followed Catalyst User
> Guide to add the following into CMakeLists.txt to handle coprocessing:
>
> ------------------------------------------
> ...
> find_package(ParaView 3.98 REQUIRED COMPONENTS vtkPVPythonCatalyst
> PhastaAdaptor)
> include("${PARAVIEW_USE_FILE}")
> add_definitions("-DUSE_CATALYST")
> ...
> target_link_libraries(phastaIC.exe vtkPVPythonCatalyst PhastaAdaptor)
> ...
> ------------------------------------------
>
> 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.
>
> Thanks for any tips you can provide!
>
> Hong****
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview****
>
> ** **
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130829/730b77ed/attachment.htm>


More information about the ParaView mailing list