biometric-technologies / nist-biometric-image-software-nbis

NIST Biometric Image Software (https://www.nist.gov/services-resources/software/nist-biometric-image-software-nbis)
3 stars 3 forks source link

MSYS compilation Errors #1

Open hafedh-trimeche opened 1 year ago

hafedh-trimeche commented 1 year ago

Hello,

Please note these errors generated after initiating these commands (MINGW64_NT-10.0-22621 3.4.6.x86_64 2023-04-01):

./setup.sh /d/DevStudio/nist-biometric-image-software-nbis/64 --MSYS --64
make config
make it
[ 90%] Linking C executable ../../../bin/opj_decompress.exe
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0x4a4): undefined reference to `jpeg_write_raw_data'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0x7d5): undefined reference to `jpeg_finish_compress'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0x938): undefined reference to `jpeg_set_colorspace'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0x964): undefined reference to `jpeg_std_error'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0x9c0): undefined reference to `jpeg_CreateDecompress'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0xa05): undefined reference to `jpeg_abort'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0xa62): undefined reference to `jpeg_abort'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0xa94): undefined reference to `jpeg_std_error'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0xaf0): undefined reference to `jpeg_CreateCompress'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0xbb5): undefined reference to `jpeg_write_tables'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0xc44): undefined reference to `jpeg_finish_decompress'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0xc94): undefined reference to `jpeg_read_raw_data'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0xf7b): undefined reference to `jpeg_read_header'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0xfc5): undefined reference to `jpeg_start_decompress'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0x1282): undefined reference to `jpeg_read_scanlines'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0x1532): undefined reference to `jpeg_write_scanlines'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0x1785): undefined reference to `jpeg_start_compress'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0x17da): undefined reference to `jpeg_suppress_tables'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0x182b): undefined reference to `jpeg_set_quality'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0x1875): undefined reference to `jpeg_set_defaults'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0x239d): undefined reference to `jpeg_destroy'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.text+0x24a6): undefined reference to `jpeg_resync_to_restart'
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../thirdparty/lib/libtiff.a(tif_jpeg.c.obj):tif_jpeg.c:(.rdata$.refptr.jpeg_resync_to_restart[.refptr.jpeg_resync_to_restart]+0x0): undefined reference to `jpeg_resync_to_restart'
collect2.exe: error: ld returned 1 exit status
make[5]: *** [src/bin/jp2/CMakeFiles/opj_decompress.dir/build.make:183: bin/opj_decompress.exe] Error 1
make[4]: *** [CMakeFiles/Makefile2:453: src/bin/jp2/CMakeFiles/opj_decompress.dir/all] Error 2
make[3]: *** [Makefile:156: all] Error 2
make[3]: Leaving directory '/d/DevStudio/nist-biometric-image-software-nbis/openjp2/src/lib/openjp2/build'
make[2]: *** [/d/DevStudio/nist-biometric-image-software-nbis/buildutil/openjp2_libs.mak:60: libs] Error 1
make[2]: Leaving directory '/d/DevStudio/nist-biometric-image-software-nbis/openjp2/src'
make[1]: *** [/d/DevStudio/nist-biometric-image-software-nbis/buildutil/package.mak:182: libs] Error 1
make[1]: Leaving directory '/d/DevStudio/nist-biometric-image-software-nbis/openjp2'
make: *** [Makefile:151: it] Error 1

Best regards

hafedh-trimeche commented 1 year ago

Hi,

Command changed to: ./setup.sh /d/DevStudio/nist-biometric-image-software-nbis/64 --MSYS --64 --STDLIBS

generated these errors:

gcc -m64 /d/DevStudio/nist-biometric-image-software-nbis/an2k/obj/src/bin/histogen/histogen.o /d/DevStudio/nist-biometric-image-software-nbis/an2k/obj/src/bin/histogen/chkfile.o   -o /d/DevStudio/nist-biometric-image-software-nbis/an2k/bin/histogen
D:/msys/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/DevStudio/nist-biometric-image-software-nbis/an2k/obj/src/bin/histogen/chkfile.o:chkfile.c:(.bss+0x6c8): multiple definition of `histo_head'; D:/DevStudio/nist-biometric-image-software-nbis/an2k/obj/src/bin/histogen/histogen.o:histogen.c:(.bss+0x1b8): first defined here
collect2.exe: error: ld returned 1 exit status
make[4]: *** [/d/DevStudio/nist-biometric-image-software-nbis/buildutil/bin.mak:68: /d/DevStudio/nist-biometric-image-software-nbis/an2k/bin/histogen] Error 1
make[4]: Leaving directory '/d/DevStudio/nist-biometric-image-software-nbis/an2k/src/bin/histogen'
make[3]: *** [/d/DevStudio/nist-biometric-image-software-nbis/buildutil/an2k_bins.mak:46: bins] Error 1
make[3]: Leaving directory '/d/DevStudio/nist-biometric-image-software-nbis/an2k/src/bin'
make[2]: *** [/d/DevStudio/nist-biometric-image-software-nbis/buildutil/src.mak:52: bins] Error 1
make[2]: Leaving directory '/d/DevStudio/nist-biometric-image-software-nbis/an2k/src'
make[1]: *** [/d/DevStudio/nist-biometric-image-software-nbis/buildutil/package.mak:211: bins] Error 1
make[1]: Leaving directory '/d/DevStudio/nist-biometric-image-software-nbis/an2k'
make: *** [Makefile:152: it] Error 1

Best regards.