<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">&lt;<a href="mailto:josemaria.plaza@gmail.com" target="_blank">josemaria.plaza@gmail.com</a>&gt;</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 &#39;undefined reference&#39;. 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>
&gt; Buenas Mikel.<br>
&gt;<br>
&gt;<br>
&gt; Están las dos versiones en 4.4 como indica la siguiente traza.<br>
&gt;<br>
&gt; -------------------------------------------------------------------------<br>
&gt; arck@arck-PCn:~$ gcc --version<br>
&gt; gcc (Ubuntu/Linaro 4.4.7-1ubuntu2) 4.4.7<br>
&gt; Copyright (C) 2010 Free Software Foundation, Inc.<br>
&gt; This is free software; see the source for copying conditions.  There<br>
&gt; is NO<br>
&gt; warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR<br>
&gt; PURPOSE.<br>
&gt;<br>
&gt;<br>
&gt; arck@arck-PCn:~$ g++ --version<br>
&gt; g++ (Ubuntu/Linaro 4.4.7-1ubuntu2) 4.4.7<br>
&gt; Copyright (C) 2010 Free Software Foundation, Inc.<br>
&gt; This is free software; see the source for copying conditions.  There<br>
&gt; is NO<br>
&gt; warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR<br>
</div>&gt; PURPOSE.b<br>
<div class="HOEnZb"><div class="h5">&gt;<br>
&gt;<br>
&gt; arck@arck-PCn:~$<br>
&gt; -------------------------------------------------------------------------<br>
&gt;<br>
&gt; 2013/3/11 Mikel González &lt;<a href="mailto:m.gonzalezbai@gmail.com">m.gonzalezbai@gmail.com</a>&gt;<br>
&gt;         Buenas Jesús,<br>
&gt;<br>
&gt;         ¿qué versión de gcc y g++ utilizas? Tienes que utilizar la<br>
&gt;         versión 4.4, para ello tienes que hacer:<br>
&gt;<br>
&gt;         sudo apt-get install gcc-4.4<br>
&gt;         sudo apt-get install g++-4.4<br>
&gt;         sudo cd /usr/bin<br>
&gt;         sudo rm gcc<br>
&gt;         sudo rm g++<br>
&gt;         sudo ln -s gcc-4.4 gcc<br>
&gt;         sudo ln -s g++-4.4 g++<br>
&gt;<br>
&gt;         Tras esto, prueba a compilar otra vez, recuerda eliminar todo<br>
&gt;         el rastro que cachea CMake antes de lanzar el &quot;cmake .&quot;,<br>
&gt;         elimina los ficheros CMakeCache.txt.<br>
&gt;<br>
&gt;         Un saludo.<br>
&gt;<br>
&gt;         Mikel.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         El 11/03/2013 14:29, jesus checa rodriguez escribió:<br>
&gt;<br>
&gt;         &gt; buenos dias.<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; estoy intentando compilar introrob para despues empezar a<br>
&gt;         &gt; modificarlo, el problema es que al ejecutar el cmake me dice<br>
&gt;         &gt; que tiene todo correcto como se puede ver en la traza<br>
&gt;         &gt; siguientes y posteriormente, ejecuto el make y me da<br>
&gt;         &gt; &quot;undefined reference&quot;, si alguien puede explicarme que<br>
&gt;         &gt; sucede se lo agradeceria,<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; lo que no entiendo es que introrob lo tengo instalado desde<br>
&gt;         &gt; el paquete jderobot-introrob y funciona perfecto.<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; gracias.<br>
&gt;         &gt; ------------------------------------------------------------------<br>
&gt;         &gt; arck@arck-PCn:~/introrob/build$ cmake ..<br>
&gt;         &gt; -- The C compiler identification is GNU<br>
&gt;         &gt; -- The CXX compiler identification is GNU<br>
&gt;         &gt; -- Check for working C compiler: /usr/bin/gcc<br>
&gt;         &gt; -- Check for working C compiler: /usr/bin/gcc -- works<br>
&gt;         &gt; -- Detecting C compiler ABI info<br>
&gt;         &gt; -- Detecting C compiler ABI info - done<br>
&gt;         &gt; -- Check for working CXX compiler: /usr/bin/c++<br>
&gt;         &gt; -- Check for working CXX compiler: /usr/bin/c++ -- works<br>
&gt;         &gt; -- Detecting CXX compiler ABI info<br>
&gt;         &gt; -- Detecting CXX compiler ABI info - done<br>
&gt;         &gt; -- checking for module &#39;gtkmm-2.4&#39;<br>
&gt;         &gt; --   found gtkmm-2.4, version 2.24.2<br>
&gt;         &gt; -- checking for module &#39;gthread-2.0&#39;<br>
&gt;         &gt; --   found gthread-2.0, version 2.32.3<br>
&gt;         &gt; -- checking for module &#39;libglademm-2.4&#39;<br>
&gt;         &gt; --   found libglademm-2.4, version 2.6.7<br>
&gt;         &gt; -- checking for module &#39;libgnomecanvas-2.0&#39;<br>
&gt;         &gt; --   found libgnomecanvas-2.0, version 2.30.3<br>
&gt;         &gt; -- checking for module &#39;libgnomecanvasmm-2.6&#39;<br>
&gt;         &gt; --   found libgnomecanvasmm-2.6, version 2.26.0<br>
&gt;         &gt; -- checking for module &#39;gtkglextmm-1.2&#39;<br>
&gt;         &gt; --   found gtkglextmm-1.2, version 1.2.0<br>
&gt;         &gt; -- checking for module &#39;gsl&#39;<br>
&gt;         &gt; --   found gsl, version 1.15<br>
&gt;         &gt; -- Configuring done<br>
&gt;         &gt; -- Generating done<br>
&gt;         &gt; -- Build files have been written<br>
&gt;         &gt; to: /home/arck/introrob/build<br>
&gt;         &gt; arck@arck-PCn:~/introrob/build$ make<br>
&gt;         &gt; Scanning dependencies of target introrob<br>
&gt;         &gt; [ 12%] Building CXX object CMakeFiles/introrob.dir/API.cpp.o<br>
&gt;         &gt; [ 25%] Building CXX object<br>
&gt;         &gt; CMakeFiles/introrob.dir/control.cpp.o<br>
&gt;         &gt; [ 37%] Building CXX object<br>
&gt;         &gt; CMakeFiles/introrob.dir/drawarea.cpp.o<br>
&gt;         &gt; [ 50%] Building CXX object CMakeFiles/introrob.dir/gui.cpp.o<br>
&gt;         &gt; [ 62%] Building CXX object<br>
&gt;         &gt; CMakeFiles/introrob.dir/introrob.cpp.o<br>
&gt;         &gt; [ 75%] Building CXX object<br>
&gt;         &gt; CMakeFiles/introrob.dir/MyAlgorithms.cpp.o<br>
&gt;         &gt; [ 87%] Building C object CMakeFiles/introrob.dir/pioneer.c.o<br>
&gt;         &gt; [100%] Building C object<br>
&gt;         &gt; CMakeFiles/introrob.dir/pioneeropengl.c.o<br>
&gt;         &gt; Linking CXX executable introrob<br>
&gt;         &gt; /usr/local/lib/jderobot/libjderobotice.so: undefined<br>
&gt;         &gt; reference to `VTT for IceGrid::CommunicatorDescriptor&#39;<br>
&gt;         &gt; /usr/local/lib/jderobot/libjderobotice.so: undefined<br>
&gt;         &gt; reference to<br>
&gt;         &gt; `IceGrid::ApplicationNotExistException::~ApplicationNotExistException()&#39;<br>
&gt;         &gt; /usr/local/lib/jderobot/libjderobotice.so: undefined<br>
&gt;         &gt; reference to `vtable for IceGrid::CommunicatorDescriptor&#39;<br>
&gt;         &gt; /usr/local/lib/jderobot/libjderobotice.so: undefined<br>
&gt;         &gt; reference to<br>
&gt;         &gt; `Glacier2::CannotCreateSessionException::~CannotCreateSessionException()&#39;<br>
&gt;         &gt; /usr/local/lib/jderobot/libjderobotice.so: undefined<br>
&gt;         &gt; reference to `vtable for<br>
&gt;         &gt; IceGrid::ApplicationNotExistException&#39;<br>
&gt;         &gt; /usr/local/lib/jderobot/libjderobotice.so: undefined<br>
&gt;         &gt; reference to `vtable for<br>
&gt;         &gt; Glacier2::CannotCreateSessionException&#39;<br>
&gt;         &gt; collect2: ld returned 1 exit status<br>
&gt;         &gt; make[2]: *** [introrob] Error 1<br>
&gt;         &gt; make[1]: *** [CMakeFiles/introrob.dir/all] Error 2<br>
&gt;         &gt; make: *** [all] Error 2<br>
&gt;         &gt; arck@arck-PCn:~/introrob/build$<br>
&gt;         &gt; ------------------------------------------------------------------<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; _______________________________________________<br>
&gt;         &gt; Jde-developers mailing list<br>
&gt;         &gt; <a href="mailto:Jde-developers@gsyc.es">Jde-developers@gsyc.es</a><br>
&gt;         &gt; <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>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         _______________________________________________<br>
&gt;         Jde-developers mailing list<br>
&gt;         <a href="mailto:Jde-developers@gsyc.es">Jde-developers@gsyc.es</a><br>
&gt;         <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>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Jde-developers mailing list<br>
&gt; <a href="mailto:Jde-developers@gsyc.es">Jde-developers@gsyc.es</a><br>
&gt; <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>