On Jun 4, 2012, at 5:10 AM, Vincent van Ravesteijn wrote:

> Op 4-6-2012 14:05, Jerry schreef:
>> I'm trying to build the 2.1 development branch on OS X and having some 
>> trouble. After
>> 
>>   git clone git://git.lyx.org/lyx
>>   ./autogen.sh
>>   ./configure
>>   make
>> 
>> this happened and I don't understand why:
>> 
>> 
>> <snip>
>>   CXX      Dimension.o
>>   CXX      PrinterParams.o
>>   CXX      Thesaurus.o
>>   CXXLD    lyx
>> Undefined symbols for architecture x86_64:
>>   "_iconv_open", referenced from:
>>       __nl_find_msg in libintl.a(dcigettext.o)
>>   "_iconv", referenced from:
>>       __nl_find_msg in libintl.a(dcigettext.o)
>>      (maybe you meant: lyx::from_iconv_encoding(std::basic_string<char, 
>> std::char_traits<char>, std::allocator<char>  >  const&, 
>> std::basic_string<char, std::char_traits<char>, std::allocator<char>  >  
>> const&), lyx::to_iconv_encoding(std::basic_string<wchar_t, 
>> std::char_traits<wchar_t>, std::allocator<wchar_t>  >  const&, 
>> std::basic_string<char, std::char_traits<char>, std::allocator<char>  >  
>> const&))
>> ld: symbol(s) not found for architecture x86_64
>> collect2: ld returned 1 exit status
>> make[4]: *** [lyx] Error 1
>> make[3]: *** [all-recursive] Error 1
>> make[2]: *** [all] Error 2
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>> MBPro:lyx jb$
>> 
> 
> Looks like the linker can't find libiconv which is needed by libintl 
> (gettext).
> 
> Vincent

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

Reply via email to