OpenCV installation

45

Opencv requires a lot of dependencies to be built from sources. The easy way would be to install all the build dependencies using this command:

sudo apt-get build-dep opencv

And restart the cmake configuration.

Share:
45

Related videos on Youtube

paragm
Author by

paragm

Updated on September 18, 2022

Comments

  • paragm
    paragm almost 2 years

    We have a Cordova angular mobile app on which we are trying to achieve automation testing and as team is not familiar with javascript -trying to avoid using protractor tool. Instead can we use ngWebDriver with appium and selenium with testng framework

    • Robert
      Robert over 4 years
      Sure you can. It's probably legal. As to whether you should or what other options there are: that makes this question a matter of personal preferences, which is off-topic here. Please read How to Ask and edit your question accordingly.
  • Oussema Moslah
    Oussema Moslah over 9 years
    and how can i restart the cmake configuration?
  • Sylvain Pineau
    Sylvain Pineau over 9 years
    Just type cmake ../ as you did during your first attempt.
  • Oussema Moslah
    Oussema Moslah over 9 years
    moslah@moslah-Lenovo-G560:~/Downloads/OpenCV/opencv-2.4.10/b‌​uild$ sudo apt-get build-dep opencv [sudo] password for moslah: Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
  • Oussema Moslah
    Oussema Moslah over 9 years
    i think i have 4 package not upgraded
  • Oussema Moslah
    Oussema Moslah over 9 years
    when i have restarted the cmake commande. i have had this drive.google.com/…
  • cl3m
    cl3m about 9 years
    Hi @OussemaMoslah that output looks like it worked. Once cmake is complete, the next step is to run make, then sudo make install. See step 3 in the installation instructions docs.opencv.org/doc/tutorials/introduction/linux_install/…
  • Sathiya Narayanan
    Sathiya Narayanan over 8 years
    Please avoid apt-get -y when proposing package installation, so that people can evaluate what is being installed.
  • DollarAkshay
    DollarAkshay over 8 years
    E: You must put some 'source' URIs in your sources.list Got this error while installing on raspberry pi :/
  • Sylvain Pineau
    Sylvain Pineau over 8 years
    @AkshayLAradhya: Try to enable universe (see How do I enable the “Universe” repository?)
  • ramgorur
    ramgorur about 8 years
    @Avio I have mistakenly put the apt-get part, I meant to just put the list.