I have installed Qt 5.15 via the official installer and not the package manager of my Xubuntu 20.04. According to cmake all the required cmake variables are set (Qt5_DIR, Qt5Core_DIR etc.).
The build goes without any issues up to the point when
qmlplugindump is requested:
[100%] Built target qmlvtkplugin_autogen [100%] Linking CXX shared module ../../../lib/qml/VTK.9.0/libqmlvtkplugind.so Generating qmltypes file using qmlplugindump /bin/sh: 1: /usr/bin/qmlplugindump: not found make: *** [GUISupport/QtQuick/qml/CMakeFiles/qmlvtkplugin.dir/build.make:136: lib/qml/VTK.9.0/libqmlvtkplugind.so] Error 127 make: *** Deleting file 'lib/qml/VTK.9.0/libqmlvtkplugind.so' make: *** [CMakeFiles/Makefile2:17327: GUISupport/QtQuick/qml/CMakeFiles/qmlvtkplugin.dir/all] Error 2 make: *** [Makefile:130: all] Error 2
At first I got scared since I did have a previous Qt 5 installation (via the package manager) that I needed for QGIS. However
nm gave me a piece of mind:
:~/BUILDS/VTK/build$ nm lib/libvtkViewsQt-9.0.so | grep 5.15 U qt_version_tag@@Qt_5.15
This means that the linking is done correctly however for some reason the building process attempts to execute
qmlplugindump from the wrong path. The only
qmlplugindump I have is in
/opt/Qt/5.15.2/gcc_64/bin, which is also part of the Qt that I am using for the whole build.
Since I’m not familiar with VTK I’m reaching out to you hoping to resolve this. If it is an error in my environment - perfect. However if it is not, this would mean that the VTK build process is broken, when it comes to the Qt integration. This is why I tagged it as Development and not Support.