On Sep 8, 2004, at 11:00 AM, Bennett Helm wrote:
Apple doesn't seem to include libintl with 10.3.x. You can get the library from fink or as part of the GNU gettext suite, but if you build LyX and the lyxclient for binary distribution you probably want to use a static link for libintl, as users are likely to not have it or to have it unpredictably in /sw/lib or /usr/local/lib. There may also be some conflicts between functions in libintl and those in some of the standard OSX frameworks.
I've already got libintl.1.0.1 (via gettext) installed (via fink), and I've used "--with-included-gettext" in configuring LyX. ... Is there anything more I need to do here?
The "--with-included-gettext" should take care of LyX. From the earlier notes in this thread, building libclient requires some libintl functions. So you probably need to add -lintl to the link commands and may need a -L /sw/lib for the linker to find the library in your fink installation. If you distribute a binary of that lyxclient, it will search for the shared libintl.1.0.1 where it is installed on your machine, and since many users either do not have libintl installed or may have it in a different location such as /usr/local/lib, the binary will fail to run.
When building a binary for distribution I would change the link commands in the make file to load the functions from libintl statically. You can check this on OSX with `otool -L lyxclient' which will show you which shared libraries (frameworks in Mac-talk) the binary uses.
--
Ronald