[ITK] [ITK-users] [Paraview] compile itk (VTKGlue ON) with vtk from paraview
Dr. Roman Grothausmann
grothausmann.roman at mh-hannover.de
Fri Jan 23 04:20:29 EST 2015
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
More information about the Community
mailing list