LyX can no longer be compiled under macOS Sonoma 14.0 and Qt 6.5

Christoph Schmitz chr.schmitz at web.de
Wed Oct 4 16:18:27 UTC 2023


Enrico, got it! Many thanks!

I have downloaded the updated toolchain.prf file from the link you provided and I replaced the corresponding file in the following folder:

/usr/local/Cellar/qt/6.5.1_3/share/qt/mkspecs/features

After this change, the configure script ran without errors and I could compile LyX. However, make now gives the following error message:

...
  AR       liblyxcore.a
  AR       liblyxmathed.a
  AR       liblyxgraphics.a
  AR       liblyxinsets.a
  CXXLD    lyx
ld: Undefined symbols:
  _iconv, referenced from:
      (anonymous namespace)::iconv_codecvt_facet::do_out(__mbstate_t&, wchar_t const*, wchar_t const*, wchar_t const*&, char*, char*, char*&) const in liblyxsupport.a[8](docstream.o)
      (anonymous namespace)::iconv_codecvt_facet::do_in(__mbstate_t&, char const*, char const*, char const*&, wchar_t*, wchar_t*, wchar_t*&) const in liblyxsupport.a[8](docstream.o)
      lyx::IconvProcessor::convert(char const*, unsigned long, char*, unsigned long) in liblyxsupport.a[34](unicode.o)
      lyx::IconvProcessor::convert(char const*, unsigned long, char*, unsigned long) in liblyxsupport.a[34](unicode.o)
  _iconv_close, referenced from:
      (anonymous namespace)::iconv_codecvt_facet::~iconv_codecvt_facet() in liblyxsupport.a[8](docstream.o)
      (anonymous namespace)::iconv_codecvt_facet::~iconv_codecvt_facet() in liblyxsupport.a[8](docstream.o)
      lyx::IconvProcessor::Handler::~Handler() in liblyxsupport.a[34](unicode.o)
  _iconv_open, referenced from:
      (anonymous namespace)::iconv_codecvt_facet::iconv_codecvt_facet(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, unsigned int, unsigned long) in liblyxsupport.a[8](docstream.o)
      (anonymous namespace)::iconv_codecvt_facet::iconv_codecvt_facet(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, unsigned int, unsigned long) in liblyxsupport.a[8](docstream.o)
      lyx::IconvProcessor::init() in liblyxsupport.a[34](unicode.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
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

I have already deleted the local LyX repository and started again from scratch. The same problem.

Chris


> Am 04.10.2023 um 17:29 schrieb Enrico Forestieri <forenr at lyx.org>:
> 
> On Wed, Oct 04, 2023 at 05:13:10PM +0200, Christoph Schmitz wrote:
>> Enrico, I don't understand what to change.
>> 
>> This is the current contents of toolchain.prf:
>> 
>> ```
>> # Ensure that we process sdk.prf first, as it will update QMAKE_CXX,
>> # which the default path determination uses.
>> sdk: load(sdk)
>> 
>> load(toolchain)
>> ```
> 
> (Chris, please, let's keep the discussion on the list because this may be useful to others)
> 
> Pay attention that you are looking at
> "mkspecs/features/mac/toolchain.prf" but should instead edit
> "mkspecs/features/toolchain.prf".
> 
> If you click on the toolchain.prf link (down the page, on the left) at https://codereview.qt-project.org/c/qt/qtbase/+/503172
> you will arrive at:
> https://codereview.qt-project.org/c/qt/qtbase/+/503172/3/mkspecs/features/toolchain.prf
> 
> You have to change all the reddish lines on the left with the greenish lines on the right and then save the file.
> 
> -- 
> Enrico



More information about the lyx-devel mailing list