Fehler in der pkg-config

Installierte ich Debian OS auf dem Rpi. Während der Installation von opencv, die ich erstellen "opencv.pc" Datei in "/home/pi/Opencv-2.4.3/release/lib". Dann trat ich in folgenden zwei Befehle aus:

  1. sudo gedit /etc/bash.bashrc

Fügen Sie die folgenden zwei Zeilen an die “bash.bashrc" - Datei, und speichern Sie die Datei:
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/pi/Opencv-2.4.3/release/lib/pkgconfig
export PKG_CONFIG_PATH

Dann bekam ich folgenden Fehler, nachdem diese eingegeben Befehle:

  1. chmod +x build_all.sh
  2. /build_all.sh

Was ist die Lösung?

Fehler..

Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found

Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found

contours.c:1:39: fatal error: opencv2/imgproc/imgproc_c.h: No such file or directory
compilation terminated.
compiling convert_cascade.c
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found..etc..

InformationsquelleAutor dhanash | 2013-07-24

Schreibe einen Kommentar