DNG4PS-2 on Linux - page 2 - RAW Shooting and Processing - CHDK Forum supplierdeeply

DNG4PS-2 on Linux

  • 15 Replies
  • 10889 Views
Re: DNG4PS-2 on Linux
« Reply #10 on: 17 / June / 2008, 02:33:47 »
Advertisements
Has anyone successfully built and used DNG4PS-2 on Linux.  I have it built and it seems to convert to uncompressed DNG without an issue but Lightzone, rawstudio, and UFRaw all crash when I try to open the resulting file.  DNG4PS-2 just hangs when I attempt to convert to a compressed DNG.

Hello, I have built the latest beta http://dng4ps2.homeftp.org/beta/dng4ps2-0.2.2beta-25-sources.zip and found the same crashing problem with compressed DNG's. I emailed the author with details about the crash.

And yes, haven't find any program that could open those files. Imagemagick (convert  crw_1907.DNG crw_1907.tiff) tells me:

convert: ShadowScale: Rational with zero denominator (num = 1). `crw_1907.DNG'.

The windows binary run under WINE, however, works perfectly, as verified by others too. The resulting DNG's open fine. dcraw -i -v says:

Filename: crw_1907.DNG
Timestamp: Sun Jun 15 09:58:12 2008
Camera: Canon DIGITAL IXUS 860 IS DNG
ISO speed: 80
Shutter: 1/8.0 sec
Aperture: f/2.8
Focal Length: 4 mm
Secondary pixels: no
Embedded ICC profile: no
Decodable with dcraw: yes
Thumb size:   256 x 192
Full size:   3336 x 2480
Image size:  3292 x 2466
Output size: 2466 x 3292
Raw colors: 3
Filter pattern: GBRGGBRGGBRGGBRG
Daylight multipliers: 1.610551 0.986053 1.876544
Camera multipliers: 1.610551 0.986053 1.876544 0.000000


When I do the same for the native linux conversion result, it says:

Filename: crw_1907.DNG
Timestamp: Sun Jun 15 09:58:12 2008
Camera: Canon DIGITAL IXUS 860 IS DNG
ISO speed: 80
Shutter: 0.0 sec
Aperture: f/inf
Focal Length: -2147483648 mm
Secondary pixels: no
Embedded ICC profile: no
Decodable with dcraw: yes
Thumb size:   256 x 192
Full size:   3336 x 2480
Image size:  3336 x 2
Output size:    0 x 3336
Raw colors: 3
Filter pattern: GBRGGBRGGBRGGBRG
Daylight multipliers: nan nan nan

so there is something wrong in the header I quess.

By examining the files with hexdump and diff, it seems that the files are only slightly different. The most differences are just right after the <?xpacket end="w"?> tag. And to me it seems that the native linux version just has the same information, but in slightly different position and with some extra bytes. For example, the wine version has hex sequence: 15 3c 00 00 10 27  00 00 74 ea ff ff 10 27, and linux version has: 15 3c 00 00 00 00  00 00 10 27 00 00 00 00 00 00 74 ea ff ff ff ff  ff ff 10 27. 

Could it be something to do with 32 bit and 64bit machines, since the windows binary is 32 bit, and my native linux version is built for 64 bit? That could explain why some of the byte sequences are longer.

I'll try to build a 32 bit version and see how it performs.

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: DNG4PS-2 on Linux
« Reply #11 on: 10 / August / 2008, 07:58:55 »
I'm having problems building dng4ps2-0.2.3-beta12-sources.zip on debian sid.

It fails at ExpatAdapter.cpp:10, complaining that strncmp is not a member of std.
The default compiler is gcc-4.3, so I'm assuming codeblocks is using that one.

(I wrote a more elaborate report but the forum gave me an error...)


edit:the offending code is really in XMPCore_Impl.hpp:372

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: DNG4PS-2 on Linux
« Reply #12 on: 10 / August / 2008, 08:01:19 »
(let's try this one more time)

Code: [Select]
In file included from /src/external_libs/xmp_sdk/XMPCore/ExpatAdapter.cpp:10:
/src/external_libs/xmp_sdk/XMPCore/XMPCore_Impl.hpp: In function 'bool IsPathPrefix(const char*, const char*)':
/src/external_libs/xmp_sdk/XMPCore/XMPCore_Impl.hpp:372: error: 'strlen' is not a member of 'std'/mnt/s1/in/chdk/dng4ps2/src/external_libs/xmp_sdk/XMPCore/XMPCore_Impl.hpp:373: error: 'strncmp' is not a member of 'std'

gcc-4.3 4.3.1-8
codeblocks 1.0svn5177
libwxgtk2.8-dev 2.8.7.1-1


(yay \p/ now the forum accepts it...)

*

Offline ArtDen

  • ***
  • 175
    • dng4ps2
Re: DNG4PS-2 on Linux
« Reply #13 on: 10 / August / 2008, 21:15:55 »
It looks like this is bug of xmp_sdk: XMPCore_Impl error strlen - Google Search . I will try to update xmp_sdk with new version later


Re: DNG4PS-2 on Linux
« Reply #14 on: 21 / August / 2008, 16:21:44 »
« Last Edit: 21 / August / 2008, 17:13:32 by moqua »
IXUS 860, juciphox 469

*

Offline nkri

  • *
  • 10
  • S3 IS
Re: DNG4PS-2 on Linux
« Reply #15 on: 25 / August / 2008, 20:18:31 »
Have you tried UFRaw?  It works flawlessly on my Ubuntu installation and is very user-friendly :)  It's in the repositories if you are using Ubuntu/Debian, and the website (ufraw.sourceforge.net) has packages for most of the other popular distributions.  I believe you can also compile it if needed, but I don't know where to get the source code :(

Good luck!
-nkri

PS: which distro are you using?
95% of people listen to rap.  If you are part of the other 5% that listens to real music, put this in your signature!

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal