microsoft / Deep3DFaceReconstruction

Accurate 3D Face Reconstruction with Weakly-Supervised Learning: From Single Image to Image Set (CVPRW 2019)
MIT License
2.16k stars 441 forks source link

Build did NOT complete successfully: BAZEL TEST FAILD NEW ISSUE #193

Open rezowan099 opened 2 years ago

rezowan099 commented 2 years ago

Hey, this is a really good work. I really appropriate it. But somehow I got stuck on "bazel test". It will be really helpful if someone can suggest a possible solution for the following issue: Screenshot from 2022-01-18 18-11-29 Thanks for your consideration!

lhh753159 commented 1 year ago

Hi , I have the same problem as you, I wonder if your problem has been solved.

skiler163 commented 1 year ago

I have solved this problem by first making sure to install bazel with conda and replacing $(PYTHON) with python in the BUILD file. If your g++ version is later than 5.4, you don't need to add the line specified by the author.

image

skiler163 commented 1 year ago

If errors still occur, you may need to clear the bazel cache by executing the following command: rm -rf ~./.cache/bazel

If the gcc version is 14 or later, run the following command to configure the.bazelrc file in the /home/username/ folder: vi. bazelrc; Write this statement: build --cxxopt=-std=c++14