Closed GoogleCodeExporter closed 8 years ago
Hi,
Thank you for testing out the SVN -- it's much appreciated.
Would you mind posting the full error message, with line numbers? Please also
let me
know your SWIG version if possible (`swig -version`).
Original comment by sir...@gmail.com
on 1 Feb 2010 at 8:24
There wasn't much of a stack trace, I grepped for the assertion and found the
only
match in the file "Box2D/Collision/b2Distance.h".
See below for test output and SWIG version.
elemel-macbook:tests elemel$ python test_body.py
F.
====================================================
==================
FAIL: test_body (__main__.test_body)
-----------------------------------------------------------------
-----
Traceback (most recent call last):
File "test_body.py", line 32, in test_body
world.Step(timeStep, vel_iters, pos_iters)
AssertionError: 0 <= index && index < m_count
-----------------------------------------------------------------
-----
Ran 2 tests in 0.001s
FAILED (failures=1)
elemel-macbook:tests elemel$ swig -version
SWIG Version 1.3.36
Compiled with g++ [i386-apple-darwin10.2.0]
Please see http://www.swig.org for reporting bugs and further information
Original comment by mikke...@gmail.com
on 1 Feb 2010 at 8:58
Strange. I'm surprised test_joints didn't fail, as it is the only other test
that
does a world.Step(). Perhaps the box kwarg isn't getting evaluated somehow.
My first recommendation would be, if you had a previous build and then did `svn
update`, to clear out the 'build' directory (`setup.py clean` is not enough --
its
dependency checks often fail) and rebuild from scratch.
Next, if you don't mind, try replacing test_body.py line 22:
groundBody.CreateFixture(b2PolygonShape(box=(50,10)))
with:
groundBody.CreateFixture(b2PolygonShape(vertices=[(0,0),(1,0),(0.5,1)]))
And see if that does anything.
If not, I'll try to look more into this tomorrow, and bug my friend to let me
use his
Snow Leopard install. :)
Original comment by sir...@gmail.com
on 1 Feb 2010 at 9:24
Thanks for the advice.
I checked out a clean working copy and built it. I got a SWIG error so I
upgraded SWIG to
1.3.40 and did another clean build. All tests pass now.
Original comment by mikke...@gmail.com
on 1 Feb 2010 at 9:45
Ah, good. Will have to add a note about that on the wiki at some point.
Out of curiosity, what was the SWIG error? I'm hoping to not have to require
1.3.40
for the next release if I can.
Original comment by sir...@gmail.com
on 1 Feb 2010 at 9:57
Here's the full output when building with SWIG 1.3.36:
elemel-macbook:pybox2d-box2d_2.1 elemel$ python setup.py build
Using setuptools (version 0.6c9).
running build
running build_py
creating build
creating build/lib.macosx-10.6-universal-2.6
creating build/lib.macosx-10.6-universal-2.6/Box2D
copying library/Box2D/__init__.py -> build/lib.macosx-10.6-universal-2.6/Box2D
creating build/lib.macosx-10.6-universal-2.6/Box2D/b2
copying library/Box2D/b2/__init__.py -> build/lib.macosx-10.6-universal-
2.6/Box2D/b2
running build_ext
building 'Box2D._Box2D' extension
swigging Box2D/Box2D.i to Box2D/Box2D_wrap.cpp
swig -python -c++ -IBox2D -O -small -includeall -ignoremissing -w201 -globals
b2Globals -outdir library/Box2D -keyword -w511 -D_SWIG_KWARGS -o
Box2D/Box2D_wrap.cpp Box2D/Box2D.i
Box2D/Box2D_debugdraw.i:90: Warning(319): No access specifier given for base
class b2DebugDraw (ignored).
Box2D/Collision/b2DynamicTree.h:46: Warning(312): Nested union not currently
supported (ignored).
Box2D/Dynamics/b2Fixture.h:186: Warning(302): Identifier '~b2Fixture' redefined
by
%extend (ignored),
Box2D/Box2D_bodyfixture.i:45: Warning(302): %extend definition of '~b2Fixture'.
Box2D/Common/b2Math.h:95: Warning(509): Overloaded method b2Vec2::operator
()(int32) is shadowed by b2Vec2::operator ()(int32) const at
Box2D/Common/b2Math.h:89.
creating build/temp.macosx-10.6-universal-2.6
creating build/temp.macosx-10.6-universal-2.6/Box2D
creating build/temp.macosx-10.6-universal-2.6/Box2D/Dynamics
creating build/temp.macosx-10.6-universal-2.6/Box2D/Dynamics/Contacts
creating build/temp.macosx-10.6-universal-2.6/Box2D/Dynamics/Joints
creating build/temp.macosx-10.6-universal-2.6/Box2D/Common
creating build/temp.macosx-10.6-universal-2.6/Box2D/Collision
creating build/temp.macosx-10.6-universal-2.6/Box2D/Collision/Shapes
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -
Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -
pipe -
I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c
Box2D/Box2D_wrap.cpp -o build/temp.macosx-10.6-universal-
2.6/Box2D/Box2D_wrap.o -I. -Wno-unused
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC
but
not for C++
Box2D/Box2D_wrap.cpp:18128: error: integer constant is too large for ‘long’
type
Box2D/Box2D_wrap.cpp: In constructor
‘b2DebugDrawExtended::b2DebugDrawExtended()’:
Box2D/Box2D_wrap.cpp:3996: warning: ‘b2DebugDrawExtended::flipX’ will be
initialized after
Box2D/Box2D_wrap.cpp:3996: warning: ‘bool b2DebugDrawExtended::flipY’
Box2D/Box2D_wrap.cpp:4061: warning: when initialized here
Box2D/Box2D_wrap.cpp: In function ‘void init_Box2D()’:
Box2D/Box2D_wrap.cpp:18128: error: expected `)' before numeric constant
Box2D/Box2D_wrap.cpp:18128: error: expected `)' before ‘;’ token
Box2D/Box2D_wrap.cpp:18128: error: expected `)' before ‘;’ token
Box2D/Box2D_wrap.cpp:18128: error: expected `)' before ‘;’ token
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC
but
not for C++
Box2D/Box2D_wrap.cpp:18128: error: integer constant is too large for ‘long’
type
Box2D/Box2D_wrap.cpp: In constructor
‘b2DebugDrawExtended::b2DebugDrawExtended()’:
Box2D/Box2D_wrap.cpp:3996: warning: ‘b2DebugDrawExtended::flipX’ will be
initialized after
Box2D/Box2D_wrap.cpp:3996: warning: ‘bool b2DebugDrawExtended::flipY’
Box2D/Box2D_wrap.cpp:4061: warning: when initialized here
Box2D/Box2D_wrap.cpp: In function ‘void init_Box2D()’:
Box2D/Box2D_wrap.cpp:18128: error: expected `)' before numeric constant
Box2D/Box2D_wrap.cpp:18128: error: expected `)' before ‘;’ token
Box2D/Box2D_wrap.cpp:18128: error: expected `)' before ‘;’ token
Box2D/Box2D_wrap.cpp:18128: error: expected `)' before ‘;’ token
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC
but
not for C++
Box2D/Box2D_wrap.cpp: In constructor
‘b2DebugDrawExtended::b2DebugDrawExtended()’:
Box2D/Box2D_wrap.cpp:3996: warning: ‘b2DebugDrawExtended::flipX’ will be
initialized after
Box2D/Box2D_wrap.cpp:3996: warning: ‘bool b2DebugDrawExtended::flipY’
Box2D/Box2D_wrap.cpp:4061: warning: when initialized here
Box2D/Box2D_wrap.cpp: In function ‘void init_Box2D()’:
Box2D/Box2D_wrap.cpp:18128: error: expected `)' before numeric constant
Box2D/Box2D_wrap.cpp:18128: error: expected `)' before ‘;’ token
Box2D/Box2D_wrap.cpp:18128: error: expected `)' before ‘;’ token
Box2D/Box2D_wrap.cpp:18128: error: expected `)' before ‘;’ token
lipo: can't open input file: /var/folders/+v/+v4hx6lUEZKeHcpQlFlvv++++TI/-Tmp-
//ccFup8A6.out (No such file or directory)
error: command 'gcc-4.2' failed with exit status 1
Original comment by mikke...@gmail.com
on 1 Feb 2010 at 10:16
Original issue reported on code.google.com by
mikke...@gmail.com
on 1 Feb 2010 at 7:51