SuperElastix / SimpleElastix

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

compiling on OSX #288

Open bwang2453 opened 5 years ago

bwang2453 commented 5 years ago

When I tried to compile SimpleElastix on OSX, I've got the following error message:

Generating setup.py... [ 70%] Built target SimpleITK_PYTHON make[3]: [all] Error 2 make[2]: [SimpleITK-prefix/src/SimpleITK-stamp/SimpleITK-build] Error 2 make[1]: [CMakeFiles/SimpleITK.dir/all] Error 2 make: [all] Error 2

I used the following cmake command:

cmake -DCMAKE_CXX_COMPILER:STRING=/usr/bin/clang++ -DCMAKE_C_COMPILER:STRING=/usr/bin/clang ../SimpleElastix/SuperBuild

Any suggestions are welcome!

anujpare commented 5 years ago

I am having the exact same issue and error message. That is also the cmake command I passed.

MacOS Mojave 10.14.3

kaspermarstal commented 5 years ago

Can you compile with "make" and not "make -j4" or similar. Then the compilation process will stop at the actual error. Post the error here, and we take it from there.