Unable to find python libraries for CMake in Opencv3.0.0

Trying to build Opencv3.0.0 (dev), cmake finds binary and python 2 locations, but cannot include python libraries.

I use cmake-gui to create a makefile. When configuring cmake, it gives this information along with various other ways:

-

- Python 2:

- Translator: /usr/bin/python2.7 (ver 2.7.6)

- Libraries: NO

- numpy: /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.8.2)

- package path: lib / python2.7 / dist-packages

-

- Python 3:

- Translator: /usr/bin/python3.4 (ver 3.4)

I have cross validation and input for python2 which I provide, everything is correct (included as an attachment): enter image description here (Please take a look at the image before reading further)

So now I am wondering if this is an architecture problem or a version problem (compatibility with different versions of opencv, python, cmake)

The versions that I am currently using are: opencv: 3.0.0-dev

python2: 2.7.6

python3: 3.4.0

cmake: 2.8.12.2

System: ubuntu 14.04 (amd architecture, 64 bit)

Linux kernel version: Linux version 3.13.0-27-generic (buildd @akateko) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)) # 50-Ubuntu SMP Thu May 15 18:06:16 UTC 2014

At that moment, I was fixated on what to do. Can someone push me in the right direction, please.

+6
source share
1 answer

Perhaps too late for an answer. I am facing the same error as yours. The reason is that cmake is deprecated. You can update your cmake after https://askubuntu.com/questions/610291/how-to-install-cmake-3-2-on-ubuntu-14-04 . After that, everything works fine.

+1
source

Source: https://habr.com/ru/post/977254/


All Articles