[CMake] problems finding FLAC

Alexander Neundorf a.neundorf-work at gmx.net
Mon Feb 4 16:38:40 EST 2008


On Friday 25 January 2008, Zé wrote:
> Im building kdemultimedia4 and i have all flac files isntalled, however
> cmake isnt able to find the FLAC files, and outputs this:
>
> ---------------------------------------------------------------------------
>-- -- The following external packages were located on your system.
> -- This installation will have the extra features provided by these
> packages. + taglib
> + OggVorbis
> + MusicBrainz
> + TunePimp
> + cdparanoia
> ---------------------------------------------------------------------------
>-- -- The following OPTIONAL packages could NOT be located on your system.
> -- Consider installing them to enable more features from this software. +
> FLAC: An encoder/decoder for the Free Lossless Audio Codec
> <http://flac.sourceforge.net>
> Required to build the AudioCD FLAC plugin.
>
> the FLAC devel files are in /usr/lib/FLAC
>
> Can anyone explain me howto do so that cmake can find FLAC files?

Is this KDE from subversion or 4.0.0 ?
Please have a look at FindFlac.cmake (in KDEDIR/share/apps/cmake/modules) and 
insert some debug output like this:
message(STATUS "FLAC_INCLUDE_DIR: ${FLAC_INCLUDE_DIR}")
and accordingly for the other variables. Maybe you will see already the 
problem then, if not, please post the output here (or better to 
kde-buildsystem at kde.org)

Alex


More information about the CMake mailing list