在 pkg-config 搜索路径中未找到软件包

在 pkg-config 搜索路径中未找到软件包

我正在尝试安装哇喔。运行时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-3libsndfilesudo apt-get install libsndfile1

答案1

丢失的文件fftw3.h在包中libfftw3-dev,因此

sudo apt-get install libfftw3-dev

libsndfile1通过安装

sudo apt-get install libsndfile1-dev

相关内容