mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Poppler / openjpeg2 issue


From: Eric Tichansky
Subject: Re: Poppler / openjpeg2 issue
Date: Tue, 15 Jun 2021 15:20:57 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

Stefan

Thanks for your reply.  I grabbed the poppler 21.02.0 source and applied your patch.  However, having build problems with poppler. I'm using the same build arguments per https://github.com/mxe/mxe/blob/master/src/poppler.mk, dependencies are installed from the pre-compiled repository (Buster).  Below are the build commands and error:

mkdir build
cd build/
x86_64-w64-mingw32.static-cmake -DENABLE_UNSTABLE_API_ABI_HEADERS=ON  \
       -DENABLE_TESTS=OFF \
       -DBUILD_GTK_TESTS=OFF \
       -DBUILD_QT5_TESTS=OFF \
        -DBUILD_CPP_TESTS=OFF \
        -DENABLE_SPLASH=ON  \
       -DENABLE_UTILS=OFF  \
       -DENABLE_CPP=ON  \
       -DENABLE_GLIB=ON \
        -DENABLE_GOBJECT_INTROSPECTION=OFF \
        -DENABLE_GTK_DOC=OFF \
        -DENABLE_QT5=ON \
        -DENABLE_LIBOPENJPEG=openjpeg2 \
        -DENABLE_CMS=lcms2 \
        -DENABLE_DCTDECODER=libjpeg \
        -DENABLE_LIBCURL=ON  \
       -DENABLE_ZLIB=ON \
        -DENABLE_ZLIB_UNCOMPRESS=OFF \
        -DSPLASH_CMYK=ON \
        -DUSE_FIXEDPOINT=OFF \
        -DUSE_FLOAT=OFF \
        -DBUILD_SHARED_LIBS=OFF \
        -DENABLE_RELOCATABLE=ON \
        -DEXTRA_WARN=OFF \
        -DFONT_CONFIGURATION=win32 \
        ..

make

