autonomousvision / occupancy_networks

This repository contains the code for the paper "Occupancy Networks - Learning 3D Reconstruction in Function Space"
https://avg.is.tuebingen.mpg.de/publications/occupancy-networks
MIT License
1.51k stars 292 forks source link

setup.py fails: clang: error: unsupported option '-fopenmp' ninja: build stopped: subcommand failed. #113

Open LucciVanSchandt opened 2 years ago

LucciVanSchandt commented 2 years ago

When I try to execute python setup.py build_ext --inplace it fails with the error clang: error: unsupported option '-fopenmp'. I tried to update llvm and clang, but it didn't help. Is there anyone who ran into the same issue or know how to fix it? I would highly appreciate any help or hints.

zhanghx04 commented 2 years ago

@LucciVanSchandt Hello, from what I understand, it seems like you haven't installed OpenMP on your machine. Try to install OpenMP with brew install libomp. ref: https://www.positioniseverything.net/clang-error-unsupported-option-fopenmp/