usr/local/lib/libhfstospell.1.dylib (for architecture i386): Mach-O dynamically linked shared library i386 usr/local/lib/libhfstospell.1.dylib: Mach-O universal binary with 2 architectures $ file /usr/local/lib/libhfstospell.1.dylib Then, for each library in that list, use the following command: $ otool -L /usr/local/lib/libhfstospell.1.dylib To check that they really are universal, first get a list of which installed libraries hfst-ospell is dependent on: Check the architecture of the installed libraries This does of course require that tinyxml2 has been built and installed first. configure -enable-zhfst -enable-xml=tinyxml2 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/. Update: The first step is now done (as of hfst svn r3625), and is enabled by configuring hfst-ospell as follows: This should make compilation of hfst-ospell for linking into Voikko much easier. Hfst-ospell will in the near future be rewritten to not rely this long list of dependencies, mainly by replacing libxml++2 with a selfcontained library (e.g. The only way to tell is to see what the linker complains about, and then build the missing libraries. Depending on how backwards compatible we want to be (or not), dropping PPC for the LO Voikko plugin can also be considered.įor hfst-ospell the required dependencies mean the following libraries (some of these might be on your system already, just check that they are universal binaries):ĭepending on OS version and LibreOffice versions, the list might be longer. NB2! As of LibreOffice 4.1, support for PPC on the Mac has been dropped. The easiest solution is to install everything using MacPorts with the +universal flag. Also, presently the MacOSX builds of LibreOffice (and OpenOffice) are 32-bit only, thus all libraries need to be available for that architecture. To ensure that the Voikko plugin with hfst support actually runs on those systems, it should probably be built on such a system (assuming that the compiled plugin is more likely forward compatible than backwards compatible). NB! LibreOffice 4 still supports MacOSX on PPC all the way back to Tiger. (see for more details, including how to add more architectures for the universal build.) Or make the +universal variant default by adding it to the file: Please update the document as necessary when building the extension again.įirst, ensure that you have universal binaries of the things that both hfst-ospell and libvoikko depends on by specifying the +universal option in MacPorts. NB! This documentation is likely outdated, and should be taken as a guide to new efforts only.
0 Comments
Leave a Reply. |