Problems buiding PV 5.8.0 from source -> Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Development) (found suitable version "3.8", minimum required is "3.2")
I'm trying to compile v5.8.0 on my Linux computer (debian10 - testing). I followed the step-by-step procedure on Documentation/dev/build.md file but when running cmake command I get this error message (that forces the compilation to stop):
Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Development) (found suitable version "3.8", minimum required is "3.2")
I tried to modify the cmake options including:
-DPYTHON3_INCLUDE_DIRS=${PYTHON_INCLUDE_DIR} -DPYTHON3_LIBRARY=${PYTHON_LIBRARY}
where:
PYTHON_INCLUDE_DIR=/usr/include/python3.8
PYTHON_LIBRARY=/usr/lib/python3.8
But this did not solve the issue. What is the right way to get rid of this compilation error?