dkriegner / xrayutilities

xrayutilities - a package with useful scripts for X-ray diffraction physicists
http://xrayutilities.sourceforge.io
GNU General Public License v2.0
81 stars 29 forks source link

Build fails on MacOS #74

Closed LukeSkywalker92 closed 5 years ago

LukeSkywalker92 commented 5 years ago

This is the output when you try to build it on MacOS:

clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -arch x86_64 -D__OPENMP__ -I/Users/luke/Coding/Python/envs/science/lib/python3.7/site-packages/numpy/core/include -I/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c xrayutilities/src/cxrayutilities.c -o build/temp.macosx-10.14-x86_64-3.7/xrayutilities/src/cxrayutilities.o -std=c99 -fopenmp
clang: error: unsupported option '-fopenmp'
error: command 'clang' failed with exit status 1
dkriegner commented 5 years ago

I guess you have no openMP library installed. In that case (independent of your operating system) you have to disable their use.

Please refer to the README for details. If you think this is not the problem or you see a better way to mention this in the readme let me know.