Error when compiling with Qt6 on macOS

pdv pdvisschere at edpnet.be
Thu Mar 25 19:27:29 UTC 2021


On 25/03/2021 15:05, pdv wrote:
> On 25/03/2021 11:27, Christoph Schmitz wrote:
>> I have tried to compile LyX with Qt6 on macOS. The compiler stops 
>> quickly after a series of error messages. I attach a complete log file 
>> of my configure and make run.
>>
>> Compiling LyX with Qt5 works with charm (thanks to the help of Marcus 
>> Mikulcak).
>>
>> Chris
>>
>>
> 
> I have build successfully with the latest LyX and with Qt6 and cmake. 
> There are a few issues to take into account:
> 
> 1) there is an incompatibility between the moc_ files generated with qt5 
> and qt6; you must remove these files manually if you switch; a "Clean" 
> within XCode is not enough.
> 
> 2) qtmacextras is not included in qt6 (it's not clear whether it ever 
> will). You must remove 2 steps in the cmake files and the 
> QMacPasteboardMimeGraphics code in GuiApplication.cpp.
> 
> 3) I had to add one #include <QStandardPaths> in support/Package.cpp.
> 
> I believe the qtmacextras is needed for copy/paste (and dragging) .pdf 
> content.
> 
> P. De Visschere
> 

I found this in the qt-wiki:

----
Qt Mac Extras

Not included in Qt 6.0. Will find new home in the more relevant modules 
over time, and the remaining APIs considered included in later 6.x releases.
----

So, some time qt6macextras should be back.



More information about the lyx-devel mailing list