occupancy_networks
occupancy_networks copied to clipboard
Error Setup.py on MacOs
While running the command of installation:
"python3 setup.py build_ext --inplace
"
I have faced the following error:
im2mesh/utils/libmcubes/mcubes.cpp:658:10: fatal error: 'ios' file not found
error: command '/usr/local/opt/llvm/bin/clang' failed with exit status 1
If I comment #include "ios" I have the same errors with "new", "stdexcept"
I have also tried (according to https://github.com/huggingface/neuralcoref/issues/97) to run:
CFLAGS='-stdlib=libc++' python setup.py build_ext --inplace
But here I get:
im2mesh/utils/libmcubes/pywrapper.cpp:98:24: error: non-constant-expression cannot be narrowed from type 'long' to 'double' in initializer
list [-Wc++11-narrowing]
double upper[3] = {shape[0]-1, shape[1]-1, shape[2]-1};
PS I have commented dmc extensions. I have MacOS Mojave 10.14.6. I am compiling using: Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.7.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin