“OpenCV es una biblioteca libre de visión artificial originalmente desarrollada por Intel” (Wiki). Esta biblioteca permite capturar e interpretar imágenes en tiempo real, pudiendo por ejemplo desarrollar aplicaciones que cuenten con identificación de colores, rostros, seguidores de movimiento, etc.
Internet está lleno de comentarios en foros de usuarios de linux, windows y mac comentando lo magnifico que usarlo o pidiendo ayuda para instalarlo. Decidido a instarlo en Ubuntu 10.04 voy a utilizar este blog como un LOG de mis errores y aciertos hasta que pueda hacer andar esta dichosa biblioteca.
Antes que nada quiero comentarles que mi cámara web figura como Z-Star Microelectronics Corp. ZC0301 Webcam. Usar cámaras web para este tipo de trabajos suele ser una complicación, por la mala calidad y los problemas que genera v4l2 (Video For Linux 2 – Driver de dispositivos de video), lo mejor es utilizar cámaras DV conectadas mediante firewire.
Instalación
La instalación va a constar de dos pasos, primero vamos a instalar OpenCV, una vez que esté funcionando vamos a instalar la librería de OpenCV en Processing.
Luego de probar todas las versiones compiladas, instaladas mediante el repositorio oficial de Ubuntu o mediante repositorios de terceros, la única manera de que funciones es compilando OpenCV desde cero. Así que antes que nada instalamos todo lo necesario para la compilación:
sudo apt-get install build-essential cmake subversion libgtk2.0-dev pkg-config
Con eso en mi caso fue suficiente, puede ser que en parte se deba a que yo ya tenga otros paquetes instalados, si por casualidad llega a pedirte que instales otras dependencias:
sudo apt-get install libpng12-0 libpng12-dev libjpeg62 libjpeg62-dev zlib1g zlib1g-dev libtiff4 libtiff4-dev libjasper1 libavcodec52 libdc1394-22
También figuran entre las recomendaciones tener instalado Python y SWIG con sus respectivos dev.
Creo que con eso es mas que suficiente, si todavía te sigue pidiendo alguna dependencia no dudes en comentar este post y vemos como lo solucionamos.
El siguiente paso es descargar el código fuente de OpenCV. Para ello create una carpeta en donde quieras, para esta guía vamos a suponer que me creo una carpeta “codigo” dentro de mis carpetas personales (/home/tuxinga/codigo/). Abrimos una terminal, entramos dentro de esta carpeta
cd /home/tuxinga/codigo
Y ejecutamos Subversion:
svn co https://opencvlibrary.svn.sourceforge.net/svnroot/opencvlibrary/trunk
Cuando se termine de descargar entramos dentro del directorio principal
cd /home/tuxinga/codigo/trunk/opencv
Creamos un directorio con el nombre release y despues ejecutamos cmake
mkdir release
cd release
Esto a continuación es todo una sola linea:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON ..
Si está todo OK seguimos con la compilación e instalación, sino es así fijate cuales son los errores que cmake marcó y tratá de corregirlos.
make
sudo make install
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Si seguiste todos los pasos y le prendiste una vela a San Ignucio todo debería estar funcionando.
Para testear OpenCV
cd /home/tuxinga/codigo/trunk/opencv/release/bin
./cxcoretest
Otra manera de probarlo es compilando los ejemplos en C que usan la librería y jugar un rato con ellos, incluso podes estudiar su código y modificarlo, esa es la mejor manera de comenzar a aprender.
cd /home/tuxinga/codigo/trunk/opencv/samples/c
sh ./build_all.sh
./facedetect
Hasta acá la primer parte. Para no mezclar los temas voy a dejar la instalación en Processing para un próximo post.
Juan Pablo
julio 22, 2010
Tendrás idea de cual puede ser la solución a este problema?
Leyendo la información de estado… Hecho
build-essential ya está en su versión más reciente.
cmake ya está en su versión más reciente.
subversion ya está en su versión más reciente.
pkg-config ya está en su versión más reciente.
No se pudieron instalar algunos paquetes. Esto puede significar que
usted pidió una situación imposible o, si está usando la distribución
inestable, que algunos paquetes necesarios no han sido creados o han
sido movidos fuera de Incoming.
La siguiente información puede ayudar a resolver la situación:
Los siguientes paquetes tienen dependencias incumplidas:
libgtk2.0-dev: Depende: libgtk2.0-0 (= 2.20.0-0ubuntu4) pero 2.20.1-0ubuntu1 va a ser instalado
Marcos
julio 22, 2010
Hola Juan Pablo, necesito mas datos. Que versión de Ubuntu tenes instalado?
Alberto
julio 22, 2010
Buenas tardes, tengo la versión 10.04 y parece que todo bien hasta la linea de:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON ..
En principio parece que lo ha hecho todo bien salvo que mirando me pone:
Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
– Found JPEG: /usr/lib/libjpeg.so
– Could NOT find Jasper (missing: JASPER_LIBRARY JASPER_INCLUDE_DIR)
– Found PythonInterp: /usr/bin/python2.6
– Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
Me seria de gran ayuda si me pudieses dar alguna solución ya que mi proyecto fin de carrera va con openCV.
Un saludo.
Muchas gracias.
Marcos
julio 22, 2010
Hola Alberto, parece ser que te faltan instalar un par de librerías antes de compilar. Por lo visto son las de python, jasper y tiff.
sudo apt-get install libjasper1 libjasper-dev libtiff4 libtiff4-devLo que me llama la atención es que cono encuentre las librerías de python y que tampoco diga cual específicamente. Python tiene montones de librerías, posiblemente se refiera a los archivos de python-dev.
No dudes en volver a preguntar o a informarnos como salió todo, incuso si comentas un poco que tienes pensado hacer o donde estudias estar bueno.
Saludos, Marcos.
Alberto
julio 23, 2010
Buenas tardes otra vez,
Desde el gestor de paquetes he instalado una versión nueva de python y ahora me sale esto:
– Extracting svn version, please wait…
– SVNVERSION: svn:2281
– Detected version of GNU GCC: 44
– checking for module ‘gstreamer-base-0.10′
– package ‘gstreamer-base-0.10′ not found
– checking for module ‘gstreamer-app-0.10′
– package ‘gstreamer-app-0.10′ not found
– checking for module ‘gstreamer-video-0.10′
– package ‘gstreamer-video-0.10′ not found
– checking for module ‘libunicap’
– package ‘libunicap’ not found
– checking for module ‘libucil’
– package ‘libucil’ not found
– checking for module ‘libavcodec’
– package ‘libavcodec’ not found
– checking for module ‘libavformat’
– package ‘libavformat’ not found
– checking for module ‘libavutil’
– package ‘libavutil’ not found
– checking for module ‘libswscale’
– package ‘libswscale’ not found
– checking for module ‘libdc1394-2′
– package ‘libdc1394-2′ not found
– checking for module ‘libdc1394′
– package ‘libdc1394′ not found
– checking for module ‘libxine’
– package ‘libxine’ not found
– checking for module ‘libv4l1′
– package ‘libv4l1′ not found
– Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
– IPP detected:
Un saludo muchas gracias.
Paula
julio 24, 2010
Tengo la version 9.04 de ubuntu y en paso siguiente a cd release me aparece el siguiente error:
CMake Error: The source directory “/home/paula/Escritorio/PFC/OpenCV” does not appear to contain CMakeLists.txt.
Specify –help for usage, or press the help button on the CMake GUI.
Muchas gracias
Alberto
julio 24, 2010
Ahora me sale el mismo error que a paula
Marcos
julio 24, 2010
Paula por los datos que publicaste parece ser que hay algo mal. Estas intentando hacer CMAKE dentro de “/home/paula/Escritorio/PFC/OpenCV”. Para poder responderte con presición necesitaría saber si a los archivos que descargaste con SVN estan dentro de esa carpeta o estan en otro lado. Es decir: con SVN descargas los arhivos que hay que compilar. Dentro de la carpeta principal de lo que se descarga hay que crear una carpeta “release” y dentro de esta ejecutar CMAKE.
Probá repetir nuevamente el tutorial, cambia en las direcciones tuxinga por paula y debería andar.
Alberto
julio 25, 2010
Buenas Marcos estos son los errores que me salen despues de hacer cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON .. :
checking for module ‘gstreamer-base-0.10′
– package ‘gstreamer-base-0.10′ not found
– checking for module ‘gstreamer-app-0.10′
– package ‘gstreamer-app-0.10′ not found
– checking for module ‘gstreamer-video-0.10′
– package ‘gstreamer-video-0.10′ not found
– checking for module ‘libunicap’
– package ‘libunicap’ not found
– checking for module ‘libucil’
– package ‘libucil’ not found
– checking for module ‘libavcodec’
– package ‘libavcodec’ not found
– checking for module ‘libavformat’
– package ‘libavformat’ not found
– checking for module ‘libavutil’
– package ‘libavutil’ not found
– checking for module ‘libswscale’
– package ‘libswscale’ not found
– Looking for libavformat/avformat.h
– Looking for libavformat/avformat.h – not found
– Looking for ffmpeg/avformat.h
– Looking for ffmpeg/avformat.h – not found
– checking for module ‘libdc1394-2′
– package ‘libdc1394-2′ not found
– checking for module ‘libdc1394′
– package ‘libdc1394′ not found
– Looking for alloca.h
– Looking for alloca.h – found
– Looking for alloca
– Looking for alloca – not found
– Looking for unistd.h
– Looking for unistd.h – found
– Looking for pthread.h
– Looking for pthread.h – found
– checking for module ‘libxine’
– package ‘libxine’ not found
– checking for module ‘libv4l1′
– package ‘libv4l1′ not found
En cuanto a lo que estudiaba estoy haciendo ingenieria industrial en electronica industrial y el proyecto es con la visión de un hoap-3
gmarcos87
julio 26, 2010
Alberto cada package ‘xxx’ not found son paquetes que te falta instalar. Te recomiendo que abras Synaptic en Ubuntu (Sistema>Administración>Gestor de paque…) y los busques y marques para instalar. Incluso de esta manera vas a poder ver que hace cada uno de esos elementos que te faltan.
Cualquier problema no dudes en comentar cuantas veces hagan falta, y si se solucionó el problema te pido que también lo publiques.
Saludos.
Alberto
julio 27, 2010
Hola marcos,
Al fin lo logre!!!Paula también lo consiguió. Muchisimas gracias por todo. Seguro que tendré que hacerte más preguntas más adelante. Probé con lo de facedetect y el problema que no me salia del bucle jeje.
Bueno muchas gracias de nuevo.
Un saludo Alberto.
PD: ¿no sabrás de algún tutorial para saber usar bien la terminal en cuanto a compilar, ejecutar, abrir y cerrar la cam…?
Marcos
julio 28, 2010
Me alegro que funcione, no pierdas de vista el blog. Pronto publicaré mas tutoriales al respecto.
Alberto
agosto 3, 2010
Buenas estoy intentando hacer pruebas con programillas que vienen en el libro Learning OpenCV y me da error. Este es el programa:
#include “highgui.h”
int main( int argc, char** argv ) {
IplImage* img = cvLoadImage( argv[1] );
cvNamedWindow( “Example1”, CV_WINDOW_AUTOSIZE );
cvShowImage( “Example1”, img );
cvWaitKey(0);
cvReleaseImage( &img );
cvDestroyWindow( “Example1” );
}
¿qué es lo que hago mal?
Un saludo.
Muchas gracias.
Alberto
agosto 3, 2010
He ido corriegiendo errores y lo que ahora me vuelve loco es que me sale esto, ¿sabes de que puede ser?
/tmp/cczVp073.o: In function `cvRound’:
prueba.c:(.text+0×19): undefined reference to `lrint’
/tmp/cczVp073.o: In function `cvDecRefData’:
prueba.c:(.text+0xa4c): undefined reference to `cvFree_’
prueba.c:(.text+0xabd): undefined reference to `cvFree_’
/tmp/cczVp073.o: In function `cvGetRow’:
prueba.c:(.text+0xbb3): undefined reference to `cvGetRows’
/tmp/cczVp073.o: In function `cvGetCol’:
prueba.c:(.text+0xbde): undefined reference to `cvGetCols’
/tmp/cczVp073.o: In function `cvReleaseMatND’:
prueba.c:(.text+0xbf1): undefined reference to `cvReleaseMat’
/tmp/cczVp073.o: In function `cvSubS’:
prueba.c:(.text+0xd11): undefined reference to `cvAddS’
/tmp/cczVp073.o: In function `cvCloneSeq’:
prueba.c:(.text+0xd5f): undefined reference to `cvSeqSlice’
/tmp/cczVp073.o: In function `cvSetNew’:
prueba.c:(.text+0xdbe): undefined reference to `cvSetAdd’
/tmp/cczVp073.o: In function `cvGetSetElem’:
prueba.c:(.text+0xe51): undefined reference to `cvGetSeqElem’
/tmp/cczVp073.o: In function `cvEllipseBox’:
prueba.c:(.text+0xf51): undefined reference to `cvEllipse’
/tmp/cczVp073.o: In function `cvFont’:
prueba.c:(.text+0xf9f): undefined reference to `cvInitFont’
/tmp/cczVp073.o: In function `cvReadIntByName’:
prueba.c:(.text+0x104d): undefined reference to `cvGetFileNodeByName’
/tmp/cczVp073.o: In function `cvReadRealByName’:
prueba.c:(.text+0x10de): undefined reference to `cvGetFileNodeByName’
/tmp/cczVp073.o: In function `cvReadStringByName’:
prueba.c:(.text+0×1138): undefined reference to `cvGetFileNodeByName’
/tmp/cczVp073.o: In function `cvReadByName’:
prueba.c:(.text+0×1168): undefined reference to `cvGetFileNodeByName’
prueba.c:(.text+0x117e): undefined reference to `cvRead’
/tmp/cczVp073.o: In function `main’:
prueba.c:(.text+0x126e): undefined reference to `cvLoadImage’
prueba.c:(.text+0×1286): undefined reference to `cvNamedWindow’
prueba.c:(.text+0x129a): undefined reference to `cvShowImage’
prueba.c:(.text+0x12a6): undefined reference to `cvWaitKey’
prueba.c:(.text+0x12b2): undefined reference to `cvReleaseImage’
prueba.c:(.text+0x12be): undefined reference to `cvDestroyWindow’
collect2: ld returned 1 exit status
gracias
jb
agosto 19, 2010
Cuando ejecuto: desde la ruta /home/usuario/opencv/OpenCV-2.1.0/release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON
Me sale el error
CMake Error: The source directory “/home/usuario/opencv/OpenCV-2.0.0/release/BUILD_PYTHON_SUPPORT=ON” does not exist.
Specify –help for usage, or press the help button on the CMake GUI.
Alguien sabe que pasa? :s
yeşilçam
octubre 7, 2010
ohh thnxx admin
Jeison
febrero 17, 2011
Hola, estoy tratando de instalar OpenCv en ubuntu 9.10 y me aparece esto
svn: OPTIONS de «https://opencvlibrary.svn.sourceforge.net/svnroot/opencvlibrary»: no se pudo establecer la conexión con el servidor (https://opencvlibrary.svn.sourceforge.net)
root@jeison-desktop:~/codigo# svn co https://opencvlibrary.svn.sourceforge.net/svnroot/opencvlibrary
que no se puede establecer conexión que hago???
Gracias
Jorge
marzo 2, 2011
Hola:
realice los pasos, aunque no me marca error al momento de hacerlo, al realizar algunos test me sale error.
Podrias ayudarme con estas dudas:
1. los archivos .o que se generan son las librerias, es correcto?
2. usando el script en la carpeta C de los ejemplos, se compilan perfectamente, pero luego al correr los ejecutables me salen errores. Especificamente con facedetection me indico lo siguiente:
see facedetect.cmd for one call:
./facedetect –cascade=”../../data/haarcascades/haarcascade_frontalface_alt.xml” –nested-cascade=”../../data/haarcascades/haarcascade_eye.xml” –scale=1.3
Hit any key to quit.
Using OpenCV version %s
2.2.0
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvNamedWindow, file /home/jyrios/instaladores/OpenCV/trunk/opencv/modules/highgui/src/window.cpp, line 274
terminate called after throwing an instance of ‘cv::Exception’
what(): /home/jyrios/instaladores/OpenCV/trunk/opencv/modules/highgui/src/window.cpp:274: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvNamedWindow
Tengo ubuntu 10.10 y estoy seguro de tener instalado libgtk2.0-dev y pkp-config.
3. el soporte para GPU, como puedo activarlo? lei una nota donde decia recientemente q NVIDIA ya esta dando soporte para OpenCV y ne mi pc tengo una de esas tarjetas.
Jorge
marzo 2, 2011
Ya encontre la solucion a mi problema de compilacion…. me faltaba la libreria gtk (libgtk2.0)
Usama Ahmed
marzo 29, 2011
I have seen it and i dont know your language
so i translte it using google translator and done all .
and its work perfect Thank you so much
I am posting its English Version for other users
***********************************************************
The facility will consist of two steps, first going to install OpenCV, once it is working we will install the OpenCV library in Processing.
After testing all versions compiled, installed by the official Ubuntu repository or through third-party repositories, the only way is to compile OpenCV functions from scratch. So first of all install everything you need for compilation:
sudo apt-get install build-essential libgtk2.0-dev subversion cmake pkg-config
With that in my case was enough, it might partly be because I already have other packages installed, if you happen to come to ask you to install other dependencies:
sudo apt-get install libpng12-0 libpng12-dev libjpeg62 libjpeg62-dev zlib1g zlib1g-dev libtiff4 libtiff4-dev Tag libjasper1 libavcodec52 libdc1394-22
Also among the recommendations have installed Python and SWIG with their dev.
I think that that’s more than enough, if you still continues to call any dependencies not hesitate to comment on this post and see how we solve it.
The next step is to download the source code for OpenCV. To do this create a folder where you want, for this guide we will assume that I created a folder “code” into my personal folder (/ home / tuxinga / code /). Open a terminal, enter into this folder
cd / home / tuxinga / code
And run Subversion:
svn co https: / / opencvlibrary.svn.sourceforge.net / svnroot / opencvlibrary / trunk
When we finished downloading into the directory
cd / home / tuxinga / code / trunk / opencv
Create a directory named release and then run cmake
mkdir release
cd release
This then is all one line:
cmake-D CMAKE_BUILD_TYPE = RELEASE-D CMAKE_INSTALL_PREFIX = / usr / local-D BUILD_PYTHON_SUPPORT = ON ..
If everything is OK continue with the compilation and installation, but which are so fijate cmake errors marked and try to correct them.
make
sudo make install
export LD_LIBRARY_PATH = / usr / local / lib: $ LD_LIBRARY_PATH
If you followed all the steps and lit a candle to San Ignucio everything should be working.
To test OpenCV
cd / home / tuxinga / code / trunk / opencv / release / bin
. / Cxcoretest
Another way to test is to compile the examples in C that use the library and play around with them, we can even study their code and modify it, that’s the best way to start learning.
cd / home / tuxinga / code / trunk / opencv / samples / c
sh. / build_all.sh
. / Facedetect
So here the first part. Not to mix the issues I will bring the facility to Processing for an upcoming post.
Usama Ahmed
marzo 29, 2011
but i face one problem the facedetect.c file didnt run and give error
facedetect.cpp:3:16: error: cv.h: No such file or directory
facedetect.cpp:4:21: error: highgui.h: No such file or directory
turko
abril 10, 2011
Muy buen post, pude correr todos los pasos, decís que con esto todavía no queda instalado?? yo siempre lo instalé de los repositorios, que tengo que hacer para poder usarlo normalmente en mis programas??
Patricio
mayo 11, 2011
me salen los siguientes errores después de hacer “make”
make[2]: *** [src/highgui/CMakeFiles/highgui.dir/cvcap_ffmpeg.o] Error 1
make[1]: *** [src/highgui/CMakeFiles/highgui.dir/all] Error 2
make: *** [all] Error 2
Jhosmer
septiembre 17, 2011
Igual me salen estos errores después de hacer “make”
make[2]: *** [src/highgui/CMakeFiles/highgui.dir/cvcap_ffmpeg.o] Error 1
make[1]: *** [src/highgui/CMakeFiles/highgui.dir/all] Error 2
make: *** [all] Error 2
nico_kalma
octubre 16, 2011
no me funciono con python que puedo hacer?
andrestntx
enero 9, 2012
He llegado hasta acá.
No he logrado pasar de make, tal ves debe ser algo que falta.
make[2]: *** [src/cxcore/CMakeFiles/cxcore_pch_dephelp.dir/cxcore_pch_dephelp.o] Error 1
make[1]: *** [src/cxcore/CMakeFiles/cxcore_pch_dephelp.dir/all] Error 2
make: *** [all] Error 2
electro020
febrero 28, 2012
hola tu tutoría me fue de gran ayuda gracias
Pablo
marzo 11, 2012
Muy buenas.
Muchas gracias por tu tutorial, yo estoy con una Linux Mint 12, y me ha ido muy bien.
kevin
marzo 14, 2012
hola. tengo un 2 errores con el make
[ 54%] Building CXX object src/cxcore/CMakeFiles/cxcore.dir/cxalloc.o
In file included from /home/kevin/Escritorio/OpenCV/trunk/opencv/include/opencv/cxcore.h:2123:0,
from /home/kevin/Escritorio/OpenCV/trunk/opencv/src/cxcore/_cxcore.h:60,
from /home/kevin/Escritorio/OpenCV/trunk/opencv/src/cxcore/cxalloc.cpp:43:
/home/kevin/Escritorio/OpenCV/trunk/opencv/include/opencv/cxcore.hpp:169:13: error: ‘ptrdiff_t’ no nombra a un tipo
In file included from /home/kevin/Escritorio/OpenCV/trunk/opencv/include/opencv/cxcore.hpp:2242:0,
from /home/kevin/Escritorio/OpenCV/trunk/opencv/include/opencv/cxcore.h:2123,
from /home/kevin/Escritorio/OpenCV/trunk/opencv/src/cxcore/_cxcore.h:60,
from /home/kevin/Escritorio/OpenCV/trunk/opencv/src/cxcore/cxalloc.cpp:43:
/home/kevin/Escritorio/OpenCV/trunk/opencv/include/opencv/cxoperations.hpp:1916:15: error: ‘ptrdiff_t’ no nombra a un tipo
/home/kevin/Escritorio/OpenCV/trunk/opencv/include/opencv/cxoperations.hpp:2465:31: error: ‘ptrdiff_t’ no nombra a un tipo
In file included from /home/kevin/Escritorio/OpenCV/trunk/opencv/include/opencv/cxcore.hpp:2243:0,
from /home/kevin/Escritorio/OpenCV/trunk/opencv/include/opencv/cxcore.h:2123,
from /home/kevin/Escritorio/OpenCV/trunk/opencv/src/cxcore/_cxcore.h:60,
from /home/kevin/Escritorio/OpenCV/trunk/opencv/src/cxcore/cxalloc.cpp:43:
/home/kevin/Escritorio/OpenCV/trunk/opencv/include/opencv/cxmat.hpp: En la función miembro ‘void cv::Mat::locateROI(cv::Size&, cv::Point&) const’:
/home/kevin/Escritorio/OpenCV/trunk/opencv/include/opencv/cxmat.hpp:377:5: error: ‘ptrdiff_t’ no se declaró en este ámbito
/home/kevin/Escritorio/OpenCV/trunk/opencv/include/opencv/cxmat.hpp:377:5: nota: alternativas sugeridas:
/usr/include/c++/4.6/i686-linux-gnu/./bits/c++config.h:156:28: nota: ‘std::ptrdiff_t’
/usr/include/c++/4.6/i686-linux-gnu/./bits/c++config.h:156:28: nota: ‘std::ptrdiff_t’
/home/kevin/Escritorio/OpenCV/trunk/opencv/include/opencv/cxmat.hpp:377:15: error: expected ‘;’ before ‘delta1’
/home/kevin/Escritorio/OpenCV/trunk/opencv/include/opencv/cxmat.hpp:379:9: error: ‘delta1’ no se declaró en este ámbito
/home/kevin/Escritorio/OpenCV/trunk/opencv/include/opencv/cxmat.hpp:388:31: error: ‘delta2’ no se declaró en este ámbito
make[2]: *** [src/cxcore/CMakeFiles/cxcore.dir/cxalloc.o] Error 1
make[1]: *** [src/cxcore/CMakeFiles/cxcore.dir/all] Error 2
make: *** [all] Error 2
algun aporte?
ryan
marzo 28, 2012
que dios te bendiga por que yo ya lo he hehco…
alex
marzo 30, 2012
muchas gracias le he instalado perfectamente y sin problemas ojala pudieses publicar para instalar en oneric
y gracias de nuevo
complete seo package
enero 19, 2013
Finding your site totally made my day. You have no idea.