Installer la librairie OpenCv sou Linux de manière locale
- Réaliser ses opérations dans un terminal utilisateur :
- Si vous utiliser le shell bash (echo $SHELL)
cd ~
mkdir local
wget http://belnet.dl.sourceforge.net/sourceforge/opencvlibrary/opencv-1.0.0.tar.gz
tar xzvf opencv-1.0.0.tar.gz
cd opencv-1.0.0
./configure --prefix=$HOME/local
make
make install
cd ~ajouter ceci au fichier :
emacs .bashrc
export PKG_CONFIG_PATH=~/local/lib/pkgconfig:$PKG_CONFIG_PATHpour que les changement soit pris en compte directement tapez :
export LD_LIBRARY_PATH=~/local/lib:$LD_LIBRARY_PATH
export PATH=~/local/bin:$PATH
source .bashrc