[vtkusers] VTK build error (undefined symbols: "vtkQtRichTextView::SetFieldType(int)")

Hamid G listboss at gmail.com
Thu Sep 29 02:10:00 EDT 2011


Hello

I am trying to build vtk-5.8.0 with
VTK_USE_QT
VTK_WRAP_PYTHON
VTK_WRAP_PYTHON_SIP

This is being done on Snow Leopard (10.6.8) using system Python, CMake 2.8.5.
I have manually compiled and installed Qt-4.7.4, PyQt-4.8.5 and sip-4.12.4.

Build process links QVTKPython.so, QVTKWidgetPlugin without problem
but it stops at building
vtkQtPythonD:

Linking CXX shared library ../../bin/libvtkQtPythonD.dylib
Undefined symbols:
  "vtkQtRichTextView::SetFieldType(int)", referenced from:
      PyvtkQtRichTextView_SetFieldType(_object*, _object*)in
vtkQtRichTextViewPython.cxx.o
  "vtkQtRichTextView::Update()", referenced from:
      PyvtkQtRichTextView_Update(_object*, _object*)in
vtkQtRichTextViewPython.cxx.o
  "vtkQtRichTextView::New()", referenced from:
      PyvtkQtRichTextView_StaticNew()      in vtkQtRichTextViewPython.cxx.o
  "vtkQtRichTextView::GetFieldType()", referenced from:
      PyvtkQtRichTextView_GetFieldType(_object*, _object*)in
vtkQtRichTextViewPython.cxx.o
  "vtkQtRichTextView::GetWidget()", referenced from:
      PyvtkQtRichTextView_GetWidget(_object*, _object*)in
vtkQtRichTextViewPython.cxx.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [bin/libvtkQtPythonD.dylib] Error 1
make[1]: *** [GUISupport/Qt/CMakeFiles/vtkQtPythonD.dir/all] Error 2
make: *** [all] Error 2

Is this related to how I've configured/compiled Qt or it comes from
VTK CMake configuration?

thanks in advance,
Hamid



More information about the vtkusers mailing list