Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build GraphicsMagick #3035

Open
rail5 opened this issue Nov 22, 2023 · 0 comments
Open

Failed to build GraphicsMagick #3035

rail5 opened this issue Nov 22, 2023 · 0 comments

Comments

@rail5
Copy link

rail5 commented Nov 22, 2023

A linker error in building GraphicsMagick:

[build]       graphicsmagick          x86_64-w64-mingw32.static
I mad
Failed to build package graphicsmagick for target x86_64-w64-mingw32.static!
------------------------------------------------------------
/opt/mxe/usr/bin/x86_64-w64-mingw32.static-ld: /opt/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.6.0/libtiff/tif_webp.c:295: undefined reference to `WebPIDecGetRGB'
/opt/mxe/usr/bin/x86_64-w64-mingw32.static-ld: /opt/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.6.0/libtiff/tif_webp.c:326: undefined reference to `WebPIDelete'
/opt/mxe/usr/bin/x86_64-w64-mingw32.static-ld: /opt/mxe/tmp-tiff-x86_64-w64-mingw32.static/tiff-4.6.0/libtiff/tif_webp.c:256: undefined reference to `WebPINewDecoder'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:903: build-only-graphicsmagick_x86_64-w64-mingw32.static] Error 1

It seems that it's not properly finding some libraries. Manually changing the LIBS line in graphicsmagick.mk fixed it for me:

LIBS="`'$(TARGET)-pkg-config' libtiff-4 --libs` /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libtiff.a /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libwebp.a /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libsharpyuv.a" \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant