0

我正在尝试使用 SWIG 在 Windows 上构建 PHP 扩展。生成的 .c 文件需要 zend_config.h 来构建。所以我已经下载php-devel-pack-7.4.6-nts-Win32-vc15-x64并尝试配置它以获取标题

C:\Users\Vadim\php-devel>phpize
Rebuilding configure.js
C:\Users\Vadim\php-devel
Now run 'configure --help'

C:\Users\Vadim\php-devel>configure
Must be run from the root of the extension source

我已经从源代码构建了 PHP,但仍然没有 zend_config.h。但在 linux 上,它会在配置后立即出现。我怎样才能进入Windows?

4

1 回答 1

0

This means that the configure script cannot detect file config.w32, this is how it figures out that you are correctly at the root of the extension. Under Mac/Linux, the file used for that purpose is config.m4.

If it is your code, you should create that config.w32 file, otherwise it may be that no effort has been made to port that extension under Windows.

于 2020-12-27T16:32:54.273 回答