Running and Verification
Procedure
- Switch to the directory where SimpleITK test cases are stored.
cd /path/to/SimpleITK/SimpleITK/build/SimpleITK-build
- Run the test cases.
ctest .
Some test cases may fail, including ProcessObject_NumberOfThreads, SLICImageFilter.minimum, and ImageRegistrationMethodDisplacement1.
The cause is that these official test cases have bugs inside, but the software will not be affected. For details, visit https://github.com/SimpleITK/SimpleITK/issues/1571.
- Using Python as an example, bind the Python interface of SimpleITK.
cd /path/to/SimpleITK/SimpleITK/build/SimpleITK-build/Wrapping/Python python setup.py install
Run pip list. You can see that SimpleITK has been installed in the current Python interpreter.
For details about how to bind other languages, visit https://simpleitk.readthedocs.io/en/v2.1.0/building.html#installation-from-build-tree.
Parent topic: SimpleITK Master Porting Guide (openEuler 20.03)