在 pkg-config 搜索路径中找不到包

Clu*_*oob 2 compiling error-handling makefile libraries make

我正在尝试安装WaoN。当我运行时,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
Run Code Online (Sandbox Code Playgroud)

我安装了FFTW3和。但这个问题依然存在。我该如何修复它?sudo apt-get install libfftw3-3libsndfilesudo apt-get install libsndfile1

A.B*_*.B. 5

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

sudo apt-get install libfftw3-dev
Run Code Online (Sandbox Code Playgroud)

libsndfile1并通过安装

sudo apt-get install libsndfile1-dev
Run Code Online (Sandbox Code Playgroud)