1

I am trying to install opencv for a python project but I keep getting the following error -

"CMake Error at CMakeLists.txt:5 (ocv_glob_modules):
  Unknown CMake command "ocv_glob_modules"."

I tried to google it but couldn't get any help. I am working on Ubuntu 14.04 and have done all the installation (not the optional ones) given on page Linux install guide for opencv

I'm using the same command given in the page to install

Please guide me through

Edit: I installed the opencv by the help from the comment but I still can't use it to code. Please reconsider this question. I'm getting the error

"No module named cv2"

1
  • 1
    I see a lot of issues on here with open-cv and ubuntu 14.04, I installed 3.0.0-dev from source and I don't seem to have any issue so might be worth installing that. Commented Dec 25, 2014 at 16:29

2 Answers 2

1

for Ubuntu its simple to install:

sudo apt-get install python-opencv
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks It worked for me! Was I moving on the wrong track when trying the above method?
1

I got that error because I configured the CMake source directory to /opencv-VERSION/modules. Just fixing it to /opencv-VERSION made the error go away.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.