Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8758693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:36:46+00:00 2026-06-13T14:36:46+00:00

I am trying to build the OpenCV samples which come with the source package

  • 0

I am trying to build the OpenCV samples which come with the source package and I get the following:

CMake Error at CMakeLists.txt:10 (ocv_check_dependencies):
  Unknown CMake command "ocv_check_dependencies".

I did install OpenCV using

cmake .
make
sudo make install

and I got a tutorial snippet working (thus I suppose it is installed correctly as a library). However, compiling the samples does not work.

I guess I have to somehow configure CMake to have “ocv_check_dependencies” – but how? I am lost!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:36:47+00:00Added an answer on June 13, 2026 at 2:36 pm

    I got it.

    In order to build the samples one has to change the default configuration for cmake by providing it via -D. What I did wrong was that I tried to execute cmake from within the samples directory.

    The proper way to build the samples is invoking cmake like so (from within the root directory of the unpacked archive):

    cmake -DBUILD_SAMPLES .
    

    which will turn samples ON. One can proceed using make, make install than. The samples can be found in bin after building.

    See also FAQ

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using cmake-gui trying to build opencv but get this error: CMake Error
I am trying to compile/build OPenCV 2.3 with the help of CMake/Mingw. I got
I'm trying to build OpenCV on OS X 10.6.8. I downloaded the source, then
Im trying to use OpenCV but I keep on getting this error on Cmake:
I am trying to build OpenCV 2.4.1 with OpenGL support, and it keeps faling.
I'm trying build a method which returns the shortest path from one node to
I am trying to build a software library cvBlobs which is designed to help
(Step 1) I'm trying to get openCV to run from python on my mac
I am trying to build some big libraries, like Boost and OpenCV , from
I am new to the Linux scene and I am trying to get OpenCV

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.