我正在尝试安装 chromaprint 但遇到了 CMake 错误。
我不知道该如何修复它。
错误:
root@matrix [~/chromaprint-0.6]# cmake -DWITH_FFTW3=ON .
-- Using FFTW3 for FFT calculations
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FFMPEG_LIBAVCODEC_INCLUDE_DIRS
used as include directory in directory /root/chromaprint-0.6/examples
FFMPEG_LIBAVCODEC_LIBRARIES
linked by target "fpcalc" in directory /root/chromaprint-0.6/examples
FFMPEG_LIBAVFORMAT_INCLUDE_DIRS
used as include directory in directory /root/chromaprint-0.6/examples
FFMPEG_LIBAVFORMAT_LIBRARIES
linked by target "fpcalc" in directory /root/chromaprint-0.6/examples
FFMPEG_LIBAVUTIL_INCLUDE_DIRS
used as include directory in directory /root/chromaprint-0.6/examples
FFMPEG_LIBAVUTIL_LIBRARIES
linked by target "fpcalc" in directory /root/chromaprint-0.6/examples
-- Configuring incomplete, errors occurred!
root@matrix [~/chromaprint-0.6]#
答案1
安装ffmpeg-devel
:
# rpm -qa | grep ffmpeg
ffmpeg-libpostproc-0.6.5-1.el5.rf
ffmpeg-devel-0.6.5-1.el5.rf
ffmpeg-0.6.5-1.el5.rf
然后再试一次:
# cmake -DWITH_FFTW3=ON .
-- Using FFTW3 for FFT calculations
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/chromaprint-0.6