Skip to content

cvc: broaden ImageMagick prefix fallback for autotools names - #251

Merged
transfix merged 3 commits into
masterfrom
wasm-imagemagick-find
Aug 28, 2026
Merged

transfix merged 3 commits into
masterfrom
wasm-imagemagick-find

Conversation

@transfix

Copy link
Copy Markdown
Owner

wasm/linux static autotools ImageMagick installs as libMagick++-7.Q16HDRI.a which the WIN32-only fallback missed. Broaden the search names on all platforms so wasm PNG texture loading works.

Austin buildings' color/normal arrays hit a 140 MB vtkFloatArray during
mesh assembly; the default MAXIMUM_MEMORY sometimes lands short of that
once VTK's other buffers are in the heap and throws mid-scene. wasm32
addresses up to 4 GB — extend the growth ceiling so the full scene fits.
The stock FindImageMagick module misses the autotools static-build library
names libMagick++-7.Q16HDRI.a / libMagickCore-7.Q16HDRI.a, which is what
the wasm cross-build (and any linux static build) produces. Result: on
wasm the whole ImageMagick pipeline was compiled out, and glTF-embedded
PNG textures failed with 'cvc::read_image: no handler can read'.

Generalize the WIN32 fallback: probe every canonical libMagick++ /
libMagickCore name (7, 7.Q16HDRI, 6.Q16HDRI, Windows CORE_RL_*) against
CMAKE_PREFIX_PATH / CMAKE_FIND_ROOT_PATH on all platforms, not just Win32.
@transfix
transfix merged commit fcf4757 into master Aug 28, 2026
12 checks passed
@transfix
transfix deleted the wasm-imagemagick-find branch October 29, 2026 20:54
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