...
[ 73%] Linking CXX executable perf-test.exe
/usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_face_globals_free': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afglobal.c:408: undefined reference to `hb_font_destroy' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afglobal.c:409: undefined reference to `hb_buffer_destroy' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_get_coverage': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:127: undefined reference to `hb_font_get_face' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:135: undefined reference to `hb_ot_tags_from_script' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:165: undefined reference to `hb_set_create' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:166: undefined reference to `hb_ot_layout_collect_lookups' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:173: undefined reference to `hb_set_is_empty' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:385: undefined reference to `hb_set_destroy' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:386: undefined reference to `hb_set_destroy' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:387: undefined reference to `hb_set_destroy' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:388: undefined reference to `hb_set_destroy' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:184: undefined reference to `hb_set_create' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:193: undefined reference to `hb_ot_layout_lookup_collect_glyphs' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:185: undefined reference to `hb_set_next' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:212: undefined reference to `hb_set_create' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:213: undefined reference to `hb_ot_layout_collect_lookups' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:224: undefined reference to `hb_set_create' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:233: undefined reference to `hb_ot_layout_lookup_collect_glyphs' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:225: undefined reference to `hb_set_next' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:274: undefined reference to `hb_set_next' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:280: undefined reference to `hb_ot_layout_lookup_would_substitute' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:345: undefined reference to `hb_set_subtract' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:352: undefined reference to `hb_set_next' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_face_globals_new': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afglobal.c:362: undefined reference to `hb_ft_font_create' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afglobal.c:363: undefined reference to `hb_buffer_create' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_get_cluster': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:468: undefined reference to `hb_font_set_scale' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:480: undefined reference to `hb_buffer_clear_contents' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:481: undefined reference to `hb_buffer_add_utf8' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:484: undefined reference to `hb_buffer_guess_segment_properties' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:488: undefined reference to `hb_shape' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:505: undefined reference to `hb_buffer_clear_contents' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:506: undefined reference to `hb_buffer_add_utf8' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:507: undefined reference to `hb_buffer_guess_segment_properties' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:508: undefined reference to `hb_shape' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:510: undefined reference to `hb_buffer_get_glyph_infos' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:511: undefined reference to `hb_buffer_get_glyph_infos' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:530: undefined reference to `hb_buffer_get_length' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:525: undefined reference to `hb_buffer_clear_contents' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_get_elem': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:557: undefined reference to `hb_buffer_get_glyph_infos' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:558: undefined reference to `hb_buffer_get_glyph_positions' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_buf_create': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:430: undefined reference to `hb_buffer_create' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_buf_destroy': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:440: undefined reference to `hb_buffer_destroy' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:440: undefined reference to `hb_buffer_destroy' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_buf_create': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:430: undefined reference to `hb_buffer_create' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_buf_destroy': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:440: undefined reference to `hb_buffer_destroy' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_buf_create': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:430: undefined reference to `hb_buffer_create' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_buf_destroy': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:440: undefined reference to `hb_buffer_destroy' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_buf_create': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:430: undefined reference to `hb_buffer_create' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_buf_destroy': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:440: undefined reference to `hb_buffer_destroy' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:440: undefined reference to `hb_buffer_destroy' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_buf_create': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:430: undefined reference to `hb_buffer_create' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_buf_destroy': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:440: undefined reference to `hb_buffer_destroy' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_buf_create': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:430: undefined reference to `hb_buffer_create' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_buf_destroy': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:440: undefined reference to `hb_buffer_destroy' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_buf_create': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:430: undefined reference to `hb_buffer_create' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(autofit.o): In function `af_shaper_buf_destroy': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/autofit/afshaper.c:440: undefined reference to `hb_buffer_destroy' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(ftbzip2.o): In function `ft_bzip2_file_done': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/bzip2/ftbzip2.c:192: undefined reference to `BZ2_bzDecompressEnd' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(ftbzip2.o): In function `ft_bzip2_file_fill_output': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/bzip2/ftbzip2.c:303: undefined reference to `BZ2_bzDecompress' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(ftbzip2.o): In function `ft_bzip2_file_reset': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/bzip2/ftbzip2.c:221: undefined reference to `BZ2_bzDecompressEnd' /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/bzip2/ftbzip2.c:232: undefined reference to `BZ2_bzDecompressInit' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libfreetype.a(ftbzip2.o): In function `ft_bzip2_file_init': /usr/lib/mxe/tmp-freetype-x86_64-w64-mingw32.static/freetype-2.10.4/src/bzip2/ftbzip2.c:177: undefined reference to `BZ2_bzDecompressInit' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_lzma.o): In function `LZMASetupEncode': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_lzma.c:234: undefined reference to `lzma_end' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_lzma.o): In function `LZMASetupDecode': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_lzma.c:116: undefined reference to `lzma_end' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_lzma.o): In function `LZMACleanup': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_lzma.c:360: undefined reference to `lzma_end' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_lzma.o): In function `LZMAEncode': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_lzma.c:294: undefined reference to `lzma_code' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_lzma.o): In function `LZMAPostEncode': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_lzma.c:325: undefined reference to `lzma_code' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_lzma.o): In function `LZMAPreEncode': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_lzma.c:264: undefined reference to `lzma_stream_encoder' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_lzma.o): In function `LZMAVSetField': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_lzma.c:378: undefined reference to `lzma_lzma_preset' /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_lzma.c:380: undefined reference to `lzma_stream_encoder' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_lzma.o): In function `LZMADecode': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_lzma.c:191: undefined reference to `lzma_code' /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_lzma.c:195: undefined reference to `lzma_memusage' /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_lzma.c:195: undefined reference to `lzma_stream_decoder' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_lzma.o): In function `LZMAPreDecode': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_lzma.c:152: undefined reference to `lzma_stream_decoder' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_lzma.o): In function `TIFFInitLZMA': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_lzma.c:468: undefined reference to `lzma_lzma_preset' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_webp.o): In function `TWebPSetupDecode': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_webp.c:233: undefined reference to `WebPPictureFree' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_webp.o): In function `TWebPCleanup': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_webp.c:552: undefined reference to `WebPIDelete' /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_webp.c:553: undefined reference to `WebPFreeDecBuffer' /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_webp.c:548: undefined reference to `WebPPictureFree' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_webp.o): In function `TWebPPostEncode': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_webp.c:474: undefined reference to `WebPPictureImportRGB' /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_webp.c:480: undefined reference to `WebPEncode' /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_webp.c:466: undefined reference to `WebPPictureImportRGBA' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_webp.o): In function `WebPPictureInit': /usr/lib/mxe/usr/x86_64-w64-mingw32.static/include/webp/encode.h:371: undefined reference to `WebPPictureInitInternal' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_webp.o): In function `TWebPSetupEncode': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_webp.c:364: undefined reference to `WebPConfigInitInternal' /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_webp.c:380: undefined reference to `WebPValidateConfig' /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_webp.c:349: undefined reference to `WebPIDelete' /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_webp.c:350: undefined reference to `WebPFreeDecBuffer' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_webp.o): In function `TWebPDecode': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_webp.c:140: undefined reference to `WebPIAppend' /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_webp.c:159: undefined reference to `WebPIDecGetRGB' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_webp.o): In function `TWebPPreDecode': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_webp.c:280: undefined reference to `WebPIDelete' /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_webp.c:281: undefined reference to `WebPFreeDecBuffer' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_webp.o): In function `WebPInitDecBuffer': /usr/lib/mxe/usr/x86_64-w64-mingw32.static/include/webp/decode.h:227: undefined reference to `WebPInitDecBufferInternal' /usr/lib/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a(tif_webp.o): In function `TWebPPreDecode': /usr/lib/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.2.0/libtiff/tif_webp.c:301: undefined reference to `WebPINewDecoder'
collect2: error: ld returned 1 exit status
make[2]: *** [test/CMakeFiles/perf-test.dir/build.make:131: test/perf-test.exe] Error 1 make[1]: *** [CMakeFiles/Makefile2:437: test/CMakeFiles/perf-test.dir/all] Error 2
make: *** [Makefile:160: all] Error 2



On 6/15/21 12:49 PM, Stefan Löffler wrote:
Dear Eric,

this seems to occur when using libopenjpeg 2.4 or later. It can be worked around by the following patch to poppler: https://github.com/TeXworks/texworks/blob/master/.github/actions/setup-windows/mxe/poppler-3-static_linking.patch

FWIW, this patch is for poppler 21.02.0, which is the version MXE is currently on I think, but which is outdated already (poppler seems to release monthly ATM). I do hope, though, that the patch still applies to the latest version as well.

Sorry for not proposing this to MXE (or upstream) yet.

HTH
Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]