I'm trying to install chromaprint in order to encode fingerprints and also to decode encoded fingerprints on my server.
Here is what I've got. I used these commands.
[chromaprint]# cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=ON -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX=64 .
[chromaprint]# make install
[ 48%] Built target chromaprint
[ 97%] Built target chromaprint_p
[100%] Building C object examples/CMakeFiles/fpcalc.dir/fpcalc.c.o
/root/chromaprint/examples/fpcalc.c:4:27: error: libavutil/opt.h: No such file o r directory
/root/chromaprint/examples/fpcalc.c: In function ‘decode_audio_file’:
/root/chromaprint/examples/fpcalc.c:36: warning: implicit declaration of functio n ‘avformat_open_input’
/root/chromaprint/examples/fpcalc.c:41: warning: implicit declaration of functio n ‘avformat_find_stream_info’
/root/chromaprint/examples/fpcalc.c:46: warning: implicit declaration of functio n ‘av_find_best_stream’
/root/chromaprint/examples/fpcalc.c:55: error: ‘AVCodecContext’ has no member na med ‘request_sample_fmt’
/root/chromaprint/examples/fpcalc.c:55: error: ‘AV_SAMPLE_FMT_S16’ undeclared (f irst use in this function)
/root/chromaprint/examples/fpcalc.c:55: error: (Each undeclared identifier is re ported only once
/root/chromaprint/examples/fpcalc.c:55: error: for each function it appears in.)
/root/chromaprint/examples/fpcalc.c:57: warning: implicit declaration of functio n ‘avcodec_open2’
/root/chromaprint/examples/fpcalc.c:104: warning: implicit declaration of functi on ‘avcodec_decode_audio4’
/root/chromaprint/examples/fpcalc.c:130: error: ‘AVFrame’ has no member named ‘n b_samples’
/root/chromaprint/examples/fpcalc.c:130: error: ‘AVFrame’ has no member named ‘n b_samples’
/root/chromaprint/examples/fpcalc.c:156: warning: implicit declaration of functi on ‘avcodec_free_frame’
/root/chromaprint/examples/fpcalc.c:170: warning: implicit declaration of functi on ‘avformat_close_input’
make[2]: *** [examples/CMakeFiles/fpcalc.dir/fpcalc.c.o] Error 1
make[1]: *** [examples/CMakeFiles/fpcalc.dir/all] Error 2
make: *** [all] Error 2
I believe I've got a chromaprint package and i'm running make install but this is what I get. Right now i'm just trying to get fpcalc to work from the terminal but eventually I would like to get chromaprint to work with python... like in the acoustid python scripts.