<div>buenos días.</div><div><br></div><div>siguiendo lo que Jose Maria me ha indicado, tengo que buscar las librerias de Ice e incrustarlas en el CMAKELISTS, el problema es que cuando busco la librería Ice me salen varios resultados 16 para ser mas específicos entre ellos una libIce.so y una libIceE.so, entiendo que es alguna de estas dos,¿cual de las dos seria?</div>
<div><br></div><div>gracias<br><div><br></div><div><div><br><div class="gmail_quote">El 13 de marzo de 2013 13:57, JoseMaria <span dir="ltr"><<a href="mailto:josemaria.plaza@gmail.com" target="_blank">josemaria.plaza@gmail.com</a>></span> escribió:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jesús,<br>
<br>
tiene pinta de fallo de enlazado, que nos estás enlazando bien con los<br>
símbolos de las bibliotecas de ICE (no libjderobotice, sino las de ice<br>
propiamente dichas). Esos símbolos de los que se queja la traza están en<br>
esas bibliotecas de ice y son referenciados por nuestro libjderobotice.<br>
Y no los está encontrando, de ahí el 'undefined reference'. Localiza en<br>
tu sistema dónde están las bibliotecas de ice e indícale en el cmakelist<br>
que enlace con ellas y dónde están.<br>
<br>
Echa un ojo a [1] donde se explica bien en qué consiste la compilación,<br>
el enlazado, la dependencia de cabeceras o la dependencia de<br>
bibliotecas. Para enlazado dinámico, que es un pelín diferente<br>
(LD_LIBRARY_PATH, etc.) tienes más información en la web.<br>
<br>
Ánimo,<br>
<br>
JoseMaria<br>
[1]<br>
<a href="http://www.nebrija.es/~abustind/Informatica/MetodologiaI/Practicas/Compilacion.pdf" target="_blank">http://www.nebrija.es/~abustind/Informatica/MetodologiaI/Practicas/Compilacion.pdf</a><br>
<div class="im"><br>
On Mon, 2013-03-11 at 14:46 +0100, jesus checa rodriguez wrote:<br>
> Buenas Mikel.<br>
><br>
><br>
> Están las dos versiones en 4.4 como indica la siguiente traza.<br>
><br>
> -------------------------------------------------------------------------<br>
> arck@arck-PCn:~$ gcc --version<br>
> gcc (Ubuntu/Linaro 4.4.7-1ubuntu2) 4.4.7<br>
> Copyright (C) 2010 Free Software Foundation, Inc.<br>
> This is free software; see the source for copying conditions. There<br>
> is NO<br>
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR<br>
> PURPOSE.<br>
><br>
><br>
> arck@arck-PCn:~$ g++ --version<br>
> g++ (Ubuntu/Linaro 4.4.7-1ubuntu2) 4.4.7<br>
> Copyright (C) 2010 Free Software Foundation, Inc.<br>
> This is free software; see the source for copying conditions. There<br>
> is NO<br>
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR<br>
</div>> PURPOSE.b<br>
<div class="HOEnZb"><div class="h5">><br>
><br>
> arck@arck-PCn:~$<br>
> -------------------------------------------------------------------------<br>
><br>
> 2013/3/11 Mikel González <<a href="mailto:m.gonzalezbai@gmail.com">m.gonzalezbai@gmail.com</a>><br>
> Buenas Jesús,<br>
><br>
> ¿qué versión de gcc y g++ utilizas? Tienes que utilizar la<br>
> versión 4.4, para ello tienes que hacer:<br>
><br>
> sudo apt-get install gcc-4.4<br>
> sudo apt-get install g++-4.4<br>
> sudo cd /usr/bin<br>
> sudo rm gcc<br>
> sudo rm g++<br>
> sudo ln -s gcc-4.4 gcc<br>
> sudo ln -s g++-4.4 g++<br>
><br>
> Tras esto, prueba a compilar otra vez, recuerda eliminar todo<br>
> el rastro que cachea CMake antes de lanzar el "cmake .",<br>
> elimina los ficheros CMakeCache.txt.<br>
><br>
> Un saludo.<br>
><br>
> Mikel.<br>
><br>
><br>
><br>
> El 11/03/2013 14:29, jesus checa rodriguez escribió:<br>
><br>
> > buenos dias.<br>
> ><br>
> ><br>
> > estoy intentando compilar introrob para despues empezar a<br>
> > modificarlo, el problema es que al ejecutar el cmake me dice<br>
> > que tiene todo correcto como se puede ver en la traza<br>
> > siguientes y posteriormente, ejecuto el make y me da<br>
> > "undefined reference", si alguien puede explicarme que<br>
> > sucede se lo agradeceria,<br>
> ><br>
> ><br>
> > lo que no entiendo es que introrob lo tengo instalado desde<br>
> > el paquete jderobot-introrob y funciona perfecto.<br>
> ><br>
> ><br>
> > gracias.<br>
> > ------------------------------------------------------------------<br>
> > arck@arck-PCn:~/introrob/build$ cmake ..<br>
> > -- The C compiler identification is GNU<br>
> > -- The CXX compiler identification is GNU<br>
> > -- Check for working C compiler: /usr/bin/gcc<br>
> > -- Check for working C compiler: /usr/bin/gcc -- works<br>
> > -- Detecting C compiler ABI info<br>
> > -- Detecting C compiler ABI info - done<br>
> > -- Check for working CXX compiler: /usr/bin/c++<br>
> > -- Check for working CXX compiler: /usr/bin/c++ -- works<br>
> > -- Detecting CXX compiler ABI info<br>
> > -- Detecting CXX compiler ABI info - done<br>
> > -- checking for module 'gtkmm-2.4'<br>
> > -- found gtkmm-2.4, version 2.24.2<br>
> > -- checking for module 'gthread-2.0'<br>
> > -- found gthread-2.0, version 2.32.3<br>
> > -- checking for module 'libglademm-2.4'<br>
> > -- found libglademm-2.4, version 2.6.7<br>
> > -- checking for module 'libgnomecanvas-2.0'<br>
> > -- found libgnomecanvas-2.0, version 2.30.3<br>
> > -- checking for module 'libgnomecanvasmm-2.6'<br>
> > -- found libgnomecanvasmm-2.6, version 2.26.0<br>
> > -- checking for module 'gtkglextmm-1.2'<br>
> > -- found gtkglextmm-1.2, version 1.2.0<br>
> > -- checking for module 'gsl'<br>
> > -- found gsl, version 1.15<br>
> > -- Configuring done<br>
> > -- Generating done<br>
> > -- Build files have been written<br>
> > to: /home/arck/introrob/build<br>
> > arck@arck-PCn:~/introrob/build$ make<br>
> > Scanning dependencies of target introrob<br>
> > [ 12%] Building CXX object CMakeFiles/introrob.dir/API.cpp.o<br>
> > [ 25%] Building CXX object<br>
> > CMakeFiles/introrob.dir/control.cpp.o<br>
> > [ 37%] Building CXX object<br>
> > CMakeFiles/introrob.dir/drawarea.cpp.o<br>
> > [ 50%] Building CXX object CMakeFiles/introrob.dir/gui.cpp.o<br>
> > [ 62%] Building CXX object<br>
> > CMakeFiles/introrob.dir/introrob.cpp.o<br>
> > [ 75%] Building CXX object<br>
> > CMakeFiles/introrob.dir/MyAlgorithms.cpp.o<br>
> > [ 87%] Building C object CMakeFiles/introrob.dir/pioneer.c.o<br>
> > [100%] Building C object<br>
> > CMakeFiles/introrob.dir/pioneeropengl.c.o<br>
> > Linking CXX executable introrob<br>
> > /usr/local/lib/jderobot/libjderobotice.so: undefined<br>
> > reference to `VTT for IceGrid::CommunicatorDescriptor'<br>
> > /usr/local/lib/jderobot/libjderobotice.so: undefined<br>
> > reference to<br>
> > `IceGrid::ApplicationNotExistException::~ApplicationNotExistException()'<br>
> > /usr/local/lib/jderobot/libjderobotice.so: undefined<br>
> > reference to `vtable for IceGrid::CommunicatorDescriptor'<br>
> > /usr/local/lib/jderobot/libjderobotice.so: undefined<br>
> > reference to<br>
> > `Glacier2::CannotCreateSessionException::~CannotCreateSessionException()'<br>
> > /usr/local/lib/jderobot/libjderobotice.so: undefined<br>
> > reference to `vtable for<br>
> > IceGrid::ApplicationNotExistException'<br>
> > /usr/local/lib/jderobot/libjderobotice.so: undefined<br>
> > reference to `vtable for<br>
> > Glacier2::CannotCreateSessionException'<br>
> > collect2: ld returned 1 exit status<br>
> > make[2]: *** [introrob] Error 1<br>
> > make[1]: *** [CMakeFiles/introrob.dir/all] Error 2<br>
> > make: *** [all] Error 2<br>
> > arck@arck-PCn:~/introrob/build$<br>
> > ------------------------------------------------------------------<br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Jde-developers mailing list<br>
> > <a href="mailto:Jde-developers@gsyc.es">Jde-developers@gsyc.es</a><br>
> > <a href="http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers" target="_blank">http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Jde-developers mailing list<br>
> <a href="mailto:Jde-developers@gsyc.es">Jde-developers@gsyc.es</a><br>
> <a href="http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers" target="_blank">http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Jde-developers mailing list<br>
> <a href="mailto:Jde-developers@gsyc.es">Jde-developers@gsyc.es</a><br>
> <a href="http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers" target="_blank">http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers</a><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
<a href="http://gsyc.es/jmplaza" target="_blank">http://gsyc.es/jmplaza</a><br>
Universidad Rey Juan Carlos<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Jde-developers mailing list<br>
<a href="mailto:Jde-developers@gsyc.es">Jde-developers@gsyc.es</a><br>
<a href="http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers" target="_blank">http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers</a><br>
</div></div></blockquote></div><br></div></div></div>