SuperElastix / SimpleElastix

Multi-lingual medical image registration library
http://simpleelastix.github.io
Apache License 2.0
509 stars 149 forks source link

cannot install SimpleElastix on Windows, problem with CMake #435

Closed MMdeB closed 3 years ago

MMdeB commented 3 years ago

Hi,

I've been trying to install SimpleElastix in windows 10. I have downloaded the CMake GUI (3.21.0), Visual Studio 2019 and created the source and build folders and cloned the data to the source folder.

However, after selecting configure and choosing Visual studio 2019 as a compiler, I get the error:

Error in configuration process, project files may be invalid.

Only the values CMAKE_CONFIGURATION_TYPES and CMAKE_INSTALL_PREFIX are created. In the CMakeOutput.log no information on the errors is available. I then tried to install it using the command line of Visual Studio 2019 and I got the following error:


CMake Error at CMakeLists.txt:16 (project): Running

'nmake' '-?'

failed with:

Het systeem kan het opgegeven bestand niet vinden (Dutch for: can't find the document)

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage Configuring incomplete, errors occurred!

Does anyone know what I'm doing wrong? Thank you! If you need more information, I'm happy to provide.

Edit: I want to use Python 3.9 and this is added to my path

MMdeB commented 3 years ago

I have found the solution for this: I didn't download the C++ packages in Microsoft Virtual Studio. After doing this, the error was solved.