Re: [INTERNALS-WIN] Windows PECL deps build script

[email protected] (JB) Thu, 25 Jul 2024 22:23:21 +0200
Newsgroups php.internals.win
Message-ID <[email protected]>
Hi!

Thank you for your answer.


Le 25/07/2024 à 14:14, Christoph M. Becker a écrit :
> Hi!
>
> A "bit" late, but still may be of interest for some.
>
> On 19.03.2024 at 17:10, JB wrote:
>
>> I work to write automatic builds for PHP Extension for Windows with
>> GitHubAction.
>>
>> Sometimes, I download the dependencies located here
>> https://windows.php.net/downloads/pecl/deps/ to build the DLL.
> You better not rely on that location anymore since they might no longer
> be synced.  Instead use <https://downloads.php.net/~windows/pecl/deps/>
> for now.
I don't know this URL. I will change the origin URL as soon as possible.
>> But, I don't know the source code origin and the build batch to find a
>> newer library version.
>>
>> Where can I find the build instructions for each library with the source
>> code location?
> At least the sources of the PHP dependencies can be found on
> <https://github.com/winlibs>.  For building the dependencies,
> <https://github.com/winlibs/winlib-builder> is used.  A couple of PECL
> dependencies are fetched directly from their own repos, and are patched
> on the fly, if needed.
I have found this organization and the repository late. Sometimes, I 
upgraded the library from the original repository and built the library 
(ex. MongoDB, libevent 2.1.12 instead of 2.1.8) before building the 
extension.
>
> This is all bare-bones, but apparently we still cannot use another
> package manager.  When I last looked into vcpkg, it was not really
> suitable.  Quite a while ago someone proposed to use Conan, but adding
> missing libraries turned out to be difficult.  Not sure how that ended up.
I have used vcpkg sometimes to get needed libraries to build librrd.
The lib RRD found on PECL deps folder is too old.


Best regards,

Jean-Baptiste