[Paraview-developers] ITK Plugin in paraview - Error

Michal Wozniak michal.wozniak at caboma.com
Mon Mar 26 21:19:13 EDT 2018


Hi,


It's a custom plugin built inside ParaView's plugin folder.


I moved the "IF (ParaView_SOURCE_DIR) ... include vtk..." part before the find_package ITK and it stops causing the problem. It's now building on Linux!


thanks!

Michal





________________________________
From: Mathieu Westphal <mathieu.westphal at kitware.com>
Sent: Sunday, March 25, 2018 9:52 PM
To: Michal Wozniak
Cc: paraview-developers at paraview.org
Subject: Re: [Paraview-developers] ITK Plugin in paraview - Error

Hello

Is this plugin part of a bigger cmake project ?

In any case, look like your should replace

IF (ParaView_SOURCE_DIR)
  INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})
endif()


by

find_package(ParaView REQUIRED)
include(${PARAVIEW_USE_FILE})

You can find some very good example in paraview/Examples/Plugins/

Best regards,


Mathieu Westphal

On Sat, Mar 24, 2018 at 9:03 PM, Michal Wozniak <michal.wozniak at caboma.com<mailto:michal.wozniak at caboma.com>> wrote:

Hi,


I currently I am trying to build a custom plugin that uses ITK on a Debian machine.

During the build I received this error :

ItkTest_Plugin.h:49:10: fatal error: 'vtkPVPlugin.h' file not found


That same plugin is being built successfully on a window machine.  I have joined my plugin CMakeList file to this email.  Is there something specific to add in a Linux build?


thank you

Michal

_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=Paraview-developers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview-developers


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview-developers/attachments/20180327/f31c01b3/attachment-0001.html>


More information about the Paraview-developers mailing list