This documentation explain how to build the latest OpenCV version - 4.4.5 20/02/2022 - from sources.
We will focus on C++ and not build any Python libs.
Install theses tools with common option :
| %% Make everything look better. | |
| %% http://tex.stackexchange.com/questions/553/what-packages-do-people-load-by-default-in-latex | |
| %% http://www.howtotex.com/packages/9-essential-latex-packages-everyone-should-use/ | |
| \usepackage{microtype} | |
| %% Shrink space around figures. | |
| %% This beats manually adding negative \vspace commands everywhere. | |
| %\setlength{\textfloatsep}{0pt} | |
| %\setlength{\textfloatsep}{20pt plus 2pt minus 4pt} | |
| %\setlength{\textfloatsep}{10pt plus 2pt minus 4pt} |