jcelaya / hdrmerge

HDR exposure merging
http://jcelaya.github.io/hdrmerge/
Other
362 stars 78 forks source link

Wrong include path for LibRaw header #94

Closed aferrero2707 closed 7 years ago

aferrero2707 commented 7 years ago

The sources include the LibRaw header this way:

#include<libraw/libraw.h>

However, the cmake configuration system defines a compiler option for LibRaw header inclusion like this:

-IPREFIX/libraw

PREFIX is usually /usr/include for system-wide development files, but might be different if a custom LibRaw is being used, for example to have a version newer that the one supplied by the distribution.

However, due to the way the LibRaw header in included in the sources, the one in /usr/include/libraw is always used regardless of the compiler options.

The fix is to include the LibRaw header in this way:

#include<libraw.h>

I've checked that this allows to pick the header from a custom LibRaw version under Linux, however I have not tested it on other platforms...