[Jde-dev] Compilación "cameraserver"

Francisco Rivas fm.rivas en alumnos.urjc.es
Lun Mar 8 22:36:56 CET 2010


Buenas,


El swig lo tengo instalado, en el configure no me da ningun error:

checking for swig... (cached) /usr/bin/swig


  y:
chanfr en kandalf:~/svn/jde/jderobot/trunk$ aptitude search swig
p   cableswig              - Generate wrappers for Python and Tcl from  
C++ code
i   swig                   - Generate scripting interfaces to C/C++ code
p   swig-doc               - HTML documentation for SWIG
p   swig-examples          - Examples for applications of SWIG
i   swig1.3                - Generate scripting interfaces to C/C++ code
p   swig1.3-doc            - HTML documentation for SWIG
p   swig1.3-examples       - Examples for applications of SWIG


y tampoco en encuentro el fichero hierarchy.i.

¿Alguna idea?

"David Lobato" <dav.lobato en gmail.com> ha escrito:

> Yo creo que el API de c no cambia de la 1.0 a la 2.0, por lo que creo que
> jde 4.3 debería funcionar con la 2.0
> Aunque esto es hablar por hablar, no lo he probado.
>
> En cuanto al asunto de swig en 4.3, creo que te falta instalarlo, por eso no
> puede crear hierarchy_wrap.c que se genera desde hierarchy.i con el programa
> swig.
>
> David.
>
> 2010/3/8 Francisco Rivas <fm.rivas en alumnos.urjc.es>
>
>> He probado casi todos los schemas que tengo de jde que usan opencv y
>> funcionan todos bien, menos en uno que he tenido un problema con una
>> fucnión:
>> cvSaveImage
>>
>> me dice que le fantan argumentos, yo la llamaba con dos pero parece
>> que ahora tiene 3, le he puesto los tres que pide y funciona sin
>> problemas.
>>
>> Por cierto tengo un problema al compilar el trunk de jde:
>>
>> Making all in swig
>> make[3]: se ingresa al directorio
>> `/home/chanfr/svn/jde/jderobot/trunk/base/swig'
>> make[3]: *** No hay ninguna regla para construir el objetivo
>> `hierarchy_wrap.c', necesario para `all'.  Alto.
>>
>>
>> He leido que habíais puesto el mismo error antes, pero no me he
>> enterado muy bien de la solución.
>> Poníais que es que no estan ejecutando el make en el directorio
>> correcto, lo estoy ejecutando en:
>> jderobot/trunk
>>
>>
>>
>>
>> "Francisco Rivas" <fm.rivas en alumnos.urjc.es> ha escrito:
>>
>> > Yo tengo las dos versiones conviviendo sin problemas y me funciona
>> > tanto la 4.3 como la 5.0:
>> >
>> > i   libcv-dev             - development files for libcv
>> > i A libcv1                - computer vision library
>> > i   libcv4                - computer vision library
>> > i   libcvaux-dev          - development files for libcvaux
>> > i A libcvaux1             - computer vision extension library
>> > i   libcvaux4             - computer vision extension library
>> >
>> >
>> > "Javier Vazquez" <javiervazper en yahoo.es> ha escrito:
>> >
>> >> He sido bastante radical. Como me comía la duda por saber si era
>> >> esto, desinstale el paquete libcv (OpenCV 1.0) y con eso ha
>> >> funcionado. Claro, me ha desinstalado también todos los componentes
>> >> dependientes de esto, entre ellos, jderobot (4.3).
>> >>
>> >> No pasa nada porque estoy trabajando con una imagen de VMware y
>> >> puedo dar marcha atrás al paso anterior.
>> >>
>> >> También creo que habría que investigar si en el configure se puede
>> >> hacer esta comprobación. ¿A ti o a Francisco no os pasó? Supongo que
>> >> no teníais la 4.3 con OpenCV 1.0 conviviendo como yo.
>> >>
>> >> Un saludo,
>> >> Javier.
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> ________________________________
>> >> De: David Lobato <dav.lobato en gmail.com>
>> >> Para: Javier Vazquez <javiervazper en yahoo.es>
>> >> CC: Francisco Rivas <fm.rivas en alumnos.urjc.es>; jde developers
>> >> <jde-developers en gsyc.es>
>> >> Enviado: dom,7 marzo, 2010 23:15
>> >> Asunto: Re: [Jde-dev] Compilación "cameraserver"
>> >>
>> >> La verdad es que me resulta extraño ver que se han enlazado las dos
>> >> versiones...
>> >>
>> >> Qué has hecho para resolverlo?
>> >>
>> >> Quizá hay que retocar algo en el configure para que no pase esto.
>> >>
>> >> Coméntame y lo vemos.
>> >>
>> >>
>> >> David
>> >>
>> >>
>> >> 2010/3/7 Javier Vazquez <javiervazper en yahoo.es>
>> >>
>> >> Hola,
>> >>>
>> >>> he resuelto el problema de las dos versiones OpenCV conviviendo en
>> >>> el sistema, dejando solo la 2.0.
>> >>>
>> >>> Ahora funciona correctamente cameraserver y cameraview. También he
>> >>> probado el ejemplo 3 y va correcto.
>> >>>
>> >>> Un saludo,
>> >>> Javier
>> >>>
>> >>>
>> >>>
>> >>>
>> >> ________________________________
>> >> De: Javier Vazquez <javiervazper en yahoo.es>
>> >>> Para: David Lobato <dav.lobato en gmail.com>
>> >>>
>> >>> CC: Francisco Rivas <fm.rivas en alumnos.urjc.es>; jde developers
>> >>> <jde-developers en gsyc.es>
>> >>> Enviado: dom,7 marzo, 2010 09:38
>> >>>
>> >>> Asunto: Re: [Jde-dev] Compilación "cameraserver"
>> >>>
>> >>>
>> >>>
>> >>> Te las sabes todas, ;-)
>> >>>
>> >>> veo que tiene las dos versiones de OpenCV enlazadas pero aparece
>> >>> primero la de la versión 1 que pertenece al paquete "libcv".
>> >>> Perdonar mi desconocimiento, ¿es posible dar prioridad a la nueva
>> >>> versión sin tener que desinstalar la versión 1? Lo comento porque
>> >>> la versión 4.3 de JDErobot que tengo puesta creo que sí usa la
>> >>> versión 1.
>> >>>
>> >>> jvazquez en ubuntu:/jderobot5.0/bin$ lddcameraview  | greplibcxcore
>> >>>    libcxcore.so.1 => /usr/lib/libcxcore.so.1 (0x02cb2000)
>> >>>    libcxcore.so.2.0 => /usr/local/lib/libcxcore.so.2.0 (0x0481d000)
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >> ________________________________
>> >> De: David Lobato <dav.lobato en gmail.com>
>> >>> Para: Javier Vazquez <javiervazper en yahoo.es>
>> >>> CC: Francisco Rivas <fm.rivas en alumnos.urjc.es>; jde developers
>> >>> <jde-developers en gsyc.es>
>> >>> Enviado: dom,7 marzo, 2010 09:18
>> >>> Asunto: Re: [Jde-dev] Compilación "cameraserver"
>> >>>
>> >>> libcxcore.so.1 pertenece a opencv 1.0 si no me equivoco. Tienes las
>> >>> 2 versiones instaladas??
>> >>> Prueba a ejecutar ldd en cameraview, a ver que librerías te dice
>> >>> que enlaza.
>> >>>
>> >>>
>> >>> 2010/3/7 Javier Vazquez <javiervazper en yahoo.es>
>> >>>
>> >>> Hola,
>> >>>>
>> >>>> perfecto, solo me quedaba eso para lograr que el "make" compilara
>> >>>> todo el proyecto!! Gracias a ambos!!
>> >>>>
>> >>>> Ahora estoy probando con la ejecución de los componentes camera.
>> >>>> La parte servidora creo que va bien. En su fichero de
>> >>>> configuración, he restringido los dispositivos a una única fuente
>> >>>> "simulada". Al arrancar da algún mensaje como si algo no fuera
>> >>>> aceptado pero finalmente se queda escuchando por el puerto 9999
>> >>>> indicado:
>> >>>>
>> >>>>
>> >>>> #withoutregistry
>> >>>> CameraSrv.Endpoints=default -h 127.0.0.1 -p 9999
>> >>>> #withregistry
>> >>>> #CameraSrv.Endpoints=default
>> >>>> #CameraSrv.AdapterId=CameraSrv1
>> >>>> #Ice.Default.Locator=IceGrid/Locator:tcp -h localhost -p 12000
>> >>>>
>> >>>> #cameras configuration
>> >>>> CameraSrv.NCameras=1
>> >>>>
>> >>>> #camera  0
>> >>>> CameraSrv.Camera.0.Name=cameraB
>> >>>> CameraSrv.Camera.0.ShortDescription=Camera simulatedfrom a video
>> >>>>
>> CameraSrv.Camera.0.Uri=file:///home/jvazquez/ROBOTICS/Documents/2009.05.21-TalkCompilingAndDebugging_makefile.avi
>> >>>> CameraSrv.Camera.0.FramerateN=15
>> >>>> CameraSrv.Camera.0.FramerateD=1
>> >>>> CameraSrv.Camera.0.ImageWidth=320
>> >>>> CameraSrv.Camera.0.ImageHeight=240
>> >>>> CameraSrv.Camera.0.Format=RGB888
>> >>>>
>> >>>> Al ejecutar sale esto, aunque por el estado LISTEN del puerto 9999
>> >>>> y el consumo de CPU de cameraserver, debe estar funcionando bien:
>> >>>>
>> >>>>
>> >>>> jvazquez en ubuntu:/jderobot5.0/bin$ ./cameraserver
>> >>>> --Ice.Config=/tmp/cameraserver.cfg
>> >>>> libdc1394 error: Failedtoinitializelibdc1394
>> >>>> 03/07/2010 08:54:16.493 ./cameraserver: warning:
>> >>>> foundunknownpropertiesforobjectadapter `CameraSrv':
>> >>>>    CameraSrv.Camera.0.Format
>> >>>>    CameraSrv.Camera.0.FramerateD
>> >>>>     CameraSrv.Camera.0.FramerateN
>> >>>>    CameraSrv.Camera.0.ImageHeight
>> >>>>    CameraSrv.Camera.0.ImageWidth
>> >>>>    CameraSrv.Camera.0.Name
>> >>>>    CameraSrv.Camera.0.ShortDescription
>> >>>>    CameraSrv.Camera.0.Uri
>> >>>>    CameraSrv.NCameras
>> >>>> info: CameraSrv: Createdobjectadapter.
>> >>>> CameraSrv: Componentinfrastructure thread created.
>> >>>> info: CameraSrv: Applicationinitialized.
>> >>>> info: Creating camera cameraB
>> >>>> info: Creating pipeline withconfig: GSTVideoPipelineconfig: name=
>> >>>> cameraB
>> >>>>
>> uri=file:///home/jvazquez/ROBOTICS/Documents/2009.05.21-TalkCompilingAndDebugging_makefile.avi
>> width=320 height=240 bpp=0
>> >>>> framerate=15/1
>> >>>> format=0x9ab0268
>> >>>> info: ComponentinfrastructurechangedstatetoInitialising.
>> >>>> info: ComponentinfrastructurechangedstatetoWorking.
>> >>>> Activatingadapter...
>> >>>> Adapteractivated
>> >>>> info: Componentinfrastructure: adapteractivated.
>> >>>> info: Componentinfrastructure: nothingleftto do, quitting
>> >>>> info: Pipeline caps: video/x-raw-rgb, bpp=(int)24, depth=(int)24,
>> >>>> width=(int)320, height=(int)240, framerate=(fraction)15/1
>> >>>> info: Starting pipeline
>> >>>> info: Starting thread for camera: cameraB
>> >>>>
>> >>>> Obtengo un fallo "SegmentationFault" al lanzar "cameraview" con el
>> >>>> siguiente fichero de configuración:
>> >>>>
>> >>>>
>> >>>> Cameraview.Camera.Proxy=cameraB:tcp -h 127.0.0.1 -p 9999
>> >>>>
>> >>>> Linea de ejecución:
>> >>>>
>> >>>>
>> >>>> jvazquez en ubuntu:/jderobot5.0/bin$ ./cameraview
>> >>>> --Ice.Config=/tmp/cameraview.cfg
>> >>>> Segmentationfault
>> >>>> jvazquez en ubuntu:/jderobot5.0/bin$
>> >>>>
>> >>>> Al intentar depurarlo con gdb, da un falloo en la librería
>> >>>> /usr/lib/libcxcore.so.1
>> >>>>
>> >>>>
>> >>>> jvazquez en ubuntu:/jderobot5.0/bin$ gdb --args ./cameraview
>> >>>> --Ice.Config=/tmp/cameraview.cfg
>> >>>> GNU gdb (GDB)  7.0-ubuntu
>> >>>> Copyright (C) 2009 Free Software Foundation, Inc.
>> >>>> LicenseGPLv3+: GNU GPLversion 3 orlater <
>> http://gnu.org/licenses/gpl.html>
>> >>>> Thisisfree software: you are freetochangeandredistributeit.
>> >>>> Thereis NO WARRANTY, totheextentpermittedbylaw.  Type "showcopying"
>> >>>> and "showwarranty" fordetails.
>> >>>> ThisGDBwasconfigured as "i486-linux-gnu".
>> >>>> Forbugreportinginstructions, pleasesee:
>> >>>> <http://www.gnu.org/software/gdb/bugs/>...
>> >>>> Readingsymbolsfrom /jderobot5.0/bin/cameraview...done.
>> >>>> (gdb) start
>> >>>> Temporarybreakpoint 1 at 0x804bb69: file cameraview.cpp, line 30.
>> >>>> Startingprogram: /jderobot5.0/bin/cameraview
>> >>>> --Ice.Config=/tmp/cameraview.cfg
>> >>>> [Thread debuggingusinglibthread_dbenabled]
>> >>>>
>> >>>> ProgramreceivedsignalSIGSEGV, Segmentationfault.
>> >>>> 0x074062ce in ?? () from /usr/lib/libcxcore.so.1
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >> ________________________________
>> >> De: David Lobato <dav.lobato en gmail.com>
>> >>>> Para: Francisco Rivas <fm.rivas en alumnos.urjc.es>
>> >>>> CC: Javier Vazquez <javiervazper en yahoo.es>; jde developers
>> >>>> <jde-developers en gsyc.es>
>> >>>> Enviado: dom,7 marzo, 2010 08:27
>> >>>> Asunto: Re: [Jde-dev] Compilación "cameraserver"
>> >>>>
>> >>>>
>> >>>>
>> >>>> Hola,
>> >>>>
>> >>>>
>> >>>> Lo primero indicarte que compilar cameraserver sin el configure es
>> >>>> complicado... yo  no iría por ahí. Ten en cuenta que depende de
>> >>>> varías librerías como jderobotice, colorspaces,... El configure es
>> >>>> la manera mas fácil de compilarlo sin ninguna duda.
>> >>>>
>> >>>>
>> >>>>
>> >>>> El problema es que el enlazador en tiempo de ejecución no
>> >>>> encuentra las librerías con las que hemos enlazado nuestro
>> >>>> programa, en este caso cameraserver con gearbox.
>> >>>>
>> >>>>
>> >>>> Como indica Francisco declarando LD_LIBRARY_PATH solucionamos el
>> >>>> problema, ya que le estamos indicando a nuestro enlazador un path
>> >>>> mas donde buscar librerías. Esta es una solucion cuando no tenemos
>> >>>> acceso al root de la máquina, pudiendo declarar dicha variable en
>> >>>> el fichero de configuración de nuestro shell (.bashrc, .profile,
>> >>>> ...).
>> >>>>
>> >>>>
>> >>>> La otra es, si tenemos acceso al root de la máquina, añadir una
>> >>>> entrada a la configuración del enlazador, que se encuentra en
>> >>>> /etc/ld.conf.so (fichero) /etc/ld.conf.so.d/ (directorio).
>> >>>>
>> >>>>
>> >>>> En debian/ubuntu basta que añadamos nuestro fichero de
>> >>>> configuración para la librería en concreto, por ejemplo
>> >>>> gearbox.conf que contenga:
>> >>>>
>> >>>>
>> >>>> /usr/local/lib
>> >>>>
>> >>>>
>> >>>>
>> >>>> vamos, el path donde buscar. Con esto habilitamos a nivel del
>> >>>> sistema el uso de gearbox, sin la necesidad de declarar la
>> >>>> variable LD_LIBRARY_PATH.
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>> Espero que haya aclarado un poco el asunto.
>> >>>> David.
>> >>>>
>> >>>>
>> >>>> 2010/3/7 Francisco Rivas <fm.rivas en alumnos.urjc.es>
>> >>>>
>> >>>> Buenas,
>> >>>>> a mi me paso lo mismo y es que no es capaz de resolver las
>> referencias
>> >>>>> con la librería de GearBox.
>> >>>>> Para "arreglar" esto hay que añadir a la variable LD_LIBRARY_PATH el
>> >>>>> path de GearBox que si no lo has cambiado en el cmake al instalarla
>> es:
>> >>>>> /usr/local/lib/gearbox:
>> >>>>>
>> >>>>> Pureba a ejecutar:
>> >>>>> exportLD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/gearbox/
>> >>>>>
>> >>>>> y luego otra vez el make.
>> >>>>>
>> >>>>> Suerte.
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> "Javier Vazquez" <javiervazper en yahoo.es> ha escrito:
>> >>>>>
>> >>>>>
>> >>>>>> Gracias David,
>> >>>>>>
>> >>>>>> la verdad es que estaba tratando de generarme un Makefile a mano
>> >>>>>> para compilar solo "cameraserver" y sin usar la parte del configure.
>> >>>>>>
>> >>>>>> He instalado OpenCV 2.0 siguiendo las instrucciones de [1] y ha
>> >>>>>> ido bien.
>> >>>>>>
>> >>>>>> Después he preferido continuar compilando el proyecto entero. Como
>> >>>>>> soy nuevo en esto, buscando en algunos manuales, he visto que los
>> >>>>>> pasos son los siguientes:
>> >>>>>>
>> >>>>>>
>> >>>>>>       1. Posicionarse en directorio del proyecto.
>> >>>>>>       2. Ejecutar "aclocal"
>> >>>>>>       3. Ejecutar "autoconf"
>> >>>>>>       4. Ejecutar "autoheader"
>> >>>>>>
>> >>>>>>       5. Ejecutar "automake -a":
>> >>>>>>       1. Me ha dado el fallo de que no podía instalar "ltmain.h". He
>> >>>>>
>> >>>>>> verificado que "libtool" está instalado y que este fichero existe
>> >>>>>> bajo /usr/share/libtool/config/ltmain.sh. Lo he enlazado a mano,
>> >>>>>> bajo el subdirectorio config, justo a config.guess, etc.., ya que no
>> >>>>>> sabía la forma de lograr que "automake" se diera cuenta.
>> >>>>>>       2. Al volver a lanzarlo, ha creado el Makefile.in
>> >>>>>>       6. Ejecutar "./configure"
>> >>>>>>       1. Me ha identificado varias cosas que faltaban y que he
>> agregado:
>> >>>>>
>> >>>>>> gtkmm 2.4 y libglade 2.4. También daba otro error diciendo que no
>> >>>>>> encontraba "mysql++/mysql++.h" al tener habilitado el componente
>> >>>>>> "recordingserver".
>> >>>>>>
>> >>>>>>       2. Después de instalar gtkmm y libglade 2.4, he ejecutado
>> >>>>>
>> >>>>>> "./configure" con la opción "--disable-component-recordingserver" y
>> >>>>>> ha pasado.
>> >>>>>>
>> >>>>>>       7. Al ejecutar el make, después de muchos pasos, me reporta un
>> >>>>>
>> >>>>>> error justo al procesar "cameraserver":····
>> >>>>>> /bin/bash ../../../libtool --tag=CXX   --mode=link g++  -g -O2
>> >>>>>> -pthread -lgstapp-0.10 -lgstbase-0.10 -lgstreamer-0.10 -lgobject-2.0
>> >>>>>> -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0    -o
>> >>>>>> cameraservercameraserver-cameraserver.o cameraserver-gstpipeline.o
>> >>>>>> ../../../src/libs/jderobotice/libJderobotIce.la
>> >>>>>> ../../../src/libs/jderobotutil/libJderobotUtil.la
>> >>>>>> ../../../src/libs/colorspaces/libcolorspacesmm.la
>> >>>>>> ../../../src/interfaces/cpp/jderobot/libJderobotInterfaces.la -lm
>> >>>>>> libtool: link: g++ -g -O2 -pthread -o .libs/cameraserver
>> >>>>>> cameraserver-cameraserver.o cameraserver-gstpipeline.o
>> >>>>>> -lgstapp-0.10 /usr/lib/libgstbase-0.10.so
>> >>>>>> /usr/lib/libgstreamer-0.10.so /usr/lib/libgobject-2.0.so
>> >>>>>> /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so -lrt
>> >>>>>> /usr/lib/libxml2.so /usr/lib/libglib-2.0.so
>> >>>>>> ../../../src/libs/jderobotice/.libs/libJderobotIce.so
>> >>>>>> ../../../src/libs/jderobotutil/.libs/libJderobotUtil.so
>> >>>>>> ../../../src/libs/colorspaces/.libs/libcolorspacesmm.so
>> >>>>>> ../../../src/interfaces/cpp/jderobot/.libs/libJderobotInterfaces.so
>> >>>>>> -lm -pthread -Wl,-rpath -Wl,/usr/local/lib/jderobot
>> >>>>>> /usr/bin/ld: warning: libGbxUtilAcfr.so.1.0.0, neededby
>> >>>>>> ../../../src/libs/jderobotice/.libs/libJderobotIce.so, notfound
>> >>>>>> (tryusing -rpathor -rpath-link)
>> >>>>>> /usr/bin/ld: warning: libGbxIceUtilAcfr.so.1.0.0, neededby
>> >>>>>> ../../../src/libs/jderobotice/.libs/libJderobotIce.so, notfound
>> >>>>>> (tryusing -rpathor -rpath-link)
>> >>>>>> cameraserver-cameraserver.o: Infunction `~ConfigFileException':
>> >>>>>>
>> /home/jvazquez/workspace/jderobot_5.0_III/src/libs/jderobotice/exceptions.h:29:
>> >>>>>> undefinedreferenceto
>> >>>>>> `gbxutilacfr::Exception::~Exception()'
>> >>>>>>
>> /home/jvazquez/workspace/jderobot_5.0_III/src/libs/jderobotice/exceptions.h:29:
>> >>>>>> undefinedreferenceto
>> >>>>>> `gbxutilacfr::Exception::~Exception()'
>> >>>>>> cameraserver-cameraserver.o: Infunction `~Thread':
>> >>>>>> /usr/local/include/gearbox/gbxsickacfr/gbxiceutilacfr/thread.h:73:
>> >>>>>> undefinedreferenceto `vtableforgbxiceutilacfr::Thread'
>> >>>>>> /usr/local/include/gearbox/gbxsickacfr/gbxiceutilacfr/thread.h:73:
>> >>>>>> undefinedreferenceto `vtableforgbxiceutilacfr::Thread'
>> >>>>>> /usr/local/include/gearbox/gbxsickacfr/gbxiceutilacfr/thread.h:73:
>> >>>>>> undefinedreferenceto `VTTforgbxiceutilacfr::Thread'
>> >>>>>> /usr/local/include/gearbox/gbxsickacfr/gbxiceutilacfr/thread.h:73:
>> >>>>>> undefinedreferenceto `vtableforgbxiceutilacfr::Thread'
>> >>>>>> ····
>> >>>>>>
>> >>>>>> El fichero de cabecera está instalado en
>> >>>>>> "/usr/local/include/gearbox/gbxutilacfr/exceptions.h" ¿?
>> >>>>>>
>> >>>>>> ¿Alguna idea?
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>> ________________________________
>> >>>>>> De: David Lobato <dav.lobato en gmail.com>
>> >>>>>> Para: Javier Vazquez <javiervazper en yahoo.es>
>> >>>>>> CC: jde developers <jde-developers en gsyc.es>
>> >>>>>> Enviado: sáb,6 marzo, 2010 11:03
>> >>>>>> Asunto: Re: Compilación "cameraserver"
>> >>>>>>
>> >>>>>> Si es esto comentame y ponemos un ticket en el trac para revisar el
>> >>>>>> configure y que te avise si no tienes la versión 2.0 de opencv
>> >>>>>>
>> >>>>>>
>> >>>>>> 2010/3/6 David Lobato <dav.lobato en gmail.com>
>> >>>>>>
>> >>>>>> El error que te da es que no tienes la versión 2.0 de opencv (no se
>> >>>>>> porque el configure no ha avisado...) y por eso no encuentra el
>> >>>>>> namespacecv donde está todo el API C++ de opencv.
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> David.
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> 2010/3/6 Javier Vazquez <javiervazper en yahoo.es>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>>>
>> >>>>>>>> Disculpa, no me he dado cuenta de que es otra interface ICE. Ya he
>> >>>>>>>> traducido a C/C++ el fichero jcm.ice.
>> >>>>>>>>
>> >>>>>>>> Parece que solo me queda solucionar el fallo siguiente en
>> imagecv.h:
>> >>>>>>>>>>
>> >>>>>>>>
>> >>>>>>>> jvazquez en ubuntu
>> :~/workspace/jderobot_5.0/src/components/cameraserver$
>> >>>>>>>> make
>> >>>>>>>> c++ -g  -I.
>> >>>>>>>> -I/home/jvazquez/workspace/jderobot_5.0/src/interfaces/slice/
>> >>>>>>>> -I/usr/include/opencv/
>> >>>>>>>>
>> -I/home/jvazquez/workspace/jderobot_5.0/src/interfaces/slice/jderobot/
>> >>>>>>>> -I/home/jvazquez/workspace/jderobot_5.0/src/libs
>> >>>>>>>> -I/usr/include/libxml2/ -I/usr/include/gstreamer-0.10/
>> >>>>>>>> -I/usr/include/gstreamer-0.10/ -I/usr/include/glib-2.0/
>> >>>>>>>> -I/usr/lib/glib-2.0/include/ -I/usr/local/include/gearbox -lforms
>> >>>>>>>> -lX11 -lpioneer -lm -lpthread -lXpm -ldl -fPIC -c gstpipeline.cpp
>> >>>>>>>>
>> >>>>>>>> In file includedfrom
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/colorspaces/colorspacesmm.h:25,
>> >>>>>>>>                 fromgstpipeline.h:11,
>> >>>>>>>>                 fromgstpipeline.cpp:1:
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/colorspaces/imagecv.h:36:
>> >>>>>>>> error: ?cv? has notbeendeclared
>> >>>>>>>>>>
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/colorspaces/imagecv.h:36:
>> >>>>>>>> error: expected ?{? before ?Mat?
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/colorspaces/imagecv.h:36:
>> >>>>>>>> error: invalidtypeindeclarationbefore ?{? token
>> >>>>>>>>>>
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/colorspaces/imagecv.h:36:
>> >>>>>>>> warning: extended initializerlistsonlyavailablewith -std=c++0x
>> >>>>>>>> or -std=gnu++0x
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/colorspaces/imagecv.h:37:
>> >>>>>>>> error: expectedprimary-expressionbefore ?public?
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/colorspaces/imagecv.h:37:
>> >>>>>>>> error: expected ?}? before ?public?
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/colorspaces/imagecv.h:37:
>> >>>>>>>> error: expected ?,? or ?;? before ?public?
>> >>>>>>>>>>
>> >>>>>>>> gstpipeline.cpp:257: error: expected ?}? atendofinput
>> >>>>>>>> make: *** [gstpipeline.o] Error 1
>> >>>>>>>>
>> >>>>>>>> A ver si doy con las últimas librerías que me faltan ...
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>> ________________________________
>> >>>>>> De: Javier Vazquez <javiervazper en yahoo.es>
>> >>>>>>>> Para: David Lobato <dav.lobato en gmail.com>
>> >>>>>>>>
>> >>>>>>>> CC: jde developers
>> >>>>>>>> <jde-developers en gsyc.es>
>> >>>>>>>> Enviado: sáb,6 marzo, 2010 09:31
>> >>>>>>>> Asunto: Re: Compilación "cameraserver"
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> Gracias David,
>> >>>>>>>>
>> >>>>>>>> ya he pasado de ese punto, instalados los paquetes de desarrollo
>> >>>>>>>> de gstreamer más instalado gearbox. Estoy ajustando el Makefile y
>> >>>>>>>> me aparece una referencia a un fichero cabecera de JDErobot que
>> >>>>>>>> creo que no está subido al repositorio: El el "jcm.h" ¿Te suena si
>> >>>>>>>> hay que subirlo?
>> >>>>>>>>
>> >>>>>>>> jvazquez en ubuntu
>> :~/workspace/jderobot_5.0/src/components/cameraserver$
>> >>>>>>>> make
>> >>>>>>>> 2>&1 | teelog
>> >>>>>>>> c++ -g  -I.
>> >>>>>>>>
>> -I/home/jvazquez/workspace/jderobot_5.0/src/interfaces/slice/jderobot/
>> >>>>>>>> -I/home/jvazquez/workspace/jderobot_5.0/src/libs
>> >>>>>>>> -I/usr/include/libxml2/ -I/usr/include/gstreamer-0.10/
>> >>>>>>>> -I/usr/include/gstreamer-0.10/ -I/usr/include/glib-2.0/
>> >>>>>>>> -I/usr/lib/glib-2.0/include/ -I/usr/local/include/gearbox -lforms
>> >>>>>>>> -lX11 -lpioneer -lm -lpthread -lXpm -ldl -fPIC -c gstpipeline.cpp
>> >>>>>>>> In file included
>> >>>>>>>> from
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/jderobotice/component.h:20,
>> >>>>>>>>                 fromgstpipeline.h:9,
>> >>>>>>>>                 fromgstpipeline.cpp:1:
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/jderobotice/context.h:28:26:
>> error: jderobot/jcm.h: No such file ordirectory==>> ¿sería en
>> >>>>>>>> la
>> >>>>>>>> carpeta
>> >>>>>>>> jderobotutil?
>> >>>>>>>>>>
>> >>>>>>>> In file includedfrom
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/jderobotice/component.h:20,
>> >>>>>>>>                 fromgstpipeline.h:9,
>> >>>>>>>>                 from
>> >>>>>>>> gstpipeline.cpp:1:
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/jderobotice/context.h:84:
>> >>>>>>>> error: ?jderobot? has notbeendeclared
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/jderobotice/context.h:84:
>> >>>>>>>> error: ISO C++ forbidsdeclarationof ?FQComponentName? with no type
>> >>>>>>>>>>
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/jderobotice/context.h:84:
>> >>>>>>>> error: expected ?;? before ?&? token
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/jderobotice/context.h:241:
>> >>>>>>>> error: ISO C++ forbidsdeclarationof ?jderobot? with no type
>> >>>>>>>>>>
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/jderobotice/context.h:241:
>> >>>>>>>> error: expected ?,? or ?...? before ?::? token
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/jderobotice/context.h:249:
>> >>>>>>>> error: ?jderobot? has notbeendeclared
>> >>>>>>>>>>
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/jderobotice/context.h:249:
>> >>>>>>>> error: ISO C++ forbidsdeclarationof ?FQComponentName? with no
>> >>>>>>>> type
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/jderobotice/context.h:249:
>> >>>>>>>> error: expected ?;? before ?name_?
>> >>>>>>>> In file includedfromgstpipeline.h:9,
>> >>>>>>>>                 fromgstpipeline.cpp:1:
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/jderobotice/component.h:165:
>> error: ISO C++ forbidsdeclarationof ?jderobot?
>> >>>>>>>> with
>> >>>>>>>> no
>> >>>>>>>> type
>> >>>>>>>>>>
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/jderobotice/component.h:165:
>> error: expected ?,? or ?...?
>> >>>>>>>> before
>> >>>>>>>> ?::?
>> >>>>>>>> token
>> >>>>>>>> In file includedfrom
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/colorspaces/colorspacesmm.h:25,
>> >>>>>>>>>>
>> >>>>>>>>                 fromgstpipeline.h:11,
>> >>>>>>>>                 from
>> >>>>>>>> gstpipeline.cpp:1:
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/colorspaces/imagecv.h:36:
>> >>>>>>>> error: ?cv? has notbeendeclared
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/colorspaces/imagecv.h:36:
>> >>>>>>>> error: expected ?{? before ?Mat?
>> >>>>>>>>>>
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/colorspaces/imagecv.h:36:
>> >>>>>>>> error: invalidtypeindeclarationbefore ?{? token
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/colorspaces/imagecv.h:36:
>> >>>>>>>> warning: extended initializerlistsonlyavailablewith -std=c++0x
>> >>>>>>>> or -std=gnu++0x
>> >>>>>>>>>>
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/colorspaces/imagecv.h:37:
>> >>>>>>>> error: expectedprimary-expressionbefore ?public?
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/colorspaces/imagecv.h:37:
>> >>>>>>>> error: expected ?}? before ?public?
>> >>>>>>>>>>
>> >>>>>>>>
>> /home/jvazquez/workspace/jderobot_5.0/src/libs/colorspaces/imagecv.h:37:
>> >>>>>>>> error: expected ?,? or ?;? before ?public?
>> >>>>>>>> gstpipeline.cpp:257: error: expected
>> >>>>>>>> ?}? atendofinput
>> >>>>>>>> make: *** [gstpipeline.o] Error 1
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>>>
>> >>>>>> ________________________________
>> >>>>>> De: David Lobato <dav.lobato en gmail.com>
>> >>>>>>>> Para: Javier Vazquez <javiervazper en yahoo.es>
>> >>>>>>>> CC: jde developers <jde-developers en gsyc.es>
>> >>>>>>>> Enviado: vie,5 marzo, 2010 12:39
>> >>>>>>>> Asunto: Re: Compilación "cameraserver"
>> >>>>>>>>
>> >>>>>>>> Las 2 primeras cabeceras son de gstreamer, concretamente vienen en
>> >>>>>>>> los paquetes libgstreamer0.10-dev y
>> >>>>>>>> libgstreamer-plugins-base0.10-dev respectivamente.
>> >>>>>>>>>>
>> >>>>>>>>
>> >>>>>>>> La última es de
>> >>>>>>>> gearbox, que de momento no está paquetizado para debian. Puedes
>> >>>>>>>> encontrar las fuentes aquí [1].
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> David.
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> [1] http://gearbox.sourceforge.net/
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>>>
>> >>>>>>>> 2010/3/5 Javier Vazquez <javiervazper en yahoo.es>
>> >>>>>>>>
>> >>>>>>>> Hola David,
>> >>>>>>>>>
>> >>>>>>>>> estoy tratando de compilar el código del componente
>> >>>>>>>>> "cameraserver" que hay en el repositorio de la 5.0. Veo en la
>> >>>>>>>>> parte de los includes algunas cabeceras que no tengo instaladas:
>> >>>>>>>>>
>> >>>>>>>>> gstpipeline.h:6:21: error: gst/gst.h: No such file ordirectory
>> >>>>>>>>> gstpipeline.h:7:32: error: gst/app/gstappsink.h: No such file
>> >>>>>>>>> ordirectory
>> >>>>>>>>> gstpipeline.h:8:51: error:
>> >>>>>>>>> gbxsickacfr/gbxiceutilacfr/safethread.h: No such file ordirectory
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>> He probado con varios paquetes de "gstreamer" pero no lo
>> >>>>>>>>> encuentro. ¿Sabes que paquetes son necesarios para resolver las
>> >>>>>>>>> dependencias de las tres cabeceras anteriores?
>> >>>>>>>>>
>> >>>>>>>>> Gracias de antemano,
>> >>>>>>>>> Javier.
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> ----------------------------
>> >>>>> Francisco Miguel Rivas Montero
>> >>>>> http://jde.gsyc.es/index.php/Frivas-pfc-itis
>> >>>>> _______________________________________________
>> >>>>> Jde-developers mailinglist
>> >>>>> Jde-developers en gsyc.es
>> >>>>> http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers
>> >>>>>
>> >>>>
>> >>>>
>> >>>
>> >>>
>> >>>
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>> >
>> > ----------------------------
>> > Francisco Miguel Rivas Montero
>> > http://jde.gsyc.es/index.php/Frivas-pfc-itis
>> > _______________________________________________
>> > Jde-developers mailing list
>> > Jde-developers en gsyc.es
>> > http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers
>> >
>>
>>
>>
>> ----------------------------
>> Francisco Miguel Rivas Montero
>> http://jde.gsyc.es/index.php/Frivas-pfc-itis
>> _______________________________________________
>> Jde-developers mailing list
>> Jde-developers en gsyc.es
>> http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers
>>
>



----------------------------
Francisco Miguel Rivas Montero
http://jde.gsyc.es/index.php/Frivas-pfc-itis


More information about the Jde-developers mailing list