# Build OpenCV 4.5.2 with freetype library

**URL:** <https://forum.opencv.org/t/build-opencv-4-5-2-with-freetype-library/4825>\
**Category:** C++\
**Tags:** build, freetype\
**Created:** [August 18, 2021, 10:08am UTC](https://forum.opencv.org/t/build-opencv-4-5-2-with-freetype-library/4825 "2021-08-18T10:08:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [August 18, 2021, 10:28am UTC](https://forum.opencv.org/t/build-opencv-4-5-2-with-freetype-library/4825/2 "2021-08-18T10:28:41Z")

</div>

- did you install [freetype and harfbuzz](https://github.com/opencv/opencv_contrib/tree/master/modules/freetype) dependancies ?
- yes, you need ` WITH_FREETYPE=ON`
- please show the _complete_ cmake console output (rather long, but it has hints)
- make sure, you use _exactly_ the same version for both opencv main and contrib repos (if you want to use 4.5.2, check out the 4.5.2 branch in contrib, too !)
- please also see [the related answer here](https://forum.opencv.org/t/using-building-freetype-with-opencv-c/3424)

---

_[View the full topic](https://forum.opencv.org/t/build-opencv-4-5-2-with-freetype-library/4825)._
