Cannot compile chromaprint without ffmpeg (that is, with FFTW3)

535 views
Skip to first unread message

Andrés G. Aragoneses

unread,
Jan 30, 2012, 7:38:09 AM1/30/12
to Acoustid
Hey guys, really interesting project! So I'm jumping right away on it.

First thing I did was clone chromaprint, and tried to compile it via
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=ON . (as said in the
README). After installing some -devel packages, I'm blocked in a point
in which I think there is something wrong: even though I'm trying to
build with the FFTW3 dep instead of FFMPEG, it seems it's requiring me
FFMPEG in the end. This is the output:


andres121@linux-nvjb:~/Documents/code/chromaprint> cmake -
DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=ON .
-- Using FFTW3 for FFT calculations
-- Boost version: 1.46.1
-- Found the following Boost libraries:
-- system
-- filesystem
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 /home/andres121/Documents/
code/chromaprint/examples
FFMPEG_LIBAVCODEC_LIBRARIES
linked by target "fpcalc" in directory /home/andres121/Documents/
code/chromaprint/examples
FFMPEG_LIBAVFORMAT_INCLUDE_DIRS
used as include directory in directory /home/andres121/Documents/
code/chromaprint/examples
FFMPEG_LIBAVFORMAT_LIBRARIES
linked by target "fpcalc" in directory /home/andres121/Documents/
code/chromaprint/examples
FFMPEG_LIBAVUTIL_INCLUDE_DIRS
used as include directory in directory /home/andres121/Documents/
code/chromaprint/examples
FFMPEG_LIBAVUTIL_LIBRARIES
linked by target "fpcalc" in directory /home/andres121/Documents/
code/chromaprint/examples

-- Configuring incomplete, errors occurred!


Any ideas?

Thanks a lot!

Andres

--

Andrés G. Aragoneses

unread,
Jan 30, 2012, 7:41:27 AM1/30/12
to Acoustid
Ok, replying to myself 2 minutes after writing to the mailing list, as
usual:

It seems that without building the examples, everything is fine.

Why do the examples depend on FFMpeg instead of the FFT abstraction?
And if there's a valid reason, why CMake doesn't output a more
understandable message?

Cheers

Lukáš Lalinský

unread,
Jan 30, 2012, 9:05:15 AM1/30/12
to acou...@googlegroups.com
2012/1/30 Andrés G. Aragoneses <kno...@gmail.com>:

> Ok, replying to myself 2 minutes after writing to the mailing list, as
> usual:
>
> It seems that without building the examples, everything is fine.
>
> Why do the examples depend on FFMpeg instead of the FFT abstraction?

Because the example doesn't use FFmpeg for FFT calculations, but for
decoding audio files.

> And if there's a valid reason, why CMake doesn't output a more
> understandable message?

No particular reason. :)

Lukas

khanna...@gmail.com

unread,
Jul 8, 2012, 9:23:02 AM7/8/12
to acou...@googlegroups.com
If you want to build with examples, you should get the FFMpeg development headers. I got the libavcodec and libavformat headers on Ubuntu -

sudo apt-get install libavcodec-dev
sudo apt-get install libavformat-dev

cmake worked smoothly after this.

Thanks,
Vikesh

alas...@alastair.pro

unread,
Mar 2, 2013, 12:00:54 PM3/2/13
to acou...@googlegroups.com, khanna...@gmail.com
The worked in Ubuntu 12.10, thanks! :-)
Reply all
Reply to author
Forward
0 new messages