[pyar] Instalar Pilas en Ubuntu Karmic 9.10

Martin Chikilian slacklinucs en gmail.com
Mar Mar 29 15:04:44 ART 2011


Cristian,

Creo que vas a tener que instalar Box2D, es una librería para gráficos de
juegos en 2D (recién me entero). Según tu output, faltan los headers de esa
lib.

Espero que ande, saludos.

Martín


Hola.
>
> Estoy tratando de instalar Pilas siguiendo las instrucciones de la
> página:
> http://www.pilas-engine.com.ar/doc/tutoriales/instalando_pilas_en_ubuntu_10_04/instalando_pilas_en_ubuntu_10_04.rst
>
> Se me presentan 2 problemas:
>
> 1) No puedo compilar pybox2d, ya que da un error en la linea 20 del
> archivo setup.py (solucionado: Hay que sacar el acento de Sáb)
> Vuelvo a ejecutar: python setup.py build pero me arroja el siguiente
> error:
> ---------------------------------------------------------------
> Using setuptools (version 0.6c9).
> running build
> running build_py
> creating build
> creating build/lib.linux-i686-2.6
> creating build/lib.linux-i686-2.6/Box2D
> copying library/Box2D/Box2D.py -> build/lib.linux-i686-2.6/Box2D
> copying library/Box2D/__init__.py -> build/lib.linux-i686-2.6/Box2D
> creating build/lib.linux-i686-2.6/Box2D/b2
> copying library/Box2D/b2/__init__.py ->
> build/lib.linux-i686-2.6/Box2D/b2
> running build_ext
> building 'Box2D._Box2D' extension
> swigging Box2D/Box2D.i to Box2D/Box2D_wrap.cpp
> swig -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201
> -globals b2Globals -outdir library/Box2D -keyword -w511 -D_SWIG_KWARGS
> -o Box2D/Box2D_wrap.cpp Box2D/Box2D.i
> Box2D/Collision/b2DynamicTree.h:48: Warning(312): Nested union not
> currently supported (ignored).
> Box2D/Common/b2Math.h:90: Warning(509): Overloaded method
> b2Vec2::operator ()(int32) is shadowed by b2Vec2::operator ()(int32)
> const at Box2D/Common/b2Math.h:84.
> creating build/temp.linux-i686-2.6
> creating build/temp.linux-i686-2.6/Box2D
> creating build/temp.linux-i686-2.6/Box2D/Dynamics
> creating build/temp.linux-i686-2.6/Box2D/Dynamics/Contacts
> creating build/temp.linux-i686-2.6/Box2D/Dynamics/Joints
> creating build/temp.linux-i686-2.6/Box2D/Common
> creating build/temp.linux-i686-2.6/Box2D/Collision
> creating build/temp.linux-i686-2.6/Box2D/Collision/Shapes
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
> -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c
> Box2D/Box2D_wrap.cpp -o build/temp.linux-i686-2.6/Box2D/Box2D_wrap.o -I.
> -Wno-unused
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
> Ada/C/ObjC but not for C++
> In file included from Box2D/Box2D_wrap.cpp:3185:
> ./Box2D/Box2D.h:36:34: error: Box2D/Common/b2Timer.h: No existe el
> fichero ó directorio
> In file included from ./Box2D/Collision/b2BroadPhase.h:24,
>                 from ./Box2D/Box2D.h:43,
>                 from Box2D/Box2D_wrap.cpp:3185:
> ./Box2D/Collision/b2DynamicTree.h:293:26: error: missing binary operator
> before token "0"
> Box2D/Box2D_wrap.cpp:20898: warning: integer constant is too large for
> ‘long’ type
> Box2D/Box2D_wrap.cpp: In constructor ‘b2DrawExtended::b2DrawExtended()’:
> Box2D/Box2D_wrap.cpp:4085: warning: ‘b2DrawExtended::flipX’ will be
> initialized after
> Box2D/Box2D_wrap.cpp:4085: warning:   ‘bool b2DrawExtended::flipY’
> Box2D/Box2D_wrap.cpp:4150: warning:   when initialized here
> Box2D/Box2D_wrap.cpp: In function ‘void init_Box2D()’:
> Box2D/Box2D_wrap.cpp:20898: error: expected ‘)’ before numeric constant
> Box2D/Box2D_wrap.cpp:20898: error: expected ‘)’ before ‘;’ token
> Box2D/Box2D_wrap.cpp:20898: error: expected ‘)’ before ‘;’ token
> Box2D/Box2D_wrap.cpp:20898: error: expected ‘)’ before ‘;’ token
> error: command 'gcc' failed with exit status 1
> ------------------------------------------------------------------------
> Ahora , leí en el install que puede ser problemas con la versión del
> setuptools, pero no se cual comando ejecutar para actualizar la versión
> que viene con Ubuntu 9.10.
>
> Cualquier luz al asunto lo agradezco.
>
> Saludos
>
> Cristian
>
> _______________________________________________
> pyar mailing list pyar en python.org.ar
> http://listas.python.org.ar/listinfo/pyar
>
> PyAr - Python Argentina - Sitio web: http://www.python.org.ar/
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20110329/57d260f6/attachment.html>


More information about the pyar mailing list