VTK plugin is not loaded in QtCreator.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

VTK plugin is not loaded in QtCreator.

Zoltan Kovacs
Hi all,

I have installed VTK 7.1.1 for Qt 5.8 in CentOS 7 with the configuation
options

~/bin/cmake -G Unix Makefiles -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
-DBUIILD_SHARED_LIBS:BOOL=ON -DBUILD_TESTING:BOOL=ON
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX:PATH=/home/zko/VTK-7.1.1/install
-DVTK_WRAP_PYTHON:BOOL=ON -DVTK_Group_Qt:BOOL=ON
-DVTK_PYTHON_VERSION=2.7 -DVTK_QT_VERSION:STRING=5
-DCMAKE_PREFIX_PATH:PATH=/home/zko/Qt/5.8/gcc_64/lib/cmake
-DQT_QMAKE_EXECUTABLE:PATH=/home/zko/Qt/5.8/gcc_64/bin/qmake

Then the corresponding plugin library libQVTKWidgetPlugin.so was copied
into the plugin directory of QtCreator. However, the QVTKWidet won't
appear in the widget list when I open the UI editor window of QtCreator.
I obtained a libQVTKWidgetPlugin.so file from Trolltech Qt support
persons who also installed VTK 7.7.1 with the same comfiguration
options. I copied this file into plugin directory of Qtcreator and I
could see the QVTKWidger in the widget list of the UI editor window of
Qtcreator.

Then I checked the objects in both the plugin library files with objdump
and I found that the qt_pluginMetaData and qt_plugin_instance symbols
are missing from my libQVTKWidgetPlugin.so, whereas they can be found in
the plugin library file obtained from Trolltech. Both should be coming
through a file that is generated by moc. I have no idea why these
wouldn't be there. Has any one an idea what went wrong with the
compilation of VTK 7.1.1 in my desktop? Thank you very much!

Kind Regards,
Zoltan

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers