Thursday, 28 April 2011

Howto Compile dcraw on OSX

dcraw is cool and all, but the maintainer of the OSX binary isn't very timely. Currently only v 8.99 is available, which is well over 15 months old, while the windows version is at 9.07. No matter, we can compile ourselves!
  1. get dcraw.c
  2. put it somewhere eg ~/downloads
  3. open terminal and CD to ~/downloads
  4. run

    gcc -o dcraw -O4 dcraw.c -lm -DNO_JPEG -DNO_LCMS

  5. ignore the errors

    dcraw.c: In function ‘convert_to_rgb’:
    dcraw.c:8326: warning: passing argument 1 of ‘pseudoinverse’ from incompatible pointer type


  6. produces a file 'dcraw' in the downloads folder
  7. switch to finder and do command-shift-g
  8. type /bin
  9. move dcraw from downloads to /bin
Ready to run!

No comments:

Post a Comment