1

I'm fairly new to Raspbian and raspberry pi 3 is in my hands. I'm following along a book in which I have to install some packages of OpenCV. My project is related to Machine/Deep learning. My code is shown below.

pi@raspberrypi:~/workspace/opencv-3.4.4 $ sudo make install

What it rendered is shown below.

make: *** No rule to make target 'install'.  Stop.

Could you guess and tell me what's wrong with it?

2
  • 1
    Did you ./configure and make it?
    – Swedgin
    May 21 at 14:54
  • Can you give me the complete line of codes I have to try? I'm just so newbie.
    – Turuu
    May 22 at 2:54
0

The Makefile does not contain the target "install". Maybe you have to run another command first to configure the build process. Are there any readme files? Maybe you could post the output of ls -l in the project root for people to look at

4
  • You might need to install cmake, and to create a build directory then use cmake to create a build script etc May 21 at 14:12
  • total 120 drwxr-xr-x 19 pi pi 4096 May 21 14:44 build drwxr-xr-x 6 pi pi 4096 Nov 17 2018 cmake -rw-r--r-- 1 pi pi 68498 Nov 17 2018 CMakeLists.txt -rw-r--r-- 1 pi pi 191 Nov 17 2018 CONTRIBUTING.md drwxr-xr-x 7 pi pi 4096 Nov 17 2018 data drwxr-xr-x 7 pi pi 4096 Nov 17 2018 doc drwxr-xr-x 4 pi pi 4096 Nov 17 2018 include -rw-r--r-- 1 pi pi 2234 Nov 17 2018 LICENSE drwxr-xr-x 37 pi pi 4096 Nov 17 2018 modules drwxr-xr-x 10 pi pi 4096 Nov 17 2018 platforms -rw-r--r-- 1 pi pi 664 Nov 17 2018 README.md
    – Turuu
    May 22 at 2:40
  • Sorry, is it readable? I didn't know how to indent it.
    – Turuu
    May 22 at 2:56
  • you have a build directory and CMakeLists.txt. according to the opencv website you should cd build then cmake ../opencv-master finally cmake --build. see https://docs.opencv.org/4.5.0/d7/d9f/tutorial_linux_install.html May 22 at 11:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.