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
Contributor
Posts: 35
Registered: ‎03-19-2011
My Device: 9550
My Carrier: Smart
Accepted Solution

Build error at BB10 NDK sample app Gamepad

Hi all,

 

I got this error when build sample app Gamepad :

 

/Users/MyMac/BB10/Gamepad/main.c:322:34: error: 'SCREEN_DPAD_UP_GAME_BUTTON' undeclared (first use in this function)
/Users/MyMac/BB10/Gamepad/main.c:322:34: note: each undeclared identifier is reported only once for each function it appears in
/Users/MyMac/BB10/Gamepad/main.c:331:34: error: 'SCREEN_DPAD_DOWN_GAME_BUTTON' undeclared (first use in this function)
/Users/MyMac/BB10/Gamepad/main.c:340:34: error: 'SCREEN_DPAD_LEFT_GAME_BUTTON' undeclared (first use in this function)
make[2]: Leaving directory `/Users/MyMac/BB10/Gamepad/arm/o.le-v7'
make[1]: Leaving directory `/Users/MyMac/BB10/Gamepad/arm'
/Users/MyMac/BB10/Gamepad/main.c:349:34: error: 'SCREEN_DPAD_RIGHT_GAME_BUTTON' undeclared (first use in this function)
/Users/MyMac/BB10/Gamepad/main.c:355:34: error: 'SCREEN_A_GAME_BUTTON' undeclared (first use in this function)
/Users/MyMac/BB10/Gamepad/main.c:360:34: error: 'SCREEN_B_GAME_BUTTON' undeclared (first use in this function)
/Users/MyMac/BB10/Gamepad/main.c:365:34: error: 'SCREEN_X_GAME_BUTTON' undeclared (first use in this function)
/Users/MyMac/BB10/Gamepad/main.c:370:34: error: 'SCREEN_Y_GAME_BUTTON' undeclared (first use in this function)
/Users/MyMac/BB10/Gamepad/main.c:376:34: error: 'SCREEN_L1_GAME_BUTTON' undeclared (first use in this function)
/Users/MyMac/BB10/Gamepad/main.c:381:34: error: 'SCREEN_R1_GAME_BUTTON' undeclared (first use in this function)
/Users/MyMac/BB10/Gamepad/main.c:387:35: error: 'SCREEN_MENU1_GAME_BUTTON' undeclared (first use in this function)
/Users/MyMac/BB10/Gamepad/main.c:392:35: error: 'SCREEN_MENU2_GAME_BUTTON' undeclared (first use in this function)
cc: /Applications/bbndk/host_10_0_9_284/darwin/x86/usr/lib/gcc/arm-unknown-nto-qnx8.0.0eabi/4.6.3/cc1 error 1
make[2]: *** [main.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

 

Appreciate any help Smiley Happy

 

Thanks.

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Build error at BB10 NDK sample app Gamepad

you are missing some #include lines in your code. Where is this sample?

Contributor
Posts: 35
Registered: ‎03-19-2011
My Device: 9550
My Carrier: Smart

Re: Build error at BB10 NDK sample app Gamepad

i got this sample from git repository.

 

which one i'm missing ? cause i just download, import to project, and then build it, and got the errors Smiley Happy

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Build error at BB10 NDK sample app Gamepad

Make sure you use the latest NDK (10.0.9.1673). You'll get these errors with previous versions of NDK.

Contributor
Posts: 35
Registered: ‎03-19-2011
My Device: 9550
My Carrier: Smart

Re: Build error at BB10 NDK sample app Gamepad

Great BGmot,

 

That's the problem, i'm not choosing the right version to built for Smiley Happy

 

Thanks a lot Smiley Happy