01-07-2013 04:36 PM
When trying to build Belligerent Blocks in Momentics, I get a string of errors about various Box2D header files not being found. The files do exist and the list changes on each attempt, so I'm really scratching my head. I'm running under Ubuntu 12.10 and have the IDEs installed for both PlayBook and BB10. I'm working in the PlayBook IDE since I have the device, but have tried the BB10 IDE and get the same results.
I've seen a number of posts about importing Box2D, but these are cases not related to the Blocks sample. Also, it seems the Blocks on-board Box2D tree has the same contents as the stand-alone Box2D.
01-07-2013 04:59 PM
Please post your console output (from any failed attempt).
01-07-2013 05:44 PM
Here's the error output from the initial build, using a freshly imported version of the source code:
Description Resource Path Location Type
'allocator' was not declared in this scope b2ChainAndPolygonContact.cpp
/BelligerentBlocks/src/Box2D/Dynamics/Contacts line 34 C/C++ Problem
'b2BlockAllocator' was not declared in this scope b2ChainAndPolygonContact.cpp
/BelligerentBlocks/src/Box2D/Dynamics/Contacts line 34 C/C++ Problem
'b2ChainAndPolygonContact' has not been declared b2ChainAndPolygonContact.cpp
/BelligerentBlocks/src/Box2D/Dynamics/Contacts line 34 C/C++ Problem
'b2ChainAndPolygonContact' has not been declared b2ChainAndPolygonContact.cpp
/BelligerentBlocks/src/Box2D/Dynamics/Contacts line 40 C/C++ Problem
'b2ChainAndPolygonContact' has not been declared b2ChainAndPolygonContact.cpp
/BelligerentBlocks/src/Box2D/Dynamics/Contacts line 47 C/C++ Problem
'b2Contact' was not declared in this scope b2ChainAndPolygonContact.cpp
/BelligerentBlocks/src/Box2D/Dynamics/Contacts line 34 C/C++ Problem
'b2Manifold' was not declared in this scope b2ChainAndPolygonContact.cpp
/BelligerentBlocks/src/Box2D/Dynamics/Contacts line 47 C/C++ Problem
'contact' was not declared in this scope b2ChainAndPolygonContact.cpp
/BelligerentBlocks/src/Box2D/Dynamics/Contacts line 34 C/C++ Problem
'manifold' was not declared in this scope b2ChainAndPolygonContact.cpp
/BelligerentBlocks/src/Box2D/Dynamics/Contacts line 47 C/C++ Problem
Box2D/Collision/Shapes/b2ChainShape.h: No such file or directory
b2ChainAndPolygonContact.cpp /BelligerentBlocks/src/Box2D/Dynamics/Contacts line 22
C/C++ Problem
Box2D/Collision/Shapes/b2EdgeShape.h: No such file or directory
b2ChainAndPolygonContact.cpp /BelligerentBlocks/src/Box2D/Dynamics/Contacts line 23
C/C++ Problem
Box2D/Common/b2BlockAllocator.h: No such file or directory b2ChainAndPolygonContact.cpp
/BelligerentBlocks/src/Box2D/Dynamics/Contacts line 20 C/C++ Problem
Box2D/Dynamics/b2Fixture.h: No such file or directory b2ChainAndPolygonContact.cpp
/BelligerentBlocks/src/Box2D/Dynamics/Contacts line 21 C/C++ Problem
Box2D/Dynamics/Contacts/b2ChainAndPolygonContact.h
b2ChainAndPolygonContact.cpp /BelligerentBlocks/src/Box2D/Dynamics/Contacts line 19
C/C++ Problem
expected constructor, destructor, or type conversion before '(' token
b2ChainAndPolygonContact.cpp /BelligerentBlocks/src/Box2D/Dynamics/Contacts line 40
C/C++ Problem
expected constructor, destructor, or type conversion before '*' token
b2ChainAndPolygonContact.cpp /BelligerentBlocks/src/Box2D/Dynamics/Contacts line 28
C/C++ Problem
expected primary-expression before 'const' b2ChainAndPolygonContact.cpp
/BelligerentBlocks/src/Box2D/Dynamics/Contacts line 47 C/C++ Problem
variable or field 'Destroy' declared void b2ChainAndPolygonContact.cpp
/BelligerentBlocks/src/Box2D/Dynamics/Contacts line 34 C/C++ Problem
variable or field 'Evaluate' declared void b2ChainAndPolygonContact.cpp
/BelligerentBlocks/src/Box2D/Dynamics/Contacts line 47 C/C++ Problem
01-08-2013 09:33 AM
01-08-2013 09:36 AM
Note that some functions in Scoreloop API are different in Playbook and BB10.
01-08-2013 09:40 AM