RE: [INTERNALS-WIN] FR: add libtiff to winlibs and php-sdk/deps
[email protected] ("Anatol Belski") Tue, 24 Jan 2017 20:08:33 +0100
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
Hi Christoph, > -----Original Message----- > From: Christoph M. Becker [mailto:[email protected]] > Sent: Tuesday, January 24, 2017 7:24 PM > To: [email protected] > Subject: [INTERNALS-WIN] FR: add libtiff to winlibs and php-sdk/deps > > Hi Anatol! > > A while ago Pierre suggested that we use the relevant php-sdk/deps[1] for the > GD project[1]. That works great, and we have rudimentary build system for > MSVC 14 running. However, libtiff is not available in the php-sdk/deps, so we > can't easily offer prebuilt binaries[2] with TIFF support; we can't even easily run > the (few) TIFF related test cases[3]. > > I had a look at building libtiff 3.8.2[4] myself, and actually that worked quite well > with the supplied Makefile.vc. I only made some minimal adjustments to > nmake.opt (see the attached diff) – and ignored a lot of warnings. > > So would it be possible to add libtiff to <https://github.com/winlibs>, and to > make a binary distribution available as part of the php-sdk? > Note that TIFF support is not planned for PHP's GD binding for now[5], but as > soon as TIFF support has improved, that is likely to change. > That's the exact reason libtiff is not in the core deps, as it's not used anywhere in the core, or would be picked up otherwise where it's not expected. Instead, it's provided for PECL and is picked up when some ext or it's dependency requires it. You can find the current builds here http://windows.php.net/downloads/pecl/deps/ . For now AFAIR, it's only used as a dependency in some of the Gnome libs. The latest ones also use libjpeg-turbo, but I didn't upload it for PECL as it's only used as a static lib and nof directly for an ext. Please let me know, whether those could be usable for your goals, of course the more bins are shared - the more consistency isthere. Once there's a decision to move the TIFF support into the core, of course we can place them in the core deps of PHP. Regards Anatol