# Building PHP with libxml2 2.14

**URL:** <https://www.phphelp.com/t/building-php-with-libxml2-2-14/36527>\
**Category:** PHP Installation and Configuration\
**Created:** [August 8, 2025, 3:06am UTC](https://www.phphelp.com/t/building-php-with-libxml2-2-14/36527 "2025-08-08T03:06:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![4lROmJ6H8JF](https://www.phphelp.com/letter_avatar_proxy/v4/letter/4/3e96dc/32.png) [@4lROmJ6H8JF](https://www.phphelp.com/u/4lROmJ6H8JF)\
**Post date:** [August 8, 2025, 3:06am UTC](https://www.phphelp.com/t/building-php-with-libxml2-2-14/36527/1 "2025-08-08T03:06:18Z")

</div>

I’m trying to build libxml2 2.14.5 with cmake on Windows in such a way that the libraries generated can be used to build PHP. I had no issue accomplishing this with the deprecated method of building libxml2, but switching to cmake, PHP refuses to build with linker errors no matter what settings I use to build.

Can anybody enlighten me on the correct configuration for building libxml2 with cmake and which files are required to build PHP successfully?
