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:
- 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:
-
chmod +x build_all.sh
-
/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..
Vous devez vous connecter pour publier un commentaire.
Pour ajouter le chemin d'accès correct à votre bashrc vous pouvez effectuer les étapes suivantes
trouver et de modifier ou d'ajouter les lignes suivantes
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/votre/chemin/de/#1
export PKG_CONFIG_PATH
enregistrer votre fichier :wq