-
Notifications
You must be signed in to change notification settings - Fork 150
Error while installing SimpleElastix on Windows. #486
Comments
Hello, I've had issues compiling SimpleElastix on Windows as well but did get there eventually. I wrote down some steps I had to take (a few months back) to get there. Not sure everything still applies, but here's a brain dump. Do let me know if some things don't make sense, I'll try to come back to this comment and clean things up. I needed to compile SimpleElastix to use with Valis. Follow the cmake instructionshttps://simpleelastix.readthedocs.io/GettingStarted.html Note: Maybe my build directory wasn't where it was supposed to be, so let me know if I need to change the paths below. git clone https://github.com/SuperElastix/SimpleElastix Launch miniconda, then activate the right environment Then this in the valis_37 environment cmake -DWRAP_JAVA:BOOL=OFF -DWRAP_LUA:BOOL=OFF -DWRAP_R:BOOL=OFF -DWRAP_RUBY:BOOL=OFF -DWRAP_TCL:BOOL=OFF -DSimpleITK_PYTHON_USE_VIRTUALENV:BOOL=OFF ../SuperBuild msbuild ALL_BUILD.vcxproj /p:Configuration=Release C:\Projects\SimpleElastix\SuperBuild\SuperBuild.cmake – Add the Git protocol lines:
When compilation fails, go fix the error. A search pointed to opj_includes.h (The one from OpenJPEG): InsightSoftwareConsortium/ITK#1967 From the thread: @dzenanz Thanks for your info and help. I tried to apply a patch for ../Modules/ThirdParty/OpenJPEG/src/openjpeg/opj_includes.h as below. It can build pass. Thank you very much. EZ: search replace lrintf and replace by obj_lrintf (two places). In vim: %s/long\ lrintf(/long\ obj_lrintf(/g
… and potentially Installation, check this:Still under the valis environment,
From the threads: For all those who have this issue, all I did was copy _SimpleITK.pyd from the ...\Python\ directory to ...\Python\Packaging. This seems to have fixed it. I also ran a registration and it seems to work! Test if it’s all been installed properly and working Import SimpleITK as sitk Note If you have an error, maybe you already have sitk installed with pip, so need to uninstall it. Only keep the one you just built!! pip uninstall simpleitk Here we can find an appropriate version of libvips compiled for windows (64 bit)… |
I am trying to install SimpleElstix on Windows (in a Conda environment) but I am not able to solve this error.
![image](https://user-images.githubusercontent.com/65884800/191903463-81b8b647-9555-4535-9b5d-22af5d7d113d.png)
I tried to look for _SimpleITK.pyd but I can't find it anywhere.
Tried doing this but it didn't work.
Is there a possible fix for this?
Also, this is my first time posting an issue on GitHub so please ask for anything that is required to solve this.
The text was updated successfully, but these errors were encountered: