[Insight-developers] OSX
Bill Hoffman
bill . hoffman at kitware . com
Wed, 28 May 2003 14:31:13 -0400
You are still building shared .dylib objects.
I recommend, you remove the entire build tree, or source
tree if you did an in-source build. Then re-run cmake,
and do not turn on BUILD_SHARED. Then it should work.
-Bill
At 02:03 PM 5/28/2003, Yarden Livnat wrote:
>my configuration is the same. I have turned off the sharing. I still get
>
>Building executable
>/Users/yarden/packages/Insight/osx/bin/vnl_basic_operation_timings...
>ld: basic_operation_timings.o illegal reference for -dynamic code
>(section difference reference from section (__TEXT,__eh_frame)
>relocation entry (210) to symbol: vnl_c_vector<double>::mean(double
>const*, unsigned) defined in dylib:
>/Users/yarden/packages/Insight/osx/bin/libitkvnl.dylib)
>make[9]: ***
>[/Users/yarden/packages/Insight/osx/bin/vnl_basic_operation_timings]
>Error 1
>
>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