On Arch Linux ecm_generate_qmltypes() can not find Qt 6 version of qmlplugindump
The ECM command ecm_generate_qmltypes()
assumes that qmlplugindump
is always named just like that and is the first one on PATH, with no points of customization.
On Arch Linux, however, qt6-declarative
package contains the binary in a different location: /usr/lib/qt6/bin/qmlplugindump
. No default PATH points to that directory.
Interesting that my developer's setup based on kdesrc-build survived perfectly fine without that dir on PATH.
One option could be to use ecm_query_qt()
, but in my manual testing the result is far from ideal:
❯ ls -l /usr/lib/qt6/bin/qmlplugindump
-rwxr-xr-x 1 root root 165968 Jul 19 19:25 /usr/lib/qt6/bin/qmlplugindump
❯ /usr/lib/qt6/bin/qtpaths6 --binaries-dir
/usr/lib/qt6/bin
❯ /usr/lib/qt6/bin/qtpaths6 --find-exe qmlplugindump
/usr/bin/qmlplugindump
even though qmlpaths6 correctly reports directory with binaries, it fails to scan it for qmlplugindump
.