[ITK] [ITK-users] HDF5 problem when compile ITK 4.11.0
沈庄明
zhuangming.shen at sphic.org.cn
Thu May 11 05:00:46 EDT 2017
Hi Matt,
I have found the reason. This is because the compiler in CMAKE is set to original gcc/g++, not gcc/g++ 4.8.5. Thanks for your suggestion.
Regards,
Zhuangming Shen
________________________________________
From: Matt McCormick <matt.mccormick at kitware.com>
Sent: Wednesday, May 10, 2017 9:21 PM
To: 沈庄明
Cc: insight-users at itk.org
Subject: Re: [ITK-users] HDF5 problem when compile ITK 4.11.0
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