Building VTK 9.4.1 with Qt 6.8.1 with Qt Quick Support

Hi,

I am trying to build VTK 9.4.1 with Qt version 6.8.1 and enable Qt Quick support in the VTK build configuration. However, I’ve not been able to build it because VTK is looking for a qmlplugindump executable that was not found. I built Qt 6.8.1 from source too, but could not get the tool qmlplugindump built. I’m not sure if qmlplugindump is deprecated from the Qt side but wondering if anybody has encountered this issue.

Following are the build errors I get when trying to build VTK 9.4.1 with Qt Quick support in Ubuntu 22.04:

CMake Error at GUISupport/QtQuick/qml/CMakeLists.txt:74 (message):
  qmlplugindump executable not found.

  It is required to generate the qmltypes file for VTK Qml plugin.


-- Configuring incomplete, errors occurred!

Also, as per Qt documentation qmlplugindump seems to be replaced by another tool named qmltyperegistrar. Is there any plan to replace the usage of qmlplugindump with this new tool?

Thanks,

Do you have a link to that documentation?

Cc: @sankhesh

this Qt documentation mentions briefly about qmlplugindump deprecation but not sure it is an official one.

I see that comments were added about it being deprecated in 6.2.0. Its replacement (qmltyperegistrar) has been around since 5.15.0. The in-code message for this is:

        std::cerr << "qmlplugindump is deprecated.\n"
                  << "Please declare your types using QML_ELEMENT and related macros.\n"
                  << "Then utilize the build system to invoke qmltyperegistrar in order to\n"
                  << "generate qmltypes files.\n";

I’ll note that 6.9.0 still has qmlplugindump and I see nothing in the build system that changes how it is provided since deprecation.