illes/raspiraw

Can't find the jpeg library during MAKE

Opened this issue · 4 comments

Hi, after doing make, it outputs the following:

[...]
make[4]: Leaving directory `/home/pi/raspiraw-master/tiff-3.8.2/html'
make[3]: Leaving directory `/home/pi/raspiraw-master/tiff-3.8.2/html'
make[2]: Leaving directory `/home/pi/raspiraw-master/tiff-3.8.2/html'
make[2]: Entering directory `/home/pi/raspiraw-master/tiff-3.8.2'
make[3]: Entering directory `/home/pi/raspiraw-master/tiff-3.8.2'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/home/pi/raspiraw-master/local/share/doc/tiff-3.8.2" || mkdir -p -- "/home/pi/raspiraw-master/local/share/doc/tiff-3.8.2"
 /usr/bin/install -c -m 644 'COPYRIGHT' '/home/pi/raspiraw-master/local/share/doc/tiff-3.8.2/COPYRIGHT'
 /usr/bin/install -c -m 644 'ChangeLog' '/home/pi/raspiraw-master/local/share/doc/tiff-3.8.2/ChangeLog'
 /usr/bin/install -c -m 644 'README' '/home/pi/raspiraw-master/local/share/doc/tiff-3.8.2/README'
 /usr/bin/install -c -m 644 'RELEASE-DATE' '/home/pi/raspiraw-master/local/share/doc/tiff-3.8.2/RELEASE-DATE'
 /usr/bin/install -c -m 644 'TODO' '/home/pi/raspiraw-master/local/share/doc/tiff-3.8.2/TODO'
 /usr/bin/install -c -m 644 'VERSION' '/home/pi/raspiraw-master/local/share/doc/tiff-3.8.2/VERSION'
make[3]: Leaving directory `/home/pi/raspiraw-master/tiff-3.8.2'
make[2]: Leaving directory `/home/pi/raspiraw-master/tiff-3.8.2'
make[1]: Leaving directory `/home/pi/raspiraw-master/tiff-3.8.2'
cc -c raspi_dng.c -I./local/include -o raspi_dng.o
cc raspi_dng.o local/lib/libtiff.a -ljpeg -lm -lz -o raspi_dng
/usr/bin/ld: cannot find -ljpeg
collect2: ld returned 1 exit status
make: *** [raspi_dng] Error 1
root@raspberrypi:/home/pi/raspiraw-master#

It seems that the compiler can't find the jpeg library. I've tried installing the jpeg library from http://libjpeg.sourceforge.net/ but with no luck. Any suggestion?

I just encountered this same error:

make[1]: Leaving directory `/home/pi/Desktop/raspiraw-master/tiff-3.8.2'
cc -c raspi_dng.c -I./local/include -o raspi_dng.o
cc raspi_dng.o local/lib/libtiff.a -ljpeg -lm -lz -o raspi_dng
/usr/bin/ld: cannot find -ljpeg
collect2: ld returned 1 exit status
make: *** [raspi_dng] Error 1

Any luck on a workaround?

actually - just kidding
I was able to fix it by just running sudo apt-get install libjpeg-dev
then rerunning make

No luck yet.

Saludos
David Ponce

-------- Original message --------
From: mgrady3 notifications@github.com
Date: 13/05/2014 22:25 (GMT-05:00)
To: illes/raspiraw raspiraw@noreply.github.com
Cc: dponce85 dponce_85@hotmail.com
Subject: Re: [raspiraw] Can't find the jpeg library during MAKE (#1)

I just encountered this same error:

make[1]: Leaving directory `/home/pi/Desktop/raspiraw-master/tiff-3.8.2'
cc -c raspi_dng.c -I./local/include -o raspi_dng.o
cc raspi_dng.o local/lib/libtiff.a -ljpeg -lm -lz -o raspi_dng
/usr/bin/ld: cannot find -ljpeg
collect2: ld returned 1 exit status
make: *** [raspi_dng] Error 1

Any luck on a workaround?


Reply to this email directly or view it on GitHub:
#1 (comment)

I was able to fix the problem fairly simply by manually installing libjpeg via the command 'sudo apt-get install libjpeg-dev'

after that I rebooted the RPi and re ran the make command for raspi_dng

the make command executed flawlessly at that point and I was able to test raspi_dng according to the instructions in the readme after installing exiftool via 'sudo apt-get install libimage-exiftool-perl'

worked just fine

mgrady3's solution is correct - just did this on a fresh Raspbian Stretch install. Note that you can do both in one line:

sudo apt-get install libjpeg-dev libimage-exiftool-perl

Then re-run make and it should work fine. You can also run

sudo cp raspi_dng /usr/local/bin/

to add the binary to your path.