LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-29-2012, 07:41 AM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
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
 
Old 01-29-2012, 08:39 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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
 
1 members found this post helpful.
Old 01-29-2012, 08:41 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Make sure you have the latest version of:
http://www.ece.uvic.ca/~frodo/jasper/
 
Old 01-29-2012, 08:47 AM   #4
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
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"
 
Old 01-29-2012, 08:49 AM   #5
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
weibullguy I added -ljasper to the build flags and it compiled.

Thanks
 
Old 01-29-2012, 09:00 AM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by arubin View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Automated dcraw and cjpeg script from crontab henkka Programming 3 01-05-2012 02:33 PM
gimp won't open raw photo due to dcraw 5matyb5 Linux - General 3 04-18-2007 08:44 AM
dcraw gazza Linux - Software 6 09-16-2005 04:33 PM
RAW images - dcraw jaa1180 Linux - Software 7 03-17-2004 06:02 PM
dcraw 48 bit davidschob Linux - Software 0 03-04-2004 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration