Mattsa008 / pybox2d

Automatically exported from code.google.com/p/pybox2d
Other
0 stars 0 forks source link

64-Bit Linux Support #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Unable to compile extension on 64-bit Linux/Python

Is this a limitation of the original Box2D API, or a problem with the Box2D
interface assuming only 32-bit Python?

What version of the product are you using? On what operating system?
2.0.2b1

Please provide any additional information below.

Output From 'setup.py build'

/usr/tmp/Box2D/Box2D-2.0.2b1/ 62$ python setup.py build
Using setuptools.
running build
running build_py
copying ./__init__.py -> build/lib.linux-x86_64-2.5/Box2D
copying ./Box2D.py -> build/lib.linux-x86_64-2.5/Box2D
running build_ext
building 'Box2D._Box2D' extension
swigging Box2D/Box2D.i to Box2D/Box2D_wrap.cpp
swig -python -c++ -IBox2D -O -includeall -ignoremissing -w201 -outdir . -o
Box2D/Box2D_wrap.cpp Box2D/Box2D.i
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-fPIC -I/imd/tool/app/python/python_UC4-2.5.1/linux64/include/python2.5 -c
Box2D/Box2D_wrap.cpp -o build/temp.linux-x86_64-2.5/Box2D/Box2D_wrap.o -I.
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
Box2D/Box2D_wrap.cpp: In function ‘int32 b2Joint___hash__(b2Joint*)’:
Box2D/Box2D_wrap.cpp:3520: error: cast from ‘b2Joint*’ to ‘int32’ loses
precision
Box2D/Box2D_wrap.cpp: In function ‘int32 b2Shape___hash__(b2Shape*)’:
Box2D/Box2D_wrap.cpp:4062: error: cast from ‘b2Shape*’ to ‘int32’ loses
precision
Box2D/Box2D_wrap.cpp: In function ‘int32 
b2Controller___hash__(b2Controller*)’:
Box2D/Box2D_wrap.cpp:4348: error: cast from ‘b2Controller*’ to ‘int32’
loses precision
Box2D/Box2D_wrap.cpp: In function ‘int32 b2Body___hash__(b2Body*)’:
Box2D/Box2D_wrap.cpp:4418: error: cast from ‘b2Body*’ to ‘int32’ loses
precision
Box2D/Box2D_wrap.cpp: In function ‘PyObject*
_wrap_b2Vec2_add_vector(PyObject*, PyObject*)’:
Box2D/Box2D_wrap.cpp:5891: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘Py_ssize_t’
Box2D/Box2D_wrap.cpp: In function ‘PyObject*
_wrap_b2Vec2_sub_vector(PyObject*, PyObject*)’:
Box2D/Box2D_wrap.cpp:5942: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘Py_ssize_t’
Box2D/Box2D_wrap.cpp: In function ‘PyObject*
_wrap_new_b2Vec2__SWIG_2(PyObject*, int, PyObject**)’:
....
<etc>

Original issue reported on code.google.com by gna...@gmail.com on 15 Jun 2009 at 7:12

GoogleCodeExporter commented 8 years ago
Duplicate of Issue 17 ( 
http://code.google.com/p/pybox2d/issues/detail?id=17&can=1 ).
Grab the latest SVN release, and it should take care of your problem.

Original comment by sir...@gmail.com on 15 Jun 2009 at 7:25