I’ve compile and running the latest version “06e327” of slicer on Mac.
But there’s always an error when I ‘Switch to module: “SegmentEditor”’, and no tool icons show’s up under panel of “Help & Acknowlegement”.
Traceback (most recent call last):
File “/Users/quabug/proj/slicer/cmake-build-debug/Slicer-build/lib/Slicer-4.11/qt-scripted-modules/SegmentEditor.py”, line 130, in enter
File “/Users/quabug/proj/slicer/cmake-build-debug/Slicer-build/lib/Slicer-4.11/qt-scripted-modules/SegmentEditor.py”, line 86, in selectParameterNode
segmentEditorNode = slicer.vtkMRMLSegmentEditorNode()
AttributeError: module ‘slicer’ has no attribute ‘vtkMRMLSegmentEditorNode’
Is there something I’m missing during compile?
qt 5.14.2 from brew
It seems that your build did not succeed. Start a build in Slicer-build folder and see if there are any error messages.
There’s no error while building slicer in
And just few irrelevant warnings on building the whole project.
I’ve tested 3 different cmake config today, they all have this issue.
# CLion debug
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DQt5_DIR=/usr/local/Cellar/qt/5.14.2/lib/cmake/Qt5 -G "CodeBlocks - Unix Makefiles" /Users/quabug/proj/slicer
# CLion release
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DQt5_DIR=/usr/local/Cellar/qt/5.14.2/lib/cmake/Qt5 -G "CodeBlocks - Unix Makefiles" /Users/quabug/proj/slicer
ccmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DQt5_DIR=/usr/local/Cellar/qt/5.14.2/lib/cmake/Qt5 ../
# build command
SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk cmake --build . --target Slicer -- -j 16
I am gonna test recommend version of QT next, and will update the result after testing.
Nevermind, I am able to build windows version without any issue, and my target platform is windows, so would not bother mac anymore.