12 novembre 2006

Installer la librairie OpenCv sou Linux de manière locale

  1. Réaliser ses opérations dans un terminal utilisateur :
  2. 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
  3. Si vous utiliser le shell bash (echo $SHELL)
  4. cd ~
    emacs .bashrc
    ajouter ceci au fichier :
    export PKG_CONFIG_PATH=~/local/lib/pkgconfig:$PKG_CONFIG_PATH
    export LD_LIBRARY_PATH=~/local/lib:$LD_LIBRARY_PATH
    export PATH=~/local/bin:$PATH
    pour que les changement soit pris en compte directement tapez :
    source .bashrc

Aucun commentaire: