[Paraview] Errors when using find_package(ParaView REQUIRED)

David E DeMarle dave.demarle at kitware.com
Fri Aug 10 10:40:58 EDT 2012


For the Streaming and Manta plugins I took the approach of having the
VTK and PV level code in sibling directories. The PV level was
processed first and a variable set that changes the VTK level
cmakelists behavior slightly (for example whether to findpackage vtk
or not and whether to include ParaView centric VTK level classes). One
tricky part was getting the ParaView client server wrapper and
instantiators turned on for the VTK level directory. The plugin macros
only take care of that for the ParaView level directory so the VTK
level directory had to be done manually.

Note: The cmake code for those plugins has not yet been updated to
work in VTK6/PV4 but making the VTK level directory a standard module
should simplify things significantly (I hope).

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Fri, Aug 10, 2012 at 9:49 AM, David Doria <daviddoria at gmail.com> wrote:
> On Tue, Dec 13, 2011 at 4:51 PM, David Doria <daviddoria at gmail.com> wrote:
>> On Tue, Dec 13, 2011 at 3:31 PM, Utkarsh Ayachit
>> <utkarsh.ayachit at kitware.com> wrote:
>>> Oh, are you using FIND_PACKAGE(VTK) and FIND_PACKAGE(ParaView) in the
>>> source? Bet that's what causing the problem. I'm not sure that's going
>>> to work. Try just using ParaView OR VTK.
>>
>> That certainly works. The only problem I have with that is I have to do a
>>
>> if(buildPlugin)
>>  use(Paraview)
>> else
>>  use(VTK)
>> endif()
>>
>> in my root CMakeLists.txt. It would seem nicer to do
>>
>> if(buildPlugin)
>>  add_subdirectory(Plugin)
>> endif()
>>
>> and in the Plugin/CMakeLists.txt do
>>
>> use(ParaView)
>>
>> Is there a pattern more similar to this that would only use one of them?
>>
>> Thanks,
>>
>> David
>
> I just ran into this again, and found this old thread. Is there a way
> to find_package(VTK) at the root project level, and then optionally
> find_package(Paraview) in a subdirectory? The idea is a structure like
> this: https://github.com/daviddoria/PointSetSurfaceReconstruction
>
> Thanks,
>
> David
> _______________________________________________
> 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


More information about the ParaView mailing list