SimpleElastix
SimpleElastix copied to clipboard
MacOS: SimpleElastix Installation fails at 70% Generating setup.py...
Hi, I ran into this error below during the installation on MacBookPro (2019).
Generating setup.py...
[ 70%] Built target SimpleITK_PYTHON
[ 70%] Built target SimpleITKJava_JAVA
[ 70%] Built target SimpleITKTclsh
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
How would I proceed further? Many Thanks
Hi, could you rerun make without the '-j' parameter? This way the build script will stop when the error happens (now the other threads continue compiling which hides the real error message)
Hi, I'm getting the same error.
I took your (kaspermarstal) suggestion and reran make without the '-j' parameter. My output is shown below. Appears to indicate a C++ error.
Please advise, thanks. Jay
Installed /Users/jayurbain/Dropbox/ImagingBiometrics/ImagingSegmentation/SimpleElastix/build/SimpleITK-build/Testing/Installation/PythonVirtualenv/lib/python3.7/site-packages/SimpleITK-1.2.0rc2.dev1167+gd4cf2-py3.7-macosx-10.7-x86_64.egg Processing dependencies for SimpleITK==1.2.0rc2.dev1167+gd4cf2 Finished processing dependencies for SimpleITK==1.2.0rc2.dev1167+gd4cf2 -- Installing numpy from /Users/jayurbain/anaconda3/lib/python3.7/site-packages/numpy to /Users/jayurbain/Dropbox/ImagingBiometrics/ImagingSegmentation/SimpleElastix/build/SimpleITK-build/Testing/Installation/PythonVirtualenv/lib/python3.7/site-packages/numpy [ 27%] Built target PythonVirtualEnv [ 27%] Building CXX object Wrapping/Ruby/CMakeFiles/simpleitk_RUBY.dir/SimpleITKRUBY_wrap.cxx.o In file included from /Users/jayurbain/Dropbox/ImagingBiometrics/ImagingSegmentation/SimpleElastix/build/SimpleITK-build/Wrapping/Ruby/SimpleITKRUBY_wrap.cxx:880: In file included from /System/Library/Frameworks/Ruby.framework/Headers/ruby.h:33: In file included from /System/Library/Frameworks/Ruby.framework/Headers/ruby/ruby.h:24: /System/Library/Frameworks/Ruby.framework/Headers/ruby/ruby/config.h:368:31: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] #define RUBY_ARCH "universal-"RUBY_PLATFORM_OS ^
/System/Library/Frameworks/Ruby.framework/Headers/ruby/ruby/config.h:369:35: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] #define RUBY_PLATFORM "universal."RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS ^
/System/Library/Frameworks/Ruby.framework/Headers/ruby/ruby/config.h:369:55: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] #define RUBY_PLATFORM "universal."RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS ^
3 errors generated. make[5]: *** [Wrapping/Ruby/CMakeFiles/simpleitk_RUBY.dir/SimpleITKRUBY_wrap.cxx.o] Error 1 make[4]: *** [Wrapping/Ruby/CMakeFiles/simpleitk_RUBY.dir/all] Error 2 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 (pytorch_rl) Jays-MacBook-Pro-2:build jayurbain$
I got the same error
Same issue here. OSX 10.14.6. Solve by turning off wrap_ruby as per
https://github.com/SuperElastix/SimpleElastix/issues/163
but don't know if I'm going to miss that functionality later on!