header files not included in install of libjpeg-turbo

Asked by Gerry Suggitt

(I'm relatively new to development in the Linux world, so I may say something stupid)

I am creating a Docker container into which I have installed libjpeg-turbo:
apt-get --assume-yes install libjpeg-turbo-progs

I discovered that I needed to use libjpg-turbo-progs from https://launchpad.net/ubuntu/+source/libjpeg-turbo

I then copy my C++ application in to the container and compile it in the container.

But #include "jpeglib.h" gives the error that it cannot find the header file. (And that is true - I searched and it it nowhere)

So I tried going to the GIT repository and downloading the header files and including them in my C++ source.

But there is a problem. One header file jconfig.h does not exist. It turns out this is generated during the build of the libjpeg-turbo binaries. And this generated file must match the binary library.

In the header file, among other things, are checks against the library version. The library version is embedded in the (generated) header file.

So the header files are a critical part of the binary package and need to be included in it.

I have found this with other packages I install - the headers are not included with the library.

Or am I just approaching this wrong?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu libjpeg-turbo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

The C-header files usually are in a separate package named (whatever)-dev

I assume that in your case you have to install libjpeg-turbo8-dev.

Can you help with this problem?

Provide an answer of your own, or ask Gerry Suggitt for more information if necessary.

To post a message you must log in.