[Solved] Lego-loam Error: opencv fatal error: cv.h: No such file or directory

Opencv fatal error: CV. H: no such file or directory when LEGO loam package is compiled recently

Through investigation, I found that my own Ubuntu 18.04 is installed with opencv4, the path is usr/include/opencv4, and opencv4 does not have cv. H


Method 1: install opencv3.4.1,

Method 2: Replace cv. H with imgproc.HPP

Similar Posts: