Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
steve_trelease
Posts: 8
Registered: ‎01-24-2012
My Device: none (developer)
My Carrier: AT&T

Belligerent Blocks (Box2D) build issue

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.

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Belligerent Blocks (Box2D) build issue

Please post your console output (from any failed attempt).

Please use plain text.
New Contributor
steve_trelease
Posts: 8
Registered: ‎01-24-2012
My Device: none (developer)
My Carrier: AT&T

Re: Belligerent Blocks (Box2D) build issue

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: No such file or directory

  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

Please use plain text.
Developer
TobyKaos
Posts: 67
Registered: ‎12-12-2012
My Device: playbook
My Carrier: free

Re: Belligerent Blocks (Box2D) build issue

this sample seems to not be up to date. Scoreloop method does not exists anymore.
Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Belligerent Blocks (Box2D) build issue

Note that some functions in Scoreloop API are different in Playbook and BB10.

Please use plain text.
Developer
TobyKaos
Posts: 67
Registered: ‎12-12-2012
My Device: playbook
My Carrier: free

Re: Belligerent Blocks (Box2D) build issue

yes you right. I will hurt my head on a wall :smileyhappy:
Please use plain text.