Hola Marcelo,<div><br></div><div>estás en el paso de compilar los test de unidad de la librería conector. Lo que te falta es la librería gtest (<a href="http://code.google.com/p/googletest/">http://code.google.com/p/googletest/</a>).</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div>Podes instalarla, o deshabilitar la compilación de los test cases desde el archivo CMakelists.txt, que se encuentra en src/gingacc-connector/CMakeLists.txt</div>
<div><br></div><div>slds!</div><div><br><br><div class="gmail_quote">On Mon, Apr 11, 2011 at 10:12 PM, Marcelo A. Vasquez <span dir="ltr"><<a href="http://marcelo.vasquez.ar">marcelo.vasquez.ar</a>@<a href="http://gmail.com">gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Estimados.<br><br>Segui la guia para la instalaciòn de Ginga en linux, en mi caso estoy usando Debian, la ultima version.<br>
<br>He llegado al paso final de compilar el Ginga:<br><br>"<h3><a name="12f474ec3b9539eb_compilacion_gingaar">Compilación Ginga.ar</a></h3>
<div>
<p>
Estamos listos para compilar e instalar el <strong>Ginga.ar</strong> propiamente dicho. En este caso, la instalación se realiza sobre el directorio <strong>/usr/local</strong>.
</p>
<pre>cd 1.1.0/src/
sudo ./ginga-build.sh -i -S -P /usr/local -C /usr/local</pre>
</div>"<br><br>Pero me da el siguiente error:<br><br>[ 81%] Building CXX object CMakeFiles/gingaccconnector.dir/src/service/service.cpp.o<br>[ 82%] Building CXX object CMakeFiles/gingaccconnector.dir/src/service/serviceprovider.cpp.o<br>
Linking CXX static library libgingaccconnector.a<br>[ 82%] Built target gingaccconnector<br>Scanning dependencies of target test<br>[ 83%] Building CXX object CMakeFiles/test.dir/test/src/connector/connector.cpp.o<br>In file included from /usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:7" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:7</a>:<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/../util.h:5:25" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/../util.h:5:25</a>: error: gtest/gtest.h: No such file or directory<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:12" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:12</a>: error: ‘testing’ has not been declared<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:12" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:12</a>: error: expected ‘{’ before ‘Test’<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:12" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:12</a>: error: invalid type in declaration before ‘{’ token<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:12" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:12</a>: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:13" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:13</a>: error: expected primary-expression before ‘public’<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:13" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:13</a>: error: expected ‘}’ before ‘public’<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:13" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:13</a>: error: expected ‘,’ or ‘;’ before ‘public’<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:18" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:18</a>: error: declaration of ‘~ConnectorTest’ as non-member<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp</a>: In function ‘void onConnect(int)’:<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:21" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:21</a>: error: ‘_connect’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp</a>: In function ‘void onDisconnect(int)’:<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:26" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:26</a>: error: ‘_disconnect’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp</a>: In function ‘void onConnectTimeout(int)’:<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:31" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:31</a>: error: ‘_connectTimeout’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp</a>: In function ‘void onTimeout(int)’:<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:36" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:36</a>: error: ‘_timeout’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp</a>: In function ‘connector::Connector* startServer(const std::string&, int)’:<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:42" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:42</a>: error: incomplete type ‘ConnectorTest’ used in nested name specifier<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:42" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:42</a>: error: invalid use of ‘this’ in non-member function<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:43" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:43</a>: error: incomplete type ‘ConnectorTest’ used in nested name specifier<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:43" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:43</a>: error: invalid use of ‘this’ in non-member function<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:44" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:44</a>: error: incomplete type ‘ConnectorTest’ used in nested name specifier<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:44" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:44</a>: error: invalid use of ‘this’ in non-member function<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:45" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:45</a>: error: incomplete type ‘ConnectorTest’ used in nested name specifier<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:45" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:45</a>: error: invalid use of ‘this’ in non-member function<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp</a>: In function ‘connector::Connector* startClient(const std::string&, int, int)’:<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:54" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:54</a>: error: incomplete type ‘ConnectorTest’ used in nested name specifier<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:54" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:54</a>: error: invalid use of ‘this’ in non-member function<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:55" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:55</a>: error: incomplete type ‘ConnectorTest’ used in nested name specifier<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:55" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:55</a>: error: invalid use of ‘this’ in non-member function<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:56" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:56</a>: error: incomplete type ‘ConnectorTest’ used in nested name specifier<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:56" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:56</a>: error: invalid use of ‘this’ in non-member function<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp</a>: In function ‘void start()’:<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:62" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:62</a>: error: ‘_server’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:62" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:62</a>: error: ‘_pipe’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:64" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:64</a>: error: ‘_client’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp</a>: At global scope:<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:71" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:71</a>: error: ‘virtual’ outside class declaration<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp</a>: In function ‘void SetUp()’:<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:73" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:73</a>: error: ‘_pipe’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:74" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:74</a>: error: ‘_connect’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:74" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:74</a>: error: ‘_disconnect’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:74" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:74</a>: error: ‘_connectTimeout’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:74" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:74</a>: error: ‘_timeout’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp</a>: At global scope:<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:77" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:77</a>: error: ‘virtual’ outside class declaration<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp</a>: In function ‘void TearDown()’:<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:78" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:78</a>: error: ‘stop’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp</a>: In function ‘void stop()’:<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:83" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:83</a>: error: ‘stopClient’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:84" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:84</a>: error: ‘stopServer’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp</a>: In function ‘void stopServer()’:<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:88" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:88</a>: error: ‘_server’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:90" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:90</a>: error: type ‘<type error>’ argument given to ‘delete’, expected pointer<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp</a>: In function ‘void stopClient()’:<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:96" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:96</a>: error: ‘_client’ was not declared in this scope<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:98" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:98</a>: error: type ‘<type error>’ argument given to ‘delete’, expected pointer<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp</a>: At global scope:<br>
/usr/local/src/<a href="http://ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:109" target="_blank">ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:109</a>: error: expected declaration before ‘}’ token<br>
make[2]: *** [CMakeFiles/test.dir/test/src/connector/connector.cpp.o] Error 1<br>make[1]: *** [CMakeFiles/test.dir/all] Error 2<br>make: *** [all] Error 2<br><br>Podrian indicarme cual es el problema?<br><br>Muchas gracias por cualquier ayuda.<br>
<br>Saludos, Marcelo<br>
<br>_______________________________________________<br>
Ginga-argentina mailing list<br>
<a href="mailto:Ginga-argentina@lists.ourproject.org">Ginga-argentina@lists.ourproject.org</a><br>
<a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Alejandro Alvarez<br>
</div>