After having been away for a couple weeks, I now find that tex2lyx
does not compile for me on Mac OS X. I get:
/bin/sh ../../libtool --tag=CXX --mode=link g++-4 -g -Os -framework
Carbon -framework OpenGL -framework AGL -framework QuickTime -lz -o
tex2lyx FloatList.o Floating.o counters.o lyxlayout.o lyxtextclass.o
lyxlex.o lyxlex_pimpl.o boost.o context.o gettext.o lengthcommon.o
lyxfont.o texparser.o tex2lyx.o preamble.o math.o table.o
text.o ../../src/support/libsupport.la ../../boost/libs/regex/src/
libboost_regex.la ../../boost/libs/filesystem/src/
libboost_filesystem.la ../../boost/libs/iostreams/src/
libboost_iostreams.la -lz
g++-4 -g -Os -framework Carbon -framework OpenGL -framework AGL -
framework QuickTime -o tex2lyx FloatList.o Floating.o counters.o
lyxlayout.o lyxtextclass.o lyxlex.o lyxlex_pimpl.o boost.o context.o
gettext.o lengthcommon.o lyxfont.o texparser.o tex2lyx.o preamble.o
math.o table.o text.o -Wl,-bind_at_load ../../src/support/.libs/
libsupport.a ../../boost/libs/regex/src/.libs/libboost_regex.a ../../
boost/libs/filesystem/src/.libs/libboost_filesystem.a ../../boost/
libs/iostreams/src/.libs/libboost_iostreams.a -lz
/sw/lib/odcctools/bin/ld: Undefined symbols:
_libiconv
_libiconv_close
_libiconv_open
collect2: ld returned 1 exit status
make[1]: *** [tex2lyx] Error 1
make: *** [all] Error 2
Looking in tex2lyx's Makefile, I see:
LDFLAGS = -framework Carbon -framework OpenGL -framework AGL -
framework QuickTime -lz
LIBICONV = -liconv
If I add "-liconv" to the LDFLAGS line, everything works. Do I now
need to set LDFLAGS explicitly to include iconv at configure time, or
shouldn't that be necessary?
Thanks.
Bennett