Win32 linking in MinGW
Hi,
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.
When I tried to link (using MinGW) the DLL you provide (0.11.3), I get these errors:
./generated_obj\pfsinraw.o: In function `Z19readRawIntoPfsFramePKcS0_P16LuminanceOptionsb':
C:\Qt\luminance\luminance-v2.0.2-pre1/src/Fileformat/pfsinraw.cpp:43: undefined reference to `LibRaw::LibRaw(unsigned int)'
C:\Qt\luminance\luminance-v2.0.2-pre1/src/Fileformat/pfsinraw.cpp:94: undefined reference to `LibRaw::open_file(char const*, long
long)'
./generated_obj\pfsinraw.o: In function `~LibRaw':
C:\Qt\luminance\luminance-v2.0.2-pre1/src/Fileformat/pfsinraw.cpp:180: undefined reference to `LibRaw::recycle()'
./generated_obj\pfsinraw.o: In function `Z19readRawIntoPfsFramePKcS0_P16LuminanceOptionsb':
C:\Qt\luminance\luminance-v2.0.2-pre1/src/Fileformat/pfsinraw.cpp:99: undefined reference to `LibRaw::unpack()'
C:\Qt\luminance\luminance-v2.0.2-pre1/src/Fileformat/pfsinraw.cpp:104: undefined reference to `LibRaw::dcraw_process()'
C:\Qt\luminance\luminance-v2.0.2-pre1/src/Fileformat/pfsinraw.cpp:118: undefined reference to `LibRaw::dcraw_make_mem_image(int*)'
C:\Qt\luminance\luminance-v2.0.2-pre1/src/Fileformat/pfsinraw.cpp:165: undefined reference to `LibRaw::dcraw_ppm_tiff_writer(char
const*)'
C:\Qt\luminance\luminance-v2.0.2-pre1/src/Fileformat/pfsinraw.cpp:167: undefined reference to `LibRaw::unpack_thumb()'
C:\Qt\luminance\luminance-v2.0.2-pre1/src/Fileformat/pfsinraw.cpp:171: undefined reference to `LibRaw::dcraw_thumb_writer(char con
st*)'
C:\Qt\luminance\luminance-v2.0.2-pre1/src/Fileformat/pfsinraw.cpp:177: undefined reference to `LibRaw::dcraw_clear_mem(libraw_proc
essed_image_t*)'
C:\Qt\luminance\luminance-v2.0.2-pre1/src/Fileformat/pfsinraw.cpp:178: undefined reference to `LibRaw::recycle()'
./generated_obj\pfsinraw.o: In function `~LibRaw':
C:\Qt\luminance\luminance-v2.0.2-pre1/../DEPs/include/libraw/libraw/libraw.h:133: undefined reference to `LibRaw::recycle()'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [release\luminance.exe] Error 1
Any idea?
Thanks!
Recent comments