You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.
for example the info in the readme is not very exact:
Visual C++ 2017 or Visual C++ 2019 must be installed prior SDK usage. Required components
C++ dev
Windows SDK
.NET dev
what is "C++ dev" is it "VC++ 2017 version 15.9 v14.16"? something else? which .net dev is required? why i need .net for a c php extension? what about the windows sdk? what if i need the php extension on an old win7 machine? can i build it on win10? can i build it directly on win7? can i build a win7 ext on linux? is there a docker image where i can download i complete cli build env so i can make autobuild on for example gitlab-ci?
(i can do a PR if i have gathered all required informations)
That won't work out-of-the-box anyway, since config.w32 is missing; see openvenues/php-postal#16 (comment) for some hints in this regard.
what is "C++ dev" is it "VC++ 2017 version 15.9 v14.16"? something else?
First, if you only want to build and don't have the need for the Visual Studio IDE, you can use the Build Tools for Visual Studio. Direct download: https://aka.ms/vs/15/release/vs_buildtools.exe. It is usually suffient to install the "Visual C++ build tools" workload from the installer.
why i need .net for a c php extension?
This is only needed if you want to have support for Dotnet class of the com_dotnet extension.
what about the windows sdk?
The Windows SDK will be installed as part of the "Visual C++ build tools" workload.
what if i need the php extension on an old win7 machine? can i build it on win10? can i build it directly on win7?
The binaries are supposed to be portable (of course, you need the respective VC runtime installed on the other machines).
Also note, that for building individual PHP extensions, using phpize is the simplest option (although that is not documented yet, to my knowledge). The usage is pretty much the same as on Linux, though.
This screenshot shows the selection of the "Visual C++ build tools" workload:
Also note that building PHP 7.4 extensions should also work with VS 2019, but you need respective dependencies (this are not provided by the PHPonWindows team), and using such extension binaries with official PHP binaries may also not be supported.
just trying to build postal-php and struggling with the php compile manual https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2 and the php-sdk manual.
for example the info in the readme is not very exact:
what is "C++ dev" is it "VC++ 2017 version 15.9 v14.16"? something else? which .net dev is required? why i need .net for a c php extension? what about the windows sdk? what if i need the php extension on an old win7 machine? can i build it on win10? can i build it directly on win7? can i build a win7 ext on linux? is there a docker image where i can download i complete cli build env so i can make autobuild on for example gitlab-ci?
(i can do a PR if i have gathered all required informations)
https://stackoverflow.com/questions/62162268/how-to-compile-a-php-7-4-extension-for-windows-and-which-visual-studio-component
The text was updated successfully, but these errors were encountered: