Skip to content

Fix building imagequant on Windows - #10508

Merged
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:imagequant
Nov 14, 2026
Merged

radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:imagequant

Conversation

@radarhere

Copy link
Copy Markdown
Member

Windows builds have started failing - https://github.com/python-pillow/Pillow/actions/runs/43573107905/job/132381512640#step:28:783

  imagequant.lib(std-389636fd4dca543a.std.7ac5527a03ca1e7b-cgu.0.rcgu.o) : error LNK2001: unresolved external symbol __imp_WakeByAddressSingle
  imagequant.lib(std-389636fd4dca543a.std.7ac5527a03ca1e7b-cgu.0.rcgu.o) : error LNK2001: unresolved external symbol __imp_WakeByAddressAll
  imagequant.lib(std-389636fd4dca543a.std.7ac5527a03ca1e7b-cgu.0.rcgu.o) : error LNK2001: unresolved external symbol __imp_WaitOnAddress
  build\lib.win-amd64-cpython-315\PIL\_imaging.cp315-win_amd64.pyd : fatal error LNK1120: 3 unresolved externals

These functions are described at
https://learn.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-wakebyaddresssingle
https://learn.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-wakebyaddressall
https://learn.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-waitonaddress

All of which say

Microsoft Store app developers may need to obtain synchronization.lib

Adding that library fixes the problem.

@radarhere
radarhere merged commit 2fa8a5b into python-pillow:main Nov 14, 2026
66 of 70 checks passed
@radarhere
radarhere deleted the imagequant branch November 14, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants