[PHP-WIN] Enquiry on building PHP extension - Gmagick on Windows server

[email protected] (lee tszkwan) Fri, 22 Mar 2024 04:46:21 +0000
Newsgroups php.windows
Message-ID <ME3P282MB3741CB28A25816DCCA3C22CAB4312@ME3P282MB3741.AUSP282.PROD.OUTLOOK.COM>
--_000_ME3P282MB3741CB28A25816DCCA3C22CAB4312ME3P282MB3741AUSP_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

I have an issue on building PHP extension.
I am a Windows server 2019 user and would like to build a Gmagick PHP exten=
sion. I am using PHP 7.3.9.
I am trying to build GraphicMagick from source. I would like to know what v=
ersion of Visual Studio I should install. Now I am using Visual Studio 2022=
.

The version of PHP I downloaded from website version is PHP 7.3.9-Win32-VC1=
5-x64 which used Visual C++ 15.0 (Visual Studio 2017) to compile. If I want=
 to build an extension on this PHP,  shall I use the same version of Visual=
 Studio  to build my GraphicMagick and Gmagick? If yes, shall I need to dow=
n grade my version of Visual Studio to 2017 to compile?

Also, I need to download PHP source and libraries on which PHP depends for =
building Gmagick.
Shall I download the latest version of PHP source? Or download the source o=
f PHP 7.3.9?
For libraries on which PHP depends, I need to download php-sdk depends. Whe=
n I was extracting the files, some of them could not be extracted. How can =
I fix this?

Many thanks.

Best Regards,

Lee


--_000_ME3P282MB3741CB28A25816DCCA3C22CAB4312ME3P282MB3741AUSP_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
</head>
<body>
<div dir=3D"ltr">
<div dir=3D"ltr" data-ogsc=3D"" style=3D"">
<div></div>
<div>
<div>
<div dir=3D"ltr"></div>
</div>
<div><span style=3D"font-family: Calibri, sans-serif; font-size: 11pt;">Hi,=
</span><br>
</div>
</div>
</div>
<div id=3D"id-bb3e6ba9-b0be-4013-9b45-d5960de1339a" class=3D"ms-outlook-mob=
ile-reference-message">
<div dir=3D"ltr" data-ogsc=3D"" style=3D"">
<div id=3D"id-19df0b31-b433-47bf-a419-2178d3c79175" class=3D"ms-outlook-mob=
ile-reference-message">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">&nbsp;</p>
<p class=3D"MsoNormal">I have an issue on building PHP extension.</p>
<p class=3D"MsoNormal">I am a Windows server 2019 user and would like to bu=
ild a Gmagick PHP extension. I am using PHP 7.3.9.</p>
<p class=3D"MsoNormal">I am trying to build GraphicMagick from source. I wo=
uld like to know what version of Visual Studio I should install. Now I am u=
sing Visual Studio 2022.</p>
<p class=3D"MsoNormal"><br>
</p>
<p class=3D"MsoNormal">The version of PHP I downloaded from website version=
 is PHP 7.3.9-Win32-VC15-x64 which used Visual C++ 15.0 (Visual Studio 2017=
) to compile. If I want to build an extension on this PHP, &nbsp;shall I us=
e the same version of Visual Studio &nbsp;to
 build my GraphicMagick and Gmagick? If yes, shall I need to down grade my =
version of Visual Studio to 2017 to compile?</p>
<p class=3D"MsoNormal">&nbsp;</p>
<p class=3D"MsoNormal">Also, I need to download PHP source and libraries on=
 which PHP depends for building Gmagick.</p>
<p class=3D"MsoNormal">Shall I download the latest version of PHP source? O=
r download the source of PHP 7.3.9?</p>
<p class=3D"MsoNormal">For libraries on which PHP depends, I need to downlo=
ad php-sdk depends. When I was extracting the files, some of them could not=
 be extracted. How can I fix this?
</p>
<p class=3D"MsoNormal">&nbsp;</p>
<p class=3D"MsoNormal">Many thanks.</p>
<p class=3D"MsoNormal">&nbsp;</p>
<p class=3D"MsoNormal">Best Regards,<span style=3D""></span></p>
<p class=3D"MsoNormal">&nbsp;</p>
<p class=3D"MsoNormal">Lee</p>
<p class=3D"MsoNormal">&nbsp;</p>
</div>
</div>
<style>=0A=
<!--=0A=
@font-face=0A=
	{font-family:PMingLiU}=0A=
@font-face=0A=
	{font-family:"Cambria Math"}=0A=
@font-face=0A=
	{font-family:Calibri}=0A=
@font-face=0A=
	{font-family:PMingLiU}=0A=
p.MsoNormal, li.MsoNormal, div.MsoNormal=0A=
	{margin:0in;=0A=
	font-size:11.0pt;=0A=
	font-family:"Calibri",sans-serif}=0A=
span.EmailStyle17=0A=
	{font-family:"Calibri",sans-serif;=0A=
	color:windowtext}=0A=
.MsoChpDefault=0A=
	{font-family:"Calibri",sans-serif}=0A=
@page WordSection1=0A=
	{margin:1.0in 1.25in 1.0in 1.25in}=0A=
-->=0A=
</style></div>
</div>
</div>
</body>
</html>

--_000_ME3P282MB3741CB28A25816DCCA3C22CAB4312ME3P282MB3741AUSP_--