# cmake cannot find freetype library

**URL:** <https://discourse.cmake.org/t/cmake-cannot-find-freetype-library/5310>\
**Category:** Code\
**Tags:** os:windows, comp:msvc, gen:vs\
**Created:** [March 28, 2022, 3:41pm UTC](https://discourse.cmake.org/t/cmake-cannot-find-freetype-library/5310 "2022-03-28T15:41:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agcdam](https://discourse.cmake.org/user_avatar/discourse.cmake.org/agcdam/32/2302_2.png) [@agcdam](https://discourse.cmake.org/u/agcdam)\
**Post date:** [March 28, 2022, 3:41pm UTC](https://discourse.cmake.org/t/cmake-cannot-find-freetype-library/5310/1 "2022-03-28T15:41:03Z")

</div>

When I try to build the library i get this error.

Could NOT find Freetype (missing: FREETYPE\_LIBRARY) (Required is at least  
version “2.8”)

 ![image](https://discourse.cmake.org/uploads/default/original/2X/9/9fb834bdcd1660d46d1f9211f8b8318774fefd7d.png)

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)\
**Post date:** [March 29, 2022, 1:34pm UTC](https://discourse.cmake.org/t/cmake-cannot-find-freetype-library/5310/2 "2022-03-29T13:34:17Z")

</div>

Hmm. You’ll need to provide a `.lib` file for the linker to use freetype. It’s probably near the paths indicated in the `FREETYPE_INCLUDE_DIR_*` variables.

---

<div class="post-metadata">

**Author:** ![agcdam](https://discourse.cmake.org/user_avatar/discourse.cmake.org/agcdam/32/2302_2.png) [@agcdam](https://discourse.cmake.org/u/agcdam)\
**Post date:** [March 31, 2022, 8:34am UTC](https://discourse.cmake.org/t/cmake-cannot-find-freetype-library/5310/3 "2022-03-31T08:34:18Z")

</div>

Okay, thanks, I’m lost with this world.
