LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Cannot compile dcraw 9.12 (https://www.linuxquestions.org/questions/slackware-14/cannot-compile-dcraw-9-12-a-926307/)

arubin 01-29-2012 07:41 AM

Cannot compile dcraw 9.12
 
I would like to install dcraw 9.12
The slackbuild for 9.08 compiles Ok but if I try the 9.12 source code I get

Quote:

dcraw.c: (.text+0x66f): undefined reference to `jas_init'
dcraw.c: (.text+0x685): undefined reference to `jas_stream_fopen'
dcraw.c: (.text+0x6a4): undefined reference to `jas_stream_seek'
dcraw.c: (.text+0x6b5): undefined reference to `jas_image_decode'
dcraw.c: (.text+0x6e9): undefined reference to `jas_matrix_create'
dcraw.c: (.text+0x788): undefined reference to `jas_image_readcmpt'
dcraw.c: (.text+0xac3): undefined reference to `jas_matrix_destroy'
dcraw.c: (.text+0xacd): undefined reference to `jas_image_destroy'
dcraw.c: (.text+0xae5): undefined reference to `jas_stream_close'
collect2: ld returned 1 exit status

TIA

weibullguy 01-29-2012 08:39 AM

Do you have jasper installed? Does the SlackBuild explicitly link the jasper library such as
Code:

gcc -o dcraw -O4 dcraw.c -lm -ljasper -ljpeg -llcms

H_TeXMeX_H 01-29-2012 08:41 AM

Make sure you have the latest version of:
http://www.ece.uvic.ca/~frodo/jasper/

arubin 01-29-2012 08:47 AM

Yes - 1.900

No
Quote:

gcc \
$SLKCFLAGS -Wall -v \
-o dcraw dcraw.c \
$DCRAW_BUILD_FLAGS \
-DLOCALEDIR=\"/usr/share/locale/\"

SLKCFLAGS="-O2 -fPIC"

DCRAW_BUILD_FLAGS="-lm -ljpeg -llcms -lpng -ltiff"

arubin 01-29-2012 08:49 AM

weibullguy I added -ljasper to the build flags and it compiled.

Thanks

weibullguy 01-29-2012 09:00 AM

Quote:

Originally Posted by arubin (Post 4587392)
weibullguy I added -ljasper to the build flags and it compiled.

Thanks

You're welcome. Now thank me by updating the SlackBuild or sending the current maintainer an e-mail to let them know about the needed change with 9.12.


All times are GMT -5. The time now is 08:31 PM.