Hi, Could you run:
find /usr/lib64/qt6 -name “moc” find /usr/lib64 -name “*Qt6Widgets*" And perhaps we can trace why “moc" isn’t showing up. Thanks, Dan > On Aug 5, 2026, at 2:11 PM, Andreas Mantke <[email protected]> wrote: > > Hi all, > I try to build LibreOffice from master with Qt6. I ran ./autogen.sh > ---enable-qt6 and fixed the missing headers. I got the following messages in > the shell: > > checking for qmake... /usr/lib64/qt6/bin/qmake > configure: Detected Qt6 version: 6.9.1 > Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not > UTF-8. > Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. > If this causes problems, reconfigure your locale. See the locale(1) manual > for more information. > Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not > UTF-8. > Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. > If this causes problems, reconfigure your locale. See the locale(1) manual > for more information. > Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not > UTF-8. > Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. > If this causes problems, reconfigure your locale. See the locale(1) manual > for more information. > checking for Qt6 headers... /usr/include/qt6 > checking for QtCore/qconfig.h... yes > checking for Qt6 libraries... /usr/lib64 > checking for xcb... yes > checking for moc-qt6... no > checking for moc... no > configure: error: Qt Meta Object Compiler not found. Please specify > the root of your Qt installation by exporting QT6DIR before running > "configure". > Error running configure at ./autogen.sh line 338. > I set the QT6DIR with: > export QT6DIR=/usr/lib64/qt6 > > And after that I ran ./configure and started a rebuild with 'make'. > This made a quick rebuild of LibreOffice, which I started from the > installdir. I called the about dialog then and I got the info that it was > build using gtk. > It looks as if there is something missing in the configuration or from the > installed packages. > Thanks for any hints in advance. > Regards, > Andreas > -- > ## Free Software Advocate > ## Free Office Suite - LibreOffice https://libreOffice.org > ## My blog: https://www.amantke.de/blog >
