Add new comment

Error compiling with Cygwin

Hi support,

I have been trying to compile the libraw 2021-10 master using cygwin on windows 10.

I perform autoreconf --install, no errors are produced.
then I perform ./configure which completes without issues.
Finally i run make and I keep getting the following error:

libtool: compile: g++ -DPACKAGE_NAME=\"LibRaw\" -DPACKAGE_TARNAME=\"libraw\" -DPACKAGE_VERSION=\"0.21.0-Snapshot202110\" "-DPACKAGE_STRING=\"LibRaw 0.21.0-Snapshot202110\"" -DPACKAGE_BUGREPORT=\"info@libraw.org\" -DPACKAGE_URL=\"http://www.libraw.org\" -DSTDC_HEADERS=1 -DHAV
E_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_JPEGLIB_H=1 -DHAVE_JASPER_JASPER_H=1 -I. -DUSE_JPEG -DUSE_JPEG8
-DUSE_JASPER -DUSE_ZLIB -DUSE_LCMS2 -g -O2 -fopenmp -MT src/decoders/fp_dng.lo -MD -MP -MF src/decoders/.deps/fp_dng.Tpo -c src/decoders/fp_dng.cpp -DDLL_EXPORT -DPIC -o src/decoders/.libs/fp_dng.o
src/decoders/fp_dng.cpp: In member function ‘void LibRaw::uncompressed_fp_dng_load_raw()’:
src/decoders/fp_dng.cpp:640:21: error: ‘swab’ was not declared in this scope
640 | swab((char *)dst, (char *)dst, fullrowbytes);
| ^~~~
make: *** [src/decoders/fp_dng.lo] Error 1

The weird thing is that swab is availlable because ./configure shows:

checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes

Anything you can suggest to solve this?

I am using autoconf 2.69, with a newer version autoreconf -install complains about obsolote macros.

Thank you in advance,
Mabula

Forums: