On Mon, 27 Oct 2025 at 12:56:20 +0000, Simon McVittie wrote:
Reproducible by attempting to build (for example)
libsdl3-mixer/experimental. This package Build-Depends on libflac-dev
and uses the C libFLAC, but does not use libFLAC++.
...
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/FLAC/targets.cmake:110 (message):
The imported target "FLAC::FLAC++" references the file
"/usr/lib/x86_64-linux-gnu/libFLAC++.so.11.0.0"
but this file does not exist.
After working around this by adding a B-D on libflac++-dev, I still get
a build failure, but this time it's:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/FLAC/targets.cmake:110 (message):
The imported target "FLAC::flacapp" references the file
"/usr/bin/flac"
but this file does not exist.
Having libflac-dev pull in the flac package (command-line tools) to
avoid this error doesn't seem ideal...
If libflac-dev (or libflac++-dev or whatever package installs the CMake
fles) does need to add a Depends: flac, then please make flac
"Multi-Arch: foreign" if possible, otherwise it will become impossible
to co-install libflac-dev for more than one architecture at the same
time.
smcv