Am 07.06.2012 um 11:05 schrieb Vincent van Ravesteijn: > Op 7-6-2012 4:41, Jerry schreef: >> With help from Benjamin on this list and Ryan from the Macports list, I >> discovered that I need to include >> "-liconv" in the LDFLAGS variable. That fixed the problem. >> >> Jerry > > Shouldn't this option be set by default ?
libiconv is requested only when --with-included-gettext is not active. When libiconv is needed the linker is searching automatically in /usr/lib. So this option is not really needed. But I guess there is some serious conflict. The requirement to use -liconv is only one effect. I build LyX on Mac with the shared libraries (frameworks) the os provides. And I use Qt frameworks from private builds or from official Nokia downloads. But there is a complete set of libraries (including iconv) in /opt/local/lib from macports when macports is installed. These libs are not 100% compatible with the system libs. $ ls /usr/lib/*iconv* /usr/lib/libiconv.2.4.0.dylib /usr/lib/libiconv.2.dylib /usr/lib/libiconv.dylib $ ls /usr/lib/*libz* /usr/lib/libz.1.1.3.dylib /usr/lib/libz.1.2.3.dylib /usr/lib/libz.1.dylib /usr/lib/libz.dylib $ ls /opt/local/lib/*iconv* /opt/local/lib/libiconv.2.dylib /opt/local/lib/libiconv.a /opt/local/lib/libiconv.dylib /opt/local/lib/libiconv.la $ ls /opt/local/lib/*libz* /opt/local/lib/libz.1.2.7.dylib /opt/local/lib/libz.1.dylib /opt/local/lib/libz.a /opt/local/lib/libz.dylib When using a library from /opt/local/lib, e.g. QtCore, you are forced to use the libs used when building QtCore. If QtCore was build with libiconv from /opt/local/bin you have to use this one when linking LyX. But the linker does the implicit lookup only for libraries in /usr/lib. BTW, the resulting LyX (using macports) does not work on a system without macports. Stephan