DNG4PS-2 Mac OS X build - page 2 - RAW Shooting and Processing - CHDK Forum

DNG4PS-2 Mac OS X build

  • 53 Replies
  • 27227 Views
Re: DNG4PS-2 Mac OS X build
« Reply #10 on: 27 / March / 2008, 05:40:30 »
Advertisements
yep... I've also had endianness issues while trying to build universal binaries. Modifying the CPPFLAGS section of the Makefile, changing -DqDNGLittleEndian=1 to -DqDNGBigEndian=1 should resolve some of the issues, but there might be others left... I'll add instructions if I figure it out before you do. Good luck!

Re: DNG4PS-2 Mac OS X build
« Reply #11 on: 27 / March / 2008, 05:45:55 »
forgot to add... the resulting DNG files from converting CRW+JPG from my G7 using the intel build work perfectly and are identical to the ones produced by ArtDen's builds.

Re: DNG4PS-2 Mac OS X build
« Reply #12 on: 27 / March / 2008, 07:50:10 »
thanks a lot for this info

btw. just in case: you should also be able to test the
ppc version or part of the universal binary by running
it via rosetta (i think there is a setting in the file->info
dialog for this)

best wishes - image13

Re: DNG4PS-2 Mac OS X build
« Reply #13 on: 27 / March / 2008, 14:10:03 »
hi,

ok - recompiled it with the above mentioned big
endian define ... now the dng container seems to
be ok: exiftool can read the exif info correctly
and dcraw -i -v can identify the file properly - it
will even decode it, but the result is not good -
acr does not accept the resulting dng files of this
version dng4ps2 ... i think the problem now is
inside of the dng4ps2 code - ArtDen, any idea?
please let me know if i should try something

a lot of thanks in advance and best wishes

image13


*

Offline ArtDen

  • ***
  • 175
    • dng4ps2
Re: DNG4PS-2 Mac OS X build
« Reply #14 on: 27 / March / 2008, 14:21:58 »
image13, I will change my sources for working with big and little endian later.

Re: DNG4PS-2 Mac OS X build
« Reply #15 on: 27 / March / 2008, 18:00:07 »
hi ArtDen,

that sounds good - just let me know when there is something
to test or whenever you need sample files to analyse

best wishes - image13

*

Offline ArtDen

  • ***
  • 175
    • dng4ps2
Re: DNG4PS-2 Mac OS X build
« Reply #16 on: 28 / March / 2008, 04:39:42 »
that sounds good - just let me know when there is something
to test or whenever you need sample files to analyse
First I will try to work only with sources.

Btw, can somebody upload screenshots of dng4ps2's windows? I want to see how my program looks in MacOS :)

Re: DNG4PS-2 Mac OS X build
« Reply #17 on: 28 / March / 2008, 06:27:58 »
Hehe, your baby looks just beautiful on the mac!   :D
I've added some screenshots to the download page. The only glaring current interface problem is in the conversion window, where the progress bar isn't properly updated at the end of a conversion, without clicking in the window first.


*

Offline RyeBrye

  • **
  • 73
  • SD-870
Re: DNG4PS-2 Mac OS X build
« Reply #18 on: 29 / March / 2008, 17:36:06 »
Firstly: Thank you very much for porting the build over to Mac - just in time for me to want to use it too :)

It works great on my SD870 images (although I don't see a popup for my camera name in the list, since the DNG files seem to work just fine in Aperture I'm sure it's not a big deal)

One side note:

(i only changed the gcc optimization level in the Makefile
from -O4 to -O2 to be on the safe side)

is the build really using O4? Any O greater than 3 just reverts to 3... There are some proposals out there for an actual O4 optimization level, but they aren't implemented yet... and specifying to use O4 might cause problems if the O4 optimizations break things when they do finally get put in place.

Just my two cents.

Ryan

What about -O levels higher than 3?

"Some users boast about even better performance obtained by using -O4, -O9, and so on, but the reality is that -O levels higher than 3 have no effect. The compiler may accept CFLAGS like -O4, but it actually doesn't do anything with them. It only performs the optimizations for -O3, nothing more.

Need more proof? Examine the gcc source code"

Source: Gentoo Linux Documentation
--
  Compilation Optimization Guide

Re: DNG4PS-2 Mac OS X build
« Reply #19 on: 31 / March / 2008, 03:53:11 »
RyeBrye: Glad that it works for you. When converting RAW from SD870 you probably (correct me if i'm mistaken) won't get correctly calibrated color matrices currently, but if it works ok for you, then great!

As you correctly point out, -O4 is currently just an alias for -O3. Consider it a harmless typo until it starts breaking things...

BTW, I just want to clarify that no traditional "porting" was necessary, since ArtDen, Adobe and the wxWidgets people were nice enough to keep their respective code cross platform. I just supplied build commands. I haven't had to modify a single byte of the original source code for the mac build.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal