[Insight-developers] OSX

Yarden Livnat yarden at cs . utah . edu
Tue, 27 May 2003 21:33:45 -0600


Luis,

when I ran ccmake the BUILD_SHARED_LIBS is ON.
I'll turn it off and try again.

	Yarden

On Tuesday, May 27, 2003, at 09:28  PM, Luis Ibanez wrote:

> Hi Yarden,
>
> When you run CMake, do you see a variable:
>
>          BUILD_SHARED  ?
>
> If there is one, please make sure that it is OFF.
>
> This may or may not be related to the problem
> you reported,... but it is quite easy to verify.
>
> Please let me know what you find.
>
>
> Thanks
>
>
>    Luis
>
>
>
> ------------------------
> Yarden Livnat wrote:
>> Luis,
>> what do you mean by "enabling Sharing" ?
>>     Yarden
>> On Tuesday, May 27, 2003, at 08:27  PM, Luis Ibanez wrote:
>>>
>>> Hi Yarden,
>>>
>>> There is a nightly build on Mac and it doesn't seem to
>>> be reporting any compilation problem.
>>>
>>> This is
>>>
>>>              G4Cube.SINTEF
>>>
>>> The operating system in this machine is updated very often.
>>> you may want to compare your configuration  to theirs
>>>
>>> http://www . itk . org/Testing/Sites/G4Cube . SINTEF/Darwin-6 . 6-c++/ 
>>> 20030527-0500-Nightly/Configure.html
>>>
>>>
>>> One configuration aspect that is tricky in the mac is the
>>> use of shared libraries. Are you enabling Sharing ?
>>>
>>>
>>>
>>>    Luis
>>>
>>>
>>> ---------------------------------
>>> Yarden Livnat wrote:
>>>
>>>> Greetings,
>>>> I had a working version (a few months ago) of ITK on Mac OSX.
>>>> Today I tried to compile a fresh checkout but  it died on:
>>>> [...deleted...]
>>>> Building object file dtrmv.o...
>>>> Building object file dtrsv.o...
>>>> Building object file i_dnnt.o...
>>>> Building shared library  
>>>> /Users/yarden/packages/Insight/osx/bin/libitknetlib.dylib...
>>>> ld: common symbols not allowed with MH_DYLIB output format with the 
>>>>  -multi_module option
>>>> rpoly.o definition of common _global_ (size 4232)
>>>> /usr/bin/libtool: internal link edit command failed
>>>> make[7]: ***  
>>>> [/Users/yarden/packages/Insight/osx/bin/libitknetlib.dylib] Error 1
>>>> make[6]: *** [default_target] Error 2
>>>> make[5]: *** [default_target_v3p_netlib] Error 2
>>>> make[4]: *** [default_target] Error 2
>>>> make[3]: *** [default_target_vxl] Error 2
>>>> make[2]: *** [default_target] Error 2
>>>> make[1]: *** [default_target_Utilities] Error 2
>>>> make: *** [default_target] Error 2
>>>> the reason is that Utilities/vxl/v3p/netlib/rpoly.c is created by 
>>>> f2c  which in
>>>> turn declare a global section. This is not allowed under BSD for  
>>>> shared
>>>> libraries (DYLIB).
>>>> is there a solution for this ? does anyone have a working version 
>>>> of  ITK ?
>>>> I don't recall if this was a problem last time I tried to compile 
>>>> ITK  on OSX.
>>>> thanks,
>>>>     Yarden
>>>> _______________________________________________
>>>> Insight-developers mailing list
>>>> Insight-developers at public . kitware . com
>>>> http://public . kitware . com/mailman/listinfo/insight-developers
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Insight-developers mailing list
>>> Insight-developers at public . kitware . com
>>> http://public . kitware . com/mailman/listinfo/insight-developers
>>>
>
>
>