Unsolved Compile libraw on windows 7
-
It's for the pkg-config tool that is not standard on Windows but that you can install.
Hence you need to add to
LIBS
the path and library to link to for libraw. -
I think I added the path and library to LIBS as
else:win32: LIBS += $$PWD/libraw/win32/libraw.a -
LIBS += -L$$PWD/libraw/win32/ -lraw
-
@SGaist
The contents of libraw.pc.in isprefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@Name: libraw
Description: Raw image decoder library (non-thread-safe)
Requires: @PACKAGE_REQUIRES@
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lraw -lstdc++@PC_OPENMP@
Cflags: -I${includedir}/librawso I set
INCLUDEPATH += $$PWD/libraw
LIBS += -L$$PWD/libraw/win32/ -lraw -lstdc++
but that gives me the same error. -
Which version of MinGW did you use to build libraw ?
-
@SGaist
I used mingw 4.9.2. -
The one provided with Qt ?
-
This post is deleted! -
@SGaist
Yes, It came with 5.6.2 -
Can you check against the latest version of LibRaw ?
There might be a problem with their handling of the imported/exported symbol.