tsdconseil / opencv-demonstrator

OpenCV demonstrator (GUI)
http://www.tsdconseil.fr/log/opencv/demo/index-en.html
GNU Lesser General Public License v3.0
141 stars 57 forks source link

make[1]: *** No rule to make target 'build/debug/ocr.o', needed by 'build/debug/lib.a'. Stop. #76

Closed jyapujuju closed 6 years ago

WascallyWabbit commented 6 years ago

I am seeing the same thing after following the build instructions verbatim. I think I am missing an ocr.cpp file.

Spew follows. Successfully remade target file 'data-update'. Considering target file 'build/debug/lib.a'. File 'build/debug/lib.a' does not exist. Considering target file 'build/debug/ocr.o'. File 'build/debug/ocr.o' does not exist. Finished prerequisites of target file 'build/debug/ocr.o'. Must remake target 'build/debug/ocr.o'. make[1]: No rule to make target 'build/debug/ocr.o', needed by 'build/debug/lib.a'. Stop. make[1]: Leaving directory '/home/eric/opencv-demonstrator/ocvdemo' Makefile:33: recipe for target 'linux' failed make: [linux] Error 2

FWIW I have these files: eric@eric-Aspire-M3420:~/opencv-demonstrator$ pushd ~ ~ ~/opencv-demonstrator ~/opencv-demonstrator ~/opencv-demonstrator eric@eric-Aspire-M3420:~$ find -name ocr.* ./opencv_contrib-3.0.0/modules/text/include/opencv2/text/ocr.hpp eric@eric-Aspire-M3420:~$ ls ./opencv_contrib-3.0.0/modules/text/include/opencv2/text erfilter.hpp ocr.hpp

.....and......

eric@eric-Aspire-M3420:~$ uname -a Linux eric-Aspire-M3420 4.10.0-28-generic #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

juliena82 commented 6 years ago

You need the OpenCV Contrib repositery intalled before compiling the demonstrator.