我不太清楚如何让SoX在CAF支持下编译。我已经编译了libsndfile,并在库文件夹中查找gcc。我像这样编译了libsndfile:
./configure --build=x86_64 --disable-shared --enable-static这起作用了,我看到它生成了一个caf.lo文件,但是当我试图编译SoX时,它失败了:
checking CoreAudio/CoreAudio.h usability... no
checking CoreAudio/CoreAudio.h presence... no
checking for CoreAudio/CoreAudio.h... no
configure: error: in `/cygdrive/c/sox/sox-14.4.1':
configure: error: cannot find coreaudio
See `config.log' for more details由于这不是我正在编译的mac,我希望可用性是“否”,但它应该找到CAF的库,不是吗?
C:\cygwin64\usr\local\lib文件夹包含libsndfile.la & libsndfile.a
发布于 2013-08-19 07:32:11
我想您已经被Core格式( CAF文件格式)和Core (一个MacOS X声音API)的名字的相似之处所欺骗,从而调用了configure --with-coreaudio。(您没有显示命令行。)然而,这两者是完全不相关的,Core不能出现在Windows机器上。
放下--with-coreaudio就行了。如果坚持,可以添加--with-sndfile,因为您已经知道,CAF是由libsndfile提供的;但是它不应该是必需的,因为默认情况下,SoX将使用所有可用的库。
https://stackoverflow.com/questions/18302115
复制相似问题