[LyX/master] Allow compiling with Qt6
Yu Jin
yu_jin at lyx.org
Tue Mar 16 21:30:18 UTC 2021
Am Di., 16. März 2021 um 19:04 Uhr schrieb Kornel Benko <kornel at lyx.org>:
> Am Tue, 16 Mar 2021 18:21:19 +0100
> schrieb Yu Jin <yu_jin at lyx.org>:
>
> > Am Di., 16. März 2021 um 16:36 Uhr schrieb Kornel Benko <kornel at lyx.org
> >:
> >
> > > Am Tue, 16 Mar 2021 16:32:49 +0100
> > > schrieb Yu Jin <yu_jin at lyx.org>:
> > >
> > > > Just seen this one and wanted to try it out obviously :)
> > > > But it doesn't work for me on Windows. Using CMake GUI I notice that
> the
> > > > dropdown menu LYX_USE_QT does not contain QT6, just QT5, QT4 and
> AUTO as
> > > > before. When I choose AUTO it fails with:
> > > >
> > > > CMake Error at development/cmake/modules/FindQt4.cmake:568 (message):
> > > > Could NOT find QtCore. Check
> > > > C:/lyx/masterbuild64Qt6/CMakeFiles/CMakeError.log for more details.
> > > > Call Stack (most recent call first):
> > > > CMakeLists.txt:804 (find_package)
> > > >
> > > > It does find some QT6 stuff correctly though, like QT_PLUGINS_DIR,
> but
> > > not
> > > > everything, like QtCore.
> > >
> > > I have a patch ready, but cannot test.
> > >
> >
> > Care to share it? I can test.
>
> Attached.
>
Still seems to be missing something. When I try to configure the same way
as with Qt5 (navigate to the Qt dir at CMAKE_PREFIX_PATH), it fails with
this error:
CMake Error at CMakeLists.txt:786 (find_package):
Could not find a package configuration file provided by "Qt6Core" with any
of the following names:
Qt6CoreConfig.cmake
qt6core-config.cmake
Add the installation prefix of "Qt6Core" to CMAKE_PREFIX_PATH or set
"Qt6Core_DIR" to a directory containing one of the above files. If
"Qt6Core" provides a separate development package or SDK, be sure it has
been installed.
Then I choose Qt6Core_DIR manually and then it fails again with basically
the same error but this time it's Qt6CoreToolsConfig.cmake. Also setting
that one manually fails with Qt6WidgetsConfig.cmake, (did not try past that
one).
--
Eugene
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210316/5a9bca6d/attachment.html>
More information about the lyx-devel
mailing list