Qt 6.1 (macOS) broke compiler configuration

Enrico Forestieri forenr at lyx.org
Tue May 11 20:33:23 UTC 2021


On Tue, May 11, 2021 at 11:46:59AM +0200, Christoph Schmitz wrote:
> After updating to Qt 6.1 the .\configure script fails (on both x86 and ARM64 platforms):
> 
> These are the last messages:
> 
> checking for pkg-config... /usr/local/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for qmake-qt6... no
> checking for qmake6... qmake6
> checking for Qt6... yes
> checking for QtGui/qtgui-config.h... yes
> checking for QtGui/private/qtgui-config_p.h... no
> checking whether Qt uses the X Window system... no
> checking for moc... no
> checking for moc-qt6... no
> checking for moc6... no
> checking for moc... no
> configure: error: cannot find moc binary.
> 
> Any recommendation how to tackle this issue?

I've seen them do stupid things in the past, but this is the stupidest.
Apparently they moved away moc, rcc, and uic from the bin dir:
https://code.qt.io/cgit/qt/qtreleasenotes.git/tree/qt/6.1.0/release-note.txt
> c515ee178f Move build tools to libexec instead of the bin dir
> - Tools that are called by the build system and are unlikely to be
> called by the user are now installed to the libexec directory.

You have to find where they put them and add it to the PATH variable.
Then, please, complain loudly with them.

-- 
Enrico


More information about the lyx-devel mailing list