[Development] Qt 6 co-installability with Qt 5

Lars Knoll lars.knoll at qt.io
Mon Nov 2 14:07:35 CET 2020


I honestly don't think renaming all our binaries is an option, certainly not that late in the process. We’ve had Qt 4 and Qt 5 co-installed for a long time as well and while that might not be perfect it was working.

And qtchooser has been working nicely for me (Ubuntu at least uses it).

Cheers,
Lars

> On 1 Nov 2020, at 17:50, Thiago Macieira <thiago.macieira at intel.com> wrote:
> 
> On Saturday, 31 October 2020 17:23:54 PST Kevin Kofler via Development wrote:
>> Third-party build systems need to call moc and uic directly, and it makes
>> life much easier for them if they do not have to first query qmake-qt6,
>> cmake, pkg-config or whatever to know where to find the correct version of
>> those binaries, but can just directly invoke moc-qt6 and get what they need.
> 
> I agree with the sentiment, but I think it's totally reasonable to query pkg-
> config if we think it's the way to go.
> 
> $ qt installed                                                             
> Using Qt version: installed
> 
> $ file `pkg-config --variable=host_bins $QTLIBDIR/pkgconfig/Qt5Core.pc`/moc
> /home/tjmaciei/obj/qt/installed/bin/moc: ELF 64-bit LSB executable, x86-64, 
> version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-
> x86-64.so.2, BuildID[sha1]=38614abe6965e5ddd6c2760ab30e89f9939f2a43, for GNU/
> Linux 3.2.0, stripped
> 
> $ qt 5 
> Using Qt version: 5
> 
> $ file `pkg-config --variable=host_bins $QTLIBDIR/pkgconfig/Qt5Core.pc`/moc
> /home/tjmaciei/obj/qt/qt5/qtbase/bin/moc: ELF 64-bit LSB executable, x86-64, 
> version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-
> x86-64.so.2, BuildID[sha1]=5d99e80a10db2b867987482a86b23390892da194, for GNU/
> Linux 3.2.0, with debug_info, not stripped
> 
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel DPG Cloud Engineering
> 
> 
> 
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development



More information about the Development mailing list