Tf-pose-estimation: macOS Mojave (10.14.3) , error during pafprocess [error: command 'gcc' failed with exit status 1]

Created on 11 Oct 2019  ·  3Comments  ·  Source: ildoonet/tf-pose-estimation

I guess it is something about the c++ compiler . Need Some help.

(python36) soumyajits-MacBook-Air:pafprocess river$ swig -python -c++ pafprocess.i && python setup.py build_ext --inplace
running build_ext
building '_pafprocess' extension
swigging pafprocess.i to pafprocess_wrap.cpp
swig -python -c++ -o pafprocess_wrap.cpp pafprocess.i
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/river/Documents/anaconda3/envs/python36/include -arch x86_64 -I/Users/river/Documents/anaconda3/envs/python36/include -arch x86_64 -I/Users/river/Documents/anaconda3/envs/python36/lib/python3.6/site-packages/numpy/core/include -I. -I/Users/river/Documents/anaconda3/envs/python36/include/python3.6m -c pafprocess.cpp -o build/temp.macosx-10.7-x86_64-3.6/pafprocess.o
warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
pafprocess.cpp:1:10: fatal error: 'iostream' file not found

include

     ^~~~~~~~~~

1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1

Most helpful comment

Adding these two lines in setup.py looks like solving the problem.

extra_compile_args = ['-stdlib=libc++'],
extra_link_args=['-stdlib=libc++']

All 3 comments

Adding these two lines in setup.py looks like solving the problem.

extra_compile_args = ['-stdlib=libc++'],
extra_link_args=['-stdlib=libc++']

Hello ssoumyajit, thank you for your post. I'm also trying to run tf_pose_estimation on my mac. But when trying to do pre installation of Jetson case, I got the following error:

(tfpose) ✘ myj@Yijuns-MacBook-Pro  ~/tf-pose-estimation   master ●  brew install libllvm-7-ocaml-dev libllvm7 llvm-7 llvm-7-dev llvm-7-doc llvm-7-examples llvm-7-runtime
Error: No available formula with the name "libllvm-7-ocaml-dev"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

Not sure whether you've encountered similar issues previously and how did you solve that? Thx.

@yijunmao did you ever end up fixing this-- encountering now as well

Was this page helpful?
0 / 5 - 0 ratings

Related issues

siddharthrajpatel picture siddharthrajpatel  ·  4Comments

Minotaur-CN picture Minotaur-CN  ·  4Comments

khan958 picture khan958  ·  3Comments

khaerulumam42 picture khaerulumam42  ·  6Comments

juciny picture juciny  ·  3Comments