[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-devel
Subject:    Re: [LyX/master] Allow compiling with Qt6
From:       Yu Jin <yu_jin () lyx ! org>
Date:       2021-03-16 21:30:18
Message-ID: CAHyfprQELCTApteK_2zizWh3RqU6ZOLW0PoUmMPXAHr3-SQe7A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Am Di., 16. März 2021 um 19:04 Uhr schrieb Kornel Benko <kornel@lyx.org>:

> Am Tue, 16 Mar 2021 18:21:19 +0100
> schrieb Yu Jin <yu_jin@lyx.org>:
>
> > Am Di., 16. März 2021 um 16:36 Uhr schrieb Kornel Benko <kornel@lyx.org
> >:
> >
> > > Am Tue, 16 Mar 2021 16:32:49 +0100
> > > schrieb Yu Jin <yu_jin@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

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Di., 16. \
März 2021 um 19:04  Uhr schrieb Kornel Benko &lt;<a \
href="mailto:kornel@lyx.org">kornel@lyx.org</a>&gt;:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">Am Tue, 16 Mar 2021 18:21:19 +0100<br> schrieb Yu \
Jin &lt;<a href="mailto:yu_jin@lyx.org" target="_blank">yu_jin@lyx.org</a>&gt;:<br> \
<br> &gt; Am Di., 16. März 2021 um 16:36 Uhr schrieb Kornel Benko &lt;<a \
href="mailto:kornel@lyx.org" target="_blank">kornel@lyx.org</a>&gt;:<br> &gt; <br>
&gt; &gt; Am Tue, 16 Mar 2021 16:32:49 +0100<br>
&gt; &gt; schrieb Yu Jin &lt;<a href="mailto:yu_jin@lyx.org" \
target="_blank">yu_jin@lyx.org</a>&gt;:<br> &gt; &gt;<br>
&gt; &gt; &gt; Just seen this one and wanted to try it out obviously :)<br>
&gt; &gt; &gt; But it doesn&#39;t work for me on Windows. Using CMake GUI I notice \
that the<br> &gt; &gt; &gt; dropdown menu LYX_USE_QT does not contain QT6, just QT5, \
QT4 and AUTO as<br> &gt; &gt; &gt; before. When I choose AUTO it fails with:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; CMake Error at development/cmake/modules/FindQt4.cmake:568 \
(message):<br> &gt; &gt; &gt;     Could NOT find QtCore.   Check<br>
&gt; &gt; &gt;     C:/lyx/masterbuild64Qt6/CMakeFiles/CMakeError.log for more \
details.<br> &gt; &gt; &gt; Call Stack (most recent call first):<br>
&gt; &gt; &gt;     CMakeLists.txt:804 (find_package)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; It does find some QT6 stuff correctly though, like QT_PLUGINS_DIR, \
but<br> &gt; &gt; not<br>
&gt; &gt; &gt; everything, like QtCore.<br>
&gt; &gt;<br>
&gt; &gt; I have a patch ready, but cannot test.<br>
&gt; &gt;<br>
&gt; <br>
&gt; Care to share it? I can test.<br>
<br>
Attached.<br></blockquote><div><br></div><div>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:</div><div><br></div><div>CMake Error at \
CMakeLists.txt:786 (find_package):<br>   Could not find a package configuration file \
provided by &quot;Qt6Core&quot; with any<br>   of the following names:<br><br>      \
Qt6CoreConfig.cmake<br>      qt6core-config.cmake<br><br>   Add the installation \
prefix of &quot;Qt6Core&quot; to CMAKE_PREFIX_PATH or set<br>   \
&quot;Qt6Core_DIR&quot; to a directory containing one of the above files.   If<br>   \
&quot;Qt6Core&quot; provides a separate development package or SDK, be sure it \
has<br>   been installed.</div><div><br></div><div>Then I choose Qt6Core_DIR manually \
and then it fails again with basically the same error but this time it&#39;s \
Qt6CoreToolsConfig.cmake. Also setting that one manually fails with \
Qt6WidgetsConfig.cmake, (did not try past that one).<br clear="all"></div></div>-- \
<br><div dir="ltr" class="gmail_signature"><div dir="ltr">       \
Eugene<br></div></div></div>



-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic