bambocher / pocketsphinx-python

Python interface to CMU Sphinxbase and Pocketsphinx libraries
https://pypi.python.org/pypi/pocketsphinx
Other
373 stars 187 forks source link

error: command '/usr/bin/clang' failed with exit code 1 #73

Open ldaumail opened 2 years ago

ldaumail commented 2 years ago

Hello, (MacOS Monterey v12.4) I am currently trying to follow the steps recommended on https://github.com/bambocher/pocketsphinx-python/issues/28

I replaced two of these lines with:

include <OpenAL/al.h>

include <OpenAL/alc.h>

(as recommended on the issue above)

Though, I still have an error when running: python setup.py install 3 warnings generated. clang -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -Wl,-headerpad,0x1000 build/temp.macosx-10.14-x86_64-cpython-38/deps/sphinxbase/src/libsphinxad/ad_openal.o build/temp.macosx-10.14-x86_64-cpython-38/swig/sphinxbase/ad_openal_wrap.o /System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL -o build/lib.macosx-10.14-x86_64-cpython-38/sphinxbase/_ad_openal.cpython-38-darwin.so clang: error: no such file or directory: '/System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL' error: command '/usr/bin/clang' failed with exit code 1 Thanks!

ldaumail commented 2 years ago

Nevermind, I solved my issue with https://github.com/bambocher/pocketsphinx-python/commit/3a56428adab7fafd37e3b78825f159d1997ed871