Skip to content

fix(cli): resolve undefined mz_uncompress symbol on Windows#1719

Open
stduhpf wants to merge 1 commit into
leejet:masterfrom
stduhpf:zip-link
Open

fix(cli): resolve undefined mz_uncompress symbol on Windows#1719
stduhpf wants to merge 1 commit into
leejet:masterfrom
stduhpf:zip-link

Conversation

@stduhpf

@stduhpf stduhpf commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes a build failure on Windows (lld-link: error: undefined symbol: mz_uncompress) caused by #1632.

Related Issue / Discussion

#1632 (comment)

Additional Information

The previous PR changed the zip library to be linked privately via object files into stable-diffusion. Because of this, the zip symbols are no longer exported transitively to the CLI example. Since image_metadata.cpp directly calls mz_uncompress, zip must be explicitly linked to the sd-cli target.

Checklist

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

Successfully merging this pull request may close these issues.

1 participant