我正在尝试安装哇喔。运行时sudo make -f Makefile.waon
出现以下错误:
gcc -Wall -march=pentium -O3 -ffast-math `pkg-config --cflags fftw3` `pkg-config --cflags sndfile` -c -o main.o main.c
Package fftw3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `fftw3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fftw3' found
Package sndfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `sndfile.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sndfile' found
main.c:31:19: fatal error: fftw3.h: No such file or directory
#include <fftw3.h>
^
compilation terminated.
make: *** [main.o] Error 1
我安装了和FFTW3
。但这个问题仍然存在。我该如何修复它?sudo apt-get install libfftw3-3
libsndfile
sudo apt-get install libsndfile1
答案1
丢失的文件fftw3.h
在包中libfftw3-dev
,因此
sudo apt-get install libfftw3-dev
并libsndfile1
通过安装
sudo apt-get install libsndfile1-dev