Installing OpenCV 4.8 with FreeType

I have never done that on a linux.

you might have to deal with “harfbuzz” in addition to freetype.

if you’re lucky, you just have to install those (including dev package), and then cmake will pick them up for opencv.

if not, you might have to forage through opencv’s cmake files and figure out which cmake variables need setting so you tell the cmake process explicitly where those libraries can be found.