[Ginga-argentina] Problemas al compilar

Marcelo A. Vasquez marcelo.vasquez.ar at gmail.com
Tue Apr 12 20:51:08 CEST 2011


Gracias chicos por responder.

Les cuento que compilo bien, no tuve problemas, pero con mi usuario de
trabajo, no veo el comando "ginga"

Por favor, me indican como hago para tener en el PATH el comando ginga?

Por otro lado les cometo:

La 1ra. guia que segui fue la de Ubuntu (
http://wiki.ginga.org.ar/doku.php?id=aprende:instalacion_ubuntu), porque? no
se .. y alli no figura la libreria "libgtest-dev".
Aunque debo mencionar que las 2 guias Debian o Ubuntu.
La forma de obtener los fuentes son distintas, una desde un FTP y otra
usando el Repositorio.

Creo que para mejorar:
 - Dejar una Guia para Debian y Ubunto
 - Dejar una sola forma de obtener los fuentes, creo que para el
desarrollador es mejor el Subversion.

Saludos y gracias por la ayuda.

Marcelo



2011/4/12 Ezequiel García <elezegarcia at yahoo.com.ar>

> Hola Marcelo,
>
> Como te señala Alejandro te falta la librería google-test. No sé si estás
> siguiendo
> las instrucciones de la wiki de nuestra comunidad, pero de todas maneras
> te envío el link:
>
> http://wiki.ginga.org.ar/doku.php?id=aprende:instalacion
>
> <http://wiki.ginga.org.ar/doku.php?id=aprende:instalacion>En las
> dependencias para Ubuntu/Debian ( y cualquier otra distro basado en ellas,
> como
> por ejemplo Tuquito) figura "libgtest-dev".
>
> Cualquier sugerencia sobre como mejorar la documentación de ayuda es
> bienvenida.
> También sería interesante si podés correr exitosamente los ejemplos.
>
> http://wiki.ginga.org.ar/doku.php?id=aprende:tutoriales_ncl-lua:inicio
>
> Saludos!
>
> --- El *mar 12-abr-11, Alejandro Alvarez <aalvarez at lifia.info.unlp.edu.ar>
> * escribió:
>
>
> De: Alejandro Alvarez <aalvarez at lifia.info.unlp.edu.ar>
> Asunto: Re: [Ginga-argentina] Problemas al compilar
> Para: "Lista de la comunidad argentina de Ginga" <
> ginga-argentina at lists.ourproject.org>
> Fecha: martes, 12 de abril de 2011, 10:56
>
>
> Hola Marcelo,
>
> 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 (http://code.google.com/p/googletest/).
> 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
>
> slds!
>
>
> On Mon, Apr 11, 2011 at 10:12 PM, Marcelo A. Vasquez <marcelo.vasquez.ar@
> gmail.com> wrote:
>
> Estimados.
>
> Segui la guia para la instalaciòn de Ginga en linux, en mi caso estoy
> usando Debian, la ultima version.
>
> He llegado al paso final de compilar el Ginga:
>
> "Compilación Ginga.ar
>
> Estamos listos para compilar e instalar el *Ginga.ar* propiamente dicho.
> En este caso, la instalación se realiza sobre el directorio */usr/local*.
>
> cd 1.1.0/src/
> sudo ./ginga-build.sh  -i -S -P /usr/local -C /usr/local
>
> "
>
> Pero me da el siguiente error:
>
> [ 81%] Building CXX object
> CMakeFiles/gingaccconnector.dir/src/service/service.cpp.o
> [ 82%] Building CXX object
> CMakeFiles/gingaccconnector.dir/src/service/serviceprovider.cpp.o
> Linking CXX static library libgingaccconnector.a
> [ 82%] Built target gingaccconnector
> Scanning dependencies of target test
> [ 83%] Building CXX object
> CMakeFiles/test.dir/test/src/connector/connector.cpp.o
> In file included from /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:7
> :
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/../util.h:5:25:
> error: gtest/gtest.h: No such file or directory
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:12:
> error: ‘testing’ has not been declared
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:12:
> error: expected ‘{’ before ‘Test’
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:12:
> error: invalid type in declaration before ‘{’ token
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:12:
> warning: extended initializer lists only available with -std=c++0x or
> -std=gnu++0x
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:13:
> error: expected primary-expression before ‘public’
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:13:
> error: expected ‘}’ before ‘public’
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:13:
> error: expected ‘,’ or ‘;’ before ‘public’
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:18:
> error: declaration of ‘~ConnectorTest’ as non-member
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:
> In function ‘void onConnect(int)’:
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:21:
> error: ‘_connect’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:
> In function ‘void onDisconnect(int)’:
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:26:
> error: ‘_disconnect’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:
> In function ‘void onConnectTimeout(int)’:
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:31:
> error: ‘_connectTimeout’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:
> In function ‘void onTimeout(int)’:
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:36:
> error: ‘_timeout’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:
> In function ‘connector::Connector* startServer(const std::string&, int)’:
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:42:
> error: incomplete type ‘ConnectorTest’ used in nested name specifier
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:42:
> error: invalid use of ‘this’ in non-member function
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:43:
> error: incomplete type ‘ConnectorTest’ used in nested name specifier
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:43:
> error: invalid use of ‘this’ in non-member function
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:44:
> error: incomplete type ‘ConnectorTest’ used in nested name specifier
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:44:
> error: invalid use of ‘this’ in non-member function
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:45:
> error: incomplete type ‘ConnectorTest’ used in nested name specifier
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:45:
> error: invalid use of ‘this’ in non-member function
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:
> In function ‘connector::Connector* startClient(const std::string&, int,
> int)’:
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:54:
> error: incomplete type ‘ConnectorTest’ used in nested name specifier
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:54:
> error: invalid use of ‘this’ in non-member function
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:55:
> error: incomplete type ‘ConnectorTest’ used in nested name specifier
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:55:
> error: invalid use of ‘this’ in non-member function
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:56:
> error: incomplete type ‘ConnectorTest’ used in nested name specifier
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:56:
> error: invalid use of ‘this’ in non-member function
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:
> In function ‘void start()’:
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:62:
> error: ‘_server’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:62:
> error: ‘_pipe’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:64:
> error: ‘_client’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:
> At global scope:
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:71:
> error: ‘virtual’ outside class declaration
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:
> In function ‘void SetUp()’:
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:73:
> error: ‘_pipe’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:74:
> error: ‘_connect’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:74:
> error: ‘_disconnect’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:74:
> error: ‘_connectTimeout’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:74:
> error: ‘_timeout’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:
> At global scope:
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:77:
> error: ‘virtual’ outside class declaration
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:
> In function ‘void TearDown()’:
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:78:
> error: ‘stop’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:
> In function ‘void stop()’:
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:83:
> error: ‘stopClient’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:84:
> error: ‘stopServer’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:
> In function ‘void stopServer()’:
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:88:
> error: ‘_server’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:90:
> error: type ‘<type error>’ argument given to ‘delete’, expected pointer
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:
> In function ‘void stopClient()’:
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:96:
> error: ‘_client’ was not declared in this scope
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:98:
> error: type ‘<type error>’ argument given to ‘delete’, expected pointer
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:
> At global scope:
> /usr/local/src/
> ginga.ar/tags/release/1.1.0/1.1.0/src/gingacc-connector/test/src/connector/connector.cpp:109:
> error: expected declaration before ‘}’ token
> make[2]: *** [CMakeFiles/test.dir/test/src/connector/connector.cpp.o] Error
> 1
> make[1]: *** [CMakeFiles/test.dir/all] Error 2
> make: *** [all] Error 2
>
> Podrian indicarme cual es el problema?
>
> Muchas gracias por cualquier ayuda.
>
> Saludos, Marcelo
>
> _______________________________________________
> Ginga-argentina mailing list
> Ginga-argentina at lists.ourproject.org<http://mc/[email protected]>
> https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina
>
>
>
>
> --
> Alejandro Alvarez
>
> -----Adjunto en línea a continuación-----
>
>
> _______________________________________________
> Ginga-argentina mailing list
> Ginga-argentina at lists.ourproject.org<http://mc/[email protected]>
> https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina
>
>
> _______________________________________________
> Ginga-argentina mailing list
> Ginga-argentina at lists.ourproject.org
> https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ourproject.org/pipermail/ginga-argentina/attachments/20110412/6dd60543/attachment-0001.htm 


More information about the Ginga-argentina mailing list