JuangaCovas.info

La página personal de Juan Gabriel Covas

Herramientas de usuario

Herramientas del sitio


linux:howtos:centos:openalpr-compile-from-sources

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
Última revisiónAmbos lados, revisión siguiente
linux:howtos:centos:openalpr-compile-from-sources [21/08/2021 19:44] Juanga Covaslinux:howtos:centos:openalpr-compile-from-sources [05/09/2021 13:28] – Fix alternatives for cmake, not for git... Juanga Covas
Línea 21: Línea 21:
  
 <code bash [enable_line_numbers="true"]> <code bash [enable_line_numbers="true"]>
-# some "easy" pre-requisites to compile openalpr+# Installing OpenALPR from sources under CentOS 7 
 + 
 +# some "easy" pre-requisites to be able to compile OpenALPR
 sudo yum -y install epel-release sudo yum -y install epel-release
 sudo yum -y install git wget sudo yum -y install git wget
Línea 80: Línea 82:
   # if [ ! -f /etc/ld.so.conf.d/usrlocal.conf ] ;then echo "/usr/local/lib" > /etc/ld.so.conf.d/usrlocal.conf; echo "/usr/local/lib64" >>/etc/ld.so.conf.d/usrlocal.conf; fi   # if [ ! -f /etc/ld.so.conf.d/usrlocal.conf ] ;then echo "/usr/local/lib" > /etc/ld.so.conf.d/usrlocal.conf; echo "/usr/local/lib64" >>/etc/ld.so.conf.d/usrlocal.conf; fi
   # sudo ldconfig -v   # sudo ldconfig -v
 +
 +This is needed so alpr doesn't complain about finding libraries...
  
 Test it: Test it:
Línea 111: Línea 115:
 The relevant part is to execute the following two commands, assuming you have installed ''cmake'' AND ''cmake3'': The relevant part is to execute the following two commands, assuming you have installed ''cmake'' AND ''cmake3'':
 <code [enable_line_numbers="false"]> <code [enable_line_numbers="false"]>
-sudo alternatives --install /usr/local/bin/git git /usr/bin/git 10 \ +sudo alternatives --install /usr/local/bin/cmake cmake /usr/bin/cmake 10 \ 
---slave /usr/local/git-receive-pack git-receive-pack /usr/bin/git-receive-pack +--slave /usr/local/bin/ctest ctest /usr/bin/ctest 
---slave /usr/local/git-shell git-shell /usr/bin/git-shell +--slave /usr/local/bin/cpack cpack /usr/bin/cpack 
---slave /usr/local/git-upload-archive git-upload-archive /usr/bin/git-upload-archive \ +--slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake 
---slave /usr/local/git-upload-pack git-upload-pack /usr/bin/git-upload-pack +--family cmake 
---family git+ 
 +cmake3
  
-sudo alternatives --install /usr/local/bin/git git /usr/local/git/bin/git 20 \ +sudo alternatives --install /usr/local/bin/cmake cmake /usr/bin/cmake3 20 \ 
---slave /usr/local/git-cvsserver git-cvsserver /usr/local/git/bin/git-cvsserver \ +--slave /usr/local/bin/ctest ctest /usr/bin/ctest3 
---slave /usr/local/git-receive-pack git-receive-pack /usr/local/git/bin/git-receive-pack +--slave /usr/local/bin/cpack cpack /usr/bin/cpack3 
---slave /usr/local/git-shell git-shell /usr/local/git/bin/git-shell \ +--slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake3 
---slave /usr/local/git-upload-archive git-upload-archive /usr/local/git/bin/git-upload-archive +--family cmake
---slave /usr/local/git-upload-pack git-upload-pack /usr/local/git/bin/git-upload-pack \ +
---slave /usr/local/gitk gitk /usr/local/git/bin/gitk +
---family git+
 </code> </code>
 Test ''cmake'' version: Test ''cmake'' version:
linux/howtos/centos/openalpr-compile-from-sources.txt · Última modificación: 12/09/2021 00:04 por Juanga Covas