


As mentioned in Step 1, within that opencv-master file, I created a new empty sub-folder called “build”. In the Cmake GUI, you will notice that I have placed the opencv-master files into a folder called “…/opencv-master” on my computer on downloading the repository from Github, and then within the GUI, I point to it in the “ Where is the source code” option. That should open a Cmake GUI window like the example in Fig. Open the Cmake GUI, by typing the following from your bash terminal after the $ sign: Step 2: In the Cmake GUI, “configure” then “generate” the new build files in a new “build” folder you have created Configure OpenCV in Pycharm, so that the Pycharm IDE recognises the newly installed openCV package and check the result.Check in the Python console that openCV has been installed and that it is recognised by Python.Check to see where this process has installed the file created during the Cmake process (and link symbolically if necessary).The ‘make’ command will take quite a long time and may raise errors (discussed below). In your terminal, navigate to the ‘build’ folder, and run ‘make’ and then ‘install’ commands.In the Cmake GUI, configure then generate the new build files in a new ‘build’ folder you have created.Clone both up-to-date openCV master and openCV contrib modules from github.
Linux cmake command not found install#
For building applications from source: CMake 3.5.1 (installable on Linux by opening up a terminal on your computer and typing sudo apt-get install cmake).Īn overview of the steps covered in this post:.
Linux cmake command not found driver#
Nvidia GPU: GeForce GTX 1050, Driver Version: 384.130 (you can check this by opening up a terminal on your computer and typing nvidia-smi.My operating system: Linux Ubuntu 16.04 LTS.

My system specifications and what I had already installed: Note that I am describing the Cmake process for OpenCV with a few things already installed on my machine, as detailed in the next paragraph. The installation process has a few ‘gotchas’ (which certainly got me) I have explained how these tripped me up and what I did to solve them. This article therefore explains the process I went through to reinstall openCV using Cmake, but this time choosing the additional OpenCV functionality I needed, available from the opencv_contrib repository.
