ikolesov / kslice

interactive medical image processing
1 stars 1 forks source link

Slicer does not find .so file containing vtkKSlice logic #4

Open ikolesov opened 11 years ago

ikolesov commented 11 years ago

Why must the library be copied to the Slicer bin directory for slicer to discover it despite having added the original location of the library to the slicers modules path?

pkarasev3 commented 11 years ago

same fail on windows: ''' Traceback (most recent call last): File "C:/pieper/s/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/Editor.py", line 34, in init parent.icon = qt.QIcon("%s/ToolbarEditorToolbox.png" % EditorLib.ICON_DIR) AttributeError: 'module' object has no attribute 'ICON_DIR' Traceback (most recent call last): File "C:/pieper/s/kslice/src/kslice_wrap/build/lib/Slicer-4.2/qt-scripted-modules/KSliceEffect.py", line 8, in import vtkSlicerKSliceModuleLogicPython ImportError: No module named vtkSlicerKSliceModuleLogicPython RuntimeError: qSlicerScriptedLoadableModule::setPythonSource - Failed to load scripted pythonqt module class definition KSliceEffect from C:/pieper/s/kslice/src/kslice_wrap/build/lib/Slicer-4.2/qt-scripted-modules/KSliceEffect.py '''

pkarasev3 commented 11 years ago

on windows you "must copy lib/Debug/.dll and .pyd

pkarasev3 commented 11 years ago

solved: do make install on linux or right click INSTALL project -> project only -> build, and make sure you have the cmake_install_prefix set correctly to ${Slicer_DIR} , takes care of all this crap @ikolesov please confirm for linux