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 [email protected] https://lists.qt-project.org/listinfo/development
