I'm a developer of Luminance HDR and in the next release (2.0.2, hopefully coming soon) we decided to use LibRaw has RAW converter instead of using dcraw as an external command line tool (old solution). After a bit of work, we implemented what we needed and it worked fine with Linux and OS X, but we are having problems in Windows, because our code is multithread so we need the thread-safe version.
These versions are not compatible.
MinGW version does not contain any .dll, only libraw.a for static linking.
You need either rebuild LibRaw from sources using mingw (mingw32-make -f Makefile.mingw) or download already built -MinGW version.
Unfortunately, the static build made by MinGW (I did it already) of the thread-safe library (libraw_r) gives me exactly the same error during the linking. I'll try with the one included in your link this evening and I'll let you know.
2) Remove -DLIBRAW_NOTHREADS from all compilation rules.
What does -pthread stays for?
What does -pthread stays for? My compiler (GCC 4.4.0 on MinGW) says that it is a unrecognized option.
I'm not sure that MinGW has multi-thread safe runtime.
Finally, I've buildt it. If somebody else is interested in building the thread-safe library using MinGW, here the Makefile (for v. 0.11.3). It works fine.
c:/progra~2/codebl~1/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
Hi, Im trying to build Luminance HDR using CodeBlocks. I've obtained libraw using this makefile but I'm getting some errors related to references in libraw.
Any idea how to solve it or the origin of this problem?
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
Unwind_resume is part of gcc's exception handler (according to goole :).
You need to enable exceptions library (e.g. via linking by g++, not gcc) on link stage.