LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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, 08:41 AM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,210

Rep: Reputation: 55
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, 09:39 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,753
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
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, 09:41 AM   #3
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

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

Original Poster
Rep: Reputation: 55
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, 09:49 AM   #5
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,210

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

Thanks
 
Old 01-29-2012, 10:00 AM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,753
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:33 PM
gimp won't open raw photo due to dcraw 5matyb5 Linux - General 3 04-18-2007 09:44 AM
dcraw gazza Linux - Software 6 09-16-2005 05:33 PM
RAW images - dcraw jaa1180 Linux - Software 7 03-17-2004 07:02 PM
dcraw 48 bit davidschob Linux - Software 0 03-04-2004 05:31 PM


All times are GMT -5. The time now is 06:59 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration