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
^~~~~~~~~~
1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1
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
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++']