4
首先,我沒有成功編譯和安裝VTK,因爲它可以從下面的消息可以看出問題與VTK的Python綁定
Installed /tmp/yifli/lib/python2.6/site-packages/VTK-5.8.0-py2.6.egg
然而,當我嘗試導入VTK,我得到了以下錯誤:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/tmp/yifli/lib/python2.6/site-packages/VTK-5.8.0-py2.6.egg/vtk/__init__.py", line 124, in <module>
__helper.refine_import_err('qvtk', 'vtkQtPython', exc)
File "/tmp/yifli/lib/python2.6/site-packages/VTK-5.8.0-py2.6.egg/vtk/__helper.py", line 32, in refine_import_err
raise LinkError, str(exc)
vtk.__helper.LinkError: /tmp/yifli/lib/vtk-5.8/libQVTK.so.5.8: undefined symbol: _ZN19QAbstractProxyModel11setItemDataERK11QModelIndexRK4QMapIi8QVariantE
所有的測試失敗,當我在建築目錄中運行'ctest -R Python'時。
任何幫助,高度讚賞。