Erreur dans pkg-config

J'ai installé le système d'exploitation Debian sur Rpi. Lors de l'installation d'opencv, je créer "opencv.pc" fichier dans "/home/pi/Opencv-2.4.3/presse/lib". Ensuite, je suis entré deux commandes suivantes:

  1. sudo gedit /etc/bash.bashrc

Ajouter les deux lignes suivantes à la “bash.bashrc” fichier et enregistrez le fichier:
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/pi/Opencv-2.4.3/presse/lib/pkgconfig
export PKG_CONFIG_PATH

Puis j'ai eu l'erreur suivante après avoir entré ces commandes:

  1. chmod +x build_all.sh

  2. /build_all.sh

Quelle est la solution?

erreurs..

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