[Insight-users] Install ITK on mac , HDF5 problem

Saurabh Garg srbh.garg at gmail.com
Mon Jul 2 14:13:05 EDT 2012


Hi Jana,

I am not sure but since you have problem in itkhdf5, try changing the
options in that first. You can start by changing CMakeLists.txt file at the
following location:
Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeLists.txt (around line 264)

What is BUILD_STATIC_EXECS option set as, in your itkhdf5 compilation?

You can try setting explicitly this to OFF (around line 266), something like
SET (BUILD_STATIC_EXECS OFF) or
try commenting out the following lines (line 268,269)
    SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static")
    SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static")

HTH!
Saurabh

On Mon, Jul 2, 2012 at 2:07 AM, Jana Sefcikova <neollie at gmail.com> wrote:
> Hi Saurabh,
> thank you, I read some threads and It seams MAC does not support static
> linking.
> But what to do with this knowledge ? Should I edit makefiles ? Which ?
>
> Thanks for your response
> Jana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120702/987f3aeb/attachment-0001.htm>


More information about the Insight-users mailing list