[libvoikko] Libreoffice-voikko and 64 bit LibreOffice on OS X

Sjur Moshagen sjurnm at mac.com
Tue Jan 28 08:24:36 EET 2014


27. jan. 2014 kl. 23:40 skrev Sjur Moshagen <sjurnm at mac.com>:

> I also installed the corresponding LibreOffice 4.2 SDK, and tried to compile a new 64 bit oxt, but it failed because of architecture-related linking issues:
> 
> ld: warning: ignoring file /Users/smo036//macosx/lib/libuno_cppuhelpergcc3.dylib, file was built for x86_64 which is not the architecture being linked (i386): /Users/smo036//macosx/lib/libuno_cppuhelpergcc3.dylib
> ld: warning: ignoring file /Users/smo036//macosx/lib/libuno_cppu.dylib, file was built for x86_64 which is not the architecture being linked (i386): /Users/smo036//macosx/lib/libuno_cppu.dylib
> ld: warning: ignoring file /Users/smo036//macosx/lib/libuno_sal.dylib, file was built for x86_64 which is not the architecture being linked (i386): /Users/smo036//macosx/lib/libuno_sal.dylib
> Undefined symbols for architecture i386:
>  "cppu::OWeakObject::queryAdapter()", referenced from:
> 
> All my own libraries are universal binaries (both 32 and 64 bit, Intel), but the 4.2 app and SDK seems to be 64-bit only. I would have expected it to be a universal binary as well, and that the oxt build would produce a universal binary oxt. But it seems not.

It turns out that a i386 build is the default in the SDK, even in the 64-bit SDK distro. But overriding the default is easy:

make oxt GCC_ARCH_OPTION=

This produces a 64 bit dylib in the oxt:

$ file build/oxt/voikko.dylib 
build/oxt/voikko.dylib: Mach-O 64-bit dynamically linked shared library x86_64

Unfortunately, it still doesn’t work. The options pane is just blank.

Sjur



More information about the Libvoikko mailing list