README.RawSpeed.txt 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ================= Compile LibRaw with RawSpeed support ========================
  2. 0) RawSpeed version:
  3. LibRaw supports 'master' version of RawSpeed library: https://github.com/darktable-org/rawspeed/tree/master
  4. Although this version is really outdated, newer versions does not looks stable enough for production
  5. use (for example, this critical issue not fixed for 10+ months: https://github.com/darktable-org/rawspeed/issues/100 )
  6. 1) Prerequisites
  7. To build RawSpeed you need libxml2, iconv, and JPEG library installed on your
  8. system.
  9. 2) Build RawSpeed:
  10. -- consult http://rawstudio.org/blog/?p=800 for details
  11. -- Win32: you need POSIX Threads for Win32 installed on your system
  12. (http://sources.redhat.com/pthreads-win32/)
  13. -- use provided RawSpeed/rawspeed.samsung-decoder.patch to fix
  14. old Samsung decoder bug
  15. -- you may use qmake .pro files supplied in LibRaw distribution
  16. (RawSpeed/rawspeed.qmake-pro-files.patch)
  17. Adjust path to libraries/includes according to your setup.
  18. -- Win32: you need to add __declspec(..) to external C++ classes.
  19. Use patch provided with LibRaw (RawSpeed/rawspeed.win32-dll.patch)
  20. -- Unix: you need to define rawspeed_get_number_of_processor_cores() call
  21. For most unix systems (Linux, MacOS X 10.4+, FreeBSD) patch provided
  22. with LibRaw (RawSpeed/rawspeed.cpucount-unix.patch) should work.
  23. 3) Build LibRaw with RawSpeed support:
  24. Win32:
  25. --Uncomment CFLAGS_RAWSPEED and LDFLAGS_RAWSPEED lines in
  26. Makefile.msvc. Adjust paths to libraries/includes if needed.
  27. -- run nmake -f Makefile.msvc
  28. Unix/MacOS:
  29. -- Uncomment CFLAGS/LDADD lines in RawSpeed section in Makefile.dist
  30. -- Uncomment RAWSPEED_DATA line if you wish to rebuild
  31. internal copy of RawSpeed's cameras.xml
  32. -- run make -f Makefile.dist
  33. Compile options:
  34. -- You may specify -DNOSONY_RAWSPEED define if you do not want to use
  35. RawSpeed's Sony formats decoder (because result of this decoder is
  36. different from LibRaw's built-in decoder)
  37. 4) Build/run your Apps with LibRaw+RawSpeed
  38. -- Build as usual, no changes required in your apps unless you
  39. access LibRaw::imgdata.rawdata.raw_image[] directly
  40. -- you may turn off RawSpeed support on runtime by setting
  41. imgdata.params.use_rawspeed to 0.
  42. -- You'll need all shared libraries you linked to at runtime (libxml2,
  43. iconv, LibJPEG, and posix threads on Win32).