Skip to content Skip to sidebar Skip to footer

Cmake Can Not Find Pythonlibs While Building Opencv

so Im trying to cross-compile OpenCV for an arm device and while running cmake, I noticed in the output that the PythonLibs were not found. I have both Python2 and Python3 libs ins

Solution 1:

You are trying to compile something that is simple requesting the DEV packages, you have only the Python interpreters packages, in Raspberry PI you must have python-dev and python3-dev for example, if you are using Raspberry PI try to run:

sudo apt-get install -y python-dev python3-dev

Then you will pass this step, if there come another errors make new posts.

A good and simple tutorial on how to compile OpenCV for Raspberry PI you found here: https://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/

Post a Comment for "Cmake Can Not Find Pythonlibs While Building Opencv"