Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libjpeg is missing #46

Closed
inl-pd-autotest opened this issue Jun 15, 2017 · 5 comments
Closed

libjpeg is missing #46

inl-pd-autotest opened this issue Jun 15, 2017 · 5 comments

Comments

@inl-pd-autotest
Copy link

inl-pd-autotest commented Jun 15, 2017

Xubuntu 16.10. Following README, on step ./conifgure I am getting this:

checking for jpeg_read_header in -ljpeg... no
Cannot find libjpeg or you have too old version (v6 or later required).

and can't follow to make because it says this:

make: *** No targets specified and no makefile found.  Stop.

yet

dpkg -l libjpeg*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                        Version            Architecture       Description
+++-===========================-==================-==================-============================================================
ii  libjpeg-turbo8:amd64        1.5.0-0ubuntu1     amd64              IJG JPEG compliant runtime library.
ii  libjpeg-turbo8:i386         1.5.0-0ubuntu1     i386               IJG JPEG compliant runtime library.
ii  libjpeg62:i386              1:6b2-2            i386               Independent JPEG Group's JPEG runtime library (version 6.2)
ii  libjpeg8:amd64              8c-2ubuntu8        amd64              Independent JPEG Group's JPEG runtime library (dependency pa
ii  libjpeg8:i386               8c-2ubuntu8        i386               Independent JPEG Group's JPEG runtime library (dependency pa
ii  libjpeg9:amd64              1:9b-2             amd64              Independent JPEG Group's JPEG runtime library
@tssajo
Copy link

tssajo commented Jun 15, 2017

@inl-pd-autotest Do this:
apt-get install libjpeg-dev
then try ./configure again

@positlabs
Copy link

I'm having the same issue on Mac. What criteria is being used to determine if libjpeg is installed? I can confirm it is installed when I run brew install jpeg, but the jpegoptim installer can't see it for some reason.

@Golmote
Copy link

Golmote commented Mar 4, 2021

Hi! I'm encountering the same issue positlabs described, on a M1 Mac. jpeg is installed using homebrew, but the ./configure fails with the error message described in this issue.

@tjko
Copy link
Owner

tjko commented Mar 4, 2021

You can use option --with-libjpeg=DIR to tell where to look for libjpeg.

Something like:

./configure --with-libjpeg=$HOME/src/jpeg-9a

(assuming you have installed/compiled libjpeg in $HOME/src/jpeg-9a/)

If header files are in different directory vs where the (shared) library file is located at, you may need to specify those using environment variables CPPFLAGS and LDFLAGS.

Something like:

CPPFLAGS="-I /usr/local/include" LDFLAGS="-L /usr/local/lib" ./configure

@Golmote
Copy link

Golmote commented Mar 5, 2021

@tjko Thank you! I managed to make it work using:

./configure --with-libjpeg=/opt/homebrew/Cellar/jpeg/9d

Repository owner locked and limited conversation to collaborators Apr 2, 2022
@tjko tjko converted this issue into discussion #97 Apr 2, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants