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

List:       lyx-devel
Subject:    Re: [LyX/master] Allow compiling with Qt6
From:       Scott Kostyshak <skostysh () lyx ! org>
Date:       2021-03-16 17:48:43
Message-ID: 20210316174843.mysoids5ycpf473e () tallinn
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Tue, Mar 16, 2021 at 10:44:13AM +0100, Enrico Forestieri wrote:
> On Mon, Mar 15, 2021 at 10:52:19PM -0400, Scott Kostyshak wrote:
> > 
> > Are there still QRegExp that need to be changed? I got an error from
> > src/support/qstring_helpers.cpp.
> 
> I actually don't know. Let me explain. There should be a compatibility
> layer for using Qt5 constructs, so I didn't search for all occurrences
> of QRegExp's but only changed the places where I was getting compiling
> errors. The code in qstring_helpers.cpp compiled without issues for me
> on both Linux and Windows, and thus I did not touch it.

I see. I think I might be missing the compatibility layer module. When
installing Qt, I just chose the default Qt 6.0.2 but perhaps I need to
customize the installation to include the Qt5 compatibility module.

> What kind of error are you getting?

  CXX      qstring_helpers.o
qstring_helpers.cpp:21:10: fatal error: QRegExp: No such file or directory
   21 | #include <QRegExp>
      |          ^~~~~~~~~
compilation terminated.
make[5]: *** [Makefile:985: qstring_helpers.o] Error 1
make[5]: Leaving directory '/home/vbox/lyxbuilds/qttest/repo/src/support'
make[4]: *** [Makefile:831: all] Error 2
make[4]: Leaving directory '/home/vbox/lyxbuilds/qttest/repo/src/support'
make[3]: *** [Makefile:2588: all-recursive] Error 1
make[3]: Leaving directory '/home/vbox/lyxbuilds/qttest/repo/src'
make[2]: *** [Makefile:1685: all] Error 2
make[2]: Leaving directory '/home/vbox/lyxbuilds/qttest/repo/src'
make[1]: *** [Makefile:578: all-recursive] Error 1
make[1]: Leaving directory '/home/vbox/lyxbuilds/qttest/repo'
make: *** [Makefile:473: all] Error 2
"make" 285L, 54182C                                                                   \
285,3         Bot
> 
> > Also, why use
> > 
> > #include <QtCore5Compat/QRegExp>
> > 
> > in CategorizedCombo.cpp, but not other places?
> 
> Because it was the only place where I had to explicitly include it.

OK.

By the way, thanks for your work on this.

Scott


["signature.asc" (application/pgp-signature)]

-- 
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