Build LO for Android on Mac OS 10.8

Stephan Bergmann sbergman at redhat.com
Mon Aug 13 00:12:15 PDT 2012


On 08/13/2012 08:38 AM, James Chen wrote:
>>> ld: warning: ignoring file /opt/local/lib/libiconv.dylib, file was built
>>> for unsupported file forma
>>> ld: warning: ignoring file /opt/local/lib/libz.dylib, file was built for
>>> unsupported file format
>>> ld: in /opt/local/lib/libiconv.2.dylib, file was built for unsupported
>>> file format
>>
>> Hmm, what is this /opt/local/lib? In general the LO build for MacOSX
>> will break if it tries to use some existing add-on builds of common
>> 3rd-party libraries, like MacPorts etc. At least that is what
>> everybody says, I don't have personal experience as I don't have
>> MacPorts... Try to make sure this /opt/local stuff is not found when
>> building LibreOffice, removing /opt/local/bin from PATH (if you have
>> it there) probably helps.
>>
>> --tml
>
> Thanks for pointing out and the hints.
> Removing /opt/local/bin from PATH does not work for me.

Even not with a clean rebuild from scratch afterwards?  I'd assume some 
mis-configuration (likely caused by picking up MacPort's 
/opt/local/bin/pkg-check) was still manifest in your build.

Stephan

> I turn out to reinstall the lib as universal binary via MacPort as others
> suggest to similar issue.
> E.g.: sudo port upgrade --enforce-variants libiconv +universal
>
> I probably should override the linker path to prevent the build to link
> against the MacPort version of libs?
> Anyway, it's on the track now. :P



More information about the LibreOffice mailing list