[ITK] [ITK-users] HDF5 problem when compile ITK 4.11.0

Matt McCormick matt.mccormick at kitware.com
Wed May 10 09:21:07 EDT 2017


Hi,

To address the -fPIC error, add -fPIC to CMAKE_C_FLAGS and
CMAKE_CXX_FLAGS. Or, set BUILD_SHARED_LIBS to ON.

For building on RHEL 6, ITK 4.11.1 or ITK 4.12RC is adviced due to
fixes for the gold linker.

HTH,
Matt

On Wed, May 10, 2017 at 7:58 AM, 沈庄明 <zhuangming.shen at sphic.org.cn> wrote:
> Hi all,
>
>
> When I compile ITK 4.11.0 on Rhel 6 using gcc 4.8.5 (ITK_USE_SYSTEM_HDF5 in
> CMake is disable), I encountered a problem (pls see the attached figure).
> Any suggestion? Thanks in advance.
>
>
>
> Regards,
>
>
> Zhuangming Shen
>
>
> _____________________________________
> 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
>
_____________________________________
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