Comments (3)
just trying to build postal-php
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).
can i build a win7 ext on linux?
No, cross-compilation is not supported.
See also https://gist.github.com/cmb69/47b8c7fb392f5d79b245c74ac496632c, which is about setting up a minimal build environment for php-src/master (i.e. it uses VS 2019).
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.
from php-sdk-binary-tools.
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.
from php-sdk-binary-tools.
Closing as resolved.
from php-sdk-binary-tools.
Related Issues (20)
- no genera librerias dll HOT 2
- Supporting multiple toolsets for a single VS installation HOT 3
- PGO CLI Training HOT 2
- Could not found vc15 folder. HOT 13
- It does not support gdb debug. HOT 2
- Could not determine 'vc15' directory HOT 14
- Bundle PHP 7.4 HOT 5
- Trying to Create My own Extension HOT 3
- PGO initialization fails on MariaDB download HOT 3
- libzip-1.6.1-vs16-x64 ENABLE_LZMA HOT 4
- Unable to build PHP master with VS 2019 because of iconv/sqlite3 dependency mismatch HOT 6
- Symfony HOT 1
- Auto
- MSys certs need updating
- Could not determine 'vs16' directory HOT 2
- How to choose vs 2017 when execute phpsdk-vc15-x64.bat? HOT 7
- when a path is contains blank spaces,bat execution failure HOT 5
- Failed to fetch supported branches HOT 4
- when command line include space in path the cli is not run HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-sdk-binary-tools.