#1012610 libturbojpeg0-dev: CMake target references to non exist static library 'libjpeg.a'

Package:
libturbojpeg0-dev
Source:
libjpeg-turbo
Description:
Development files for the TurboJPEG library
Submitter:
Anton
Date:
2022-06-10 09:39:03 UTC
Severity:
normal
#1012610#5
Date:
2022-06-10 09:20:01 UTC
From:
To:
Dear Maintainer,
After install libturbojpeg0-dev package I wanna use CMake to find
library and header files. There is is simple cmake scenario for that:

apt-get install libturbojpeg0-dev  cmake g++
# CMakeLists.txt
cmake_minimum_required(VERSION 3.15)
project(test)
find_package(libjpeg-turbo REQUIRED)

Instead of success configuration I receive a error, CMake module
cannot find '/usr/lib/x86_64-linux-gnu/libjpeg.a', which not exists.
Missed library provided by 'libjpeg62-turbo-dev', which will be pulled by
install 'libjpeg-dev'. These packages are not install with 'libturbojpeg0-dev'
I think there is missed dependency 'libjpeg-dev' for this package.

#1012610#10
Date:
2022-06-10 09:35:57 UTC
From:
To:
Nope, you are wrong here. libturbojpeg is a different library. The CMake is bit misleading, but it libjpeg-turbo is looking for libjpeg implementation provided by libjpeg-turbo project, so actually things work as they should.

Ondřej
--
Ondřej Surý <ondrej@sury.org> (He/Him)