简体   繁体   中英

Compiling a PHP extension for windows

I've previously managed to get XHP compiled in a Linux environment with the .so extension. I'm trying to compile it for use in a windows enviroment ( .dll ) and I've followed the following tutorial on php.net but after I buildconf , I fail to see the extension under configure --help (I downloaded the source at put the source folder in ext directory). Any help would be appreciated.

I'm using Visual studio 2008 and looking to compile extension for PHP 5.4.

XHP doesn't have a config.w32 file to support the Windows build environment (see Build for Windows .

Windows uses a different build system than Linux so it requires a different config. I remember manually converting a config.m4 to a config.w32 for a tutorial on how to write your own PHP extension and it was relatively painless. It could have been that way because it was simple compared to XHP's config.m4 .

It wouldn't hurt to copy the contents of config.m4 to config.w32 and try to build it to see what happens.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM