QQmlComponent: Component is not ready
When building VTK in Linux using Qt5.15.1 I see the above error. It has been happening over the past month or so. VTK is being built with GROUP_ENABLE_Qt: WANT
. Strangely under Windows everything builds Ok. I have deleted VTK/lib/qml
and re-run CMake.
Linux
Under Linux, VTK/lib/qml/VTK.9.0 contains the following files:
libqmlvtkplugind.so qmldir
This is the full error message:
27/1576] Linking CXX shared module lib/qml/VTK.9.0/libqmlvtkplugind.so
FAILED: lib/qml/VTK.9.0/libqmlvtkplugind.so lib/qml/VTK.9.0/plugins.qmltypes
: && /usr/bin/c++ -fPIC -g -Wl,-lc -Wl,-lc -shared -o lib/qml/VTK.9.0/libqmlvtkplugind.so GUISupport/QtQuick/qml/CMakeFiles/qmlvtkplugin.dir/qmlvtkplugin_autogen/mocs_compilation.cpp.o GUISupport/QtQuick/qml/CMakeFiles/qmlvtkplugin.dir/QQmlVTKPlugin.cxx.o -Wl,-rpath,/home/amaclean/Development/Kitware/build/VTK/lib:/home/amaclean/Qt/5.15.1/gcc_64/lib: lib/libvtkGUISupportQtQuick-9.0.so.9.0.0 lib/libvtkGUISupportQt-9.0.so.9.0.0 /home/amaclean/Qt/5.15.1/gcc_64/lib/libQt5OpenGL.so.5.15.1 /home/amaclean/Qt/5.15.1/gcc_64/lib/libQt5Widgets.so.5.15.1 /home/amaclean/Qt/5.15.1/gcc_64/lib/libQt5Gui.so.5.15.1 /home/amaclean/Qt/5.15.1/gcc_64/lib/libQt5Core.so.5.15.1 /home/amaclean/Qt/5.15.1/gcc_64/lib/libQt5OpenGL.so.5.15.1 /home/amaclean/Qt/5.15.1/gcc_64/lib/libQt5Widgets.so.5.15.1 /home/amaclean/Qt/5.15.1/gcc_64/lib/libQt5Quick.so.5.15.1 /home/amaclean/Qt/5.15.1/gcc_64/lib/libQt5Gui.so.5.15.1 /home/amaclean/Qt/5.15.1/gcc_64/lib/libQt5QmlModels.so.5.15.1 /home/amaclean/Qt/5.15.1/gcc_64/lib/libQt5Qml.so.5.15.1 /home/amaclean/Qt/5.15.1/gcc_64/lib/libQt5Network.so.5.15.1 /home/amaclean/Qt/5.15.1/gcc_64/lib/libQt5Core.so.5.15.1 lib/libvtkRenderingOpenGL2-9.0.so.9.0.0 lib/libvtkRenderingUI-9.0.so.9.0.0 /usr/lib/x86_64-linux-gnu/libX11.so lib/libvtkglew-9.0.so.9.0.0 /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libOpenGL.so /usr/lib/x86_64-linux-gnu/libX11.so lib/libvtkInteractionWidgets-9.0.so.9.0.0 lib/libvtkRenderingContext2D-9.0.so.9.0.0 lib/libvtkRenderingCore-9.0.so.9.0.0 lib/libvtkFiltersSources-9.0.so.9.0.0 lib/libvtkFiltersGeneral-9.0.so.9.0.0 lib/libvtkFiltersCore-9.0.so.9.0.0 lib/libvtkCommonExecutionModel-9.0.so.9.0.0 lib/libvtkCommonDataModel-9.0.so.9.0.0 lib/libvtkCommonTransforms-9.0.so.9.0.0 lib/libvtkCommonMisc-9.0.so.9.0.0 lib/libvtkCommonMath-9.0.so.9.0.0 lib/libvtkCommonCore-9.0.so.9.0.0 lib/libvtkkissfft-9.0.so.9.0.0 lib/libvtksys-9.0.so.9.0.0 -ldl -lpthread /usr/lib/x86_64-linux-gnu/libtbb.so.2 -Wl,-rpath-link,/home/amaclean/Development/Kitware/build/VTK/lib && cd /home/amaclean/Development/Kitware/build/VTK/GUISupport/QtQuick/qml && /home/amaclean/Qt/5.15.1/gcc_64/bin/qmlplugindump -output /home/amaclean/Development/Kitware/build/VTK/lib/qml/VTK.9.0/plugins.qmltypes VTK 9.0 /home/amaclean/Development/Kitware/build/VTK/lib/qml
QQmlComponent: Component is not ready
Windows
For comparison under Windows everything builds Ok with a warning message during configuration:
CMake Warning at GUISupport/QtQuick/qml/CMakeLists.txt:103 (message):
Qt5 is configured in both Debug and Release modes. Due to Qt issue 47774
(https://bugreports.qt.io/browse/QTBUG-47774), skipping generation of
qmltypes file. Using the one provided with the source tree instead.
Under Windows, VTK/lib/qml/VTK.9.0 contains the following files:
plugins.qmltypes qmlvtkplugind.dll* qmlvtkplugind.pdb
qmldir qmlvtkplugind.ilk