crazywhalecc / static-php-cli

Build standalone PHP binary on Linux, macOS, FreeBSD, Windows, with PHP project together, with popular extensions included.
https://static-php.dev
MIT License
1.33k stars 233 forks source link

`imagick` on Windows? #540

Open simonhamp opened 2 months ago

simonhamp commented 2 months ago

Is it possible?

crazywhalecc commented 2 months ago

It's possible to support, but imagemagick for windows has different build script, need take some time.

simonhamp commented 2 months ago

Let me know if there's anything I can help with!

crazywhalecc commented 2 months ago

Progress updated.

Related issue: https://github.com/ImageMagick/ImageMagick/issues/7634

crazywhalecc commented 1 month ago

Currently ImageMagick-windows repository is for windows build, but it cannot be used for php-src static build. The good news is the error looks fixable, but need some time to do it. This issue should be given a lower priority because it is more complicated than expected.

DubbleClick commented 3 weeks ago

You need to use the 64 bit msvc c++ compiler to compile the imagemagick lib. The linker doesn't care how the static lib was built, when the imagick extension later uses it.