[ITK-users] [Paraview] compile itk (VTKGlue ON) with vtk from paraview

Dr. Roman Grothausmann grothausmann.roman at mh-hannover.de
Mon Jan 26 04:02:20 EST 2015


Hi Matt,


Thank You very much for Your reply.
I can only find one VTKTargets.cmake in /opt/compilation/paraview-git_build/VTK/
It seems though that it is lacking the relevant entries for the libraries that 
troubled me, e.g. vtkPVPythonCatalyst and vtkUtilitiesPythonInitializer.

I'm about to publish the ITK-VTK PV plugin in the Midas Journal, what 
installation instructions should I give there?
Will the testing environment be able to compile this plugin and its tests or 
should I disable automatic testing for this contribution?

Many thanks for looking into this.
Roman

On 23/01/15 18:15, Matt McCormick wrote:
> Hi Roman,
>
> Thanks for looking into the issue and reporting it to the mailing list.
>
> Paraview should be installing VTKTargets.cmake, which tells the build
> system where to find the libraries.  Note that there might be two
> VTKTargets.cmake files that are generated -- one for the build tree
> and one for the install tree.
>
> HTH,
> Matt
>
> On Fri, Jan 23, 2015 at 4:20 AM, Dr. Roman Grothausmann
> <grothausmann.roman at mh-hannover.de> wrote:
>>
>> On 22/01/15 11:21, Dr. Roman Grothausmann wrote:
>>>
>>> Adding the abs. file locations to the build command does not help nor does
>>> -L/opt/paraview-4.3.1_git/lib/paraview-4.3/
>>
>>
>> I figured that the vtk dynamic libraries of PV have the ending *-pv4.3.so
>> which seems to be the reason why the linker does not find them. If I create
>> symbolic links to these files without the extension:
>>
>> cd /opt/compilation/paraview-git_build/lib/
>> for i in *-pv*.so; do ln -s $i ${i%-pv*}.so; done
>>
>> and adding -L/opt/compilation/paraview-git_build/lib/ to CMAKE_CXX_FLAGS
>> the compilation of ITK succeeds.
>>
>> I wonder, is that the way it's meant to be done?
>>
>>
>>
>>> What am I missing in my configuration of PV and ITK?
>>>
>>> When and where should I specify:
>>> CMAKE_CXX_FLAGS                  -fPIC
>>> BUILD_SHARED_LIBS                ON/OFF
>>>
>>> Is this the right VTK_DIR specification for ITK:
>>> /opt/compilation/ParaView-v4.3.1/build/VTK
>>> or
>>> /opt/paraview-4.3.1_git/lib/cmake/paraview-4.3
>>>
>>>
>>>
>>> Many thanks for any help or hints.
>>> Roman
>>>
>>>
>>
>> --
>> Dr. Roman Grothausmann
>>
>> Tomographie und Digitale Bildverarbeitung
>> Tomography and Digital Image Analysis
>>
>> Institut für Funktionelle und Angewandte Anatomie, OE 4120
>> Medizinische Hochschule Hannover
>> Carl-Neuberg-Str. 1
>> D-30625 Hannover
>>
>> Tel. +49 511 532-9574
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.php
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/insight-users

-- 
Dr. Roman Grothausmann

Tomographie und Digitale Bildverarbeitung
Tomography and Digital Image Analysis

Institut für Funktionelle und Angewandte Anatomie, OE 4120
Medizinische Hochschule Hannover
Carl-Neuberg-Str. 1
D-30625 Hannover

Tel. +49 511 532-9574


More information about the Insight-users mailing list