Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed #31

Open
wangyanjiong163 opened this issue Feb 16, 2020 · 3 comments
Open

Build failed #31

wangyanjiong163 opened this issue Feb 16, 2020 · 3 comments

Comments

@wangyanjiong163
Copy link

Hi,

When I tried to follow the doc to build nRF5-SDK-for-Mesh app on my mac, it failed as below:

itch_client_nrf52840_xxAA_s140_6.1.0.dir/src/main.c.obj -c ../examples/my_light_switch/client/src/main.c
../examples/my_light_switch/client/src/main.c: In function 'button_event_handler':
../examples/my_light_switch/client/src/main.c:228:18: error: 'BUTTON_GROVE_1' undeclared (first use in this function)
228 | case BUTTON_GROVE_1:
| ^~~~~~~~~~~~~~
../examples/my_light_switch/client/src/main.c:228:18: note: each undeclared identifier is reported only once for each function it appears in
../examples/my_light_switch/client/src/main.c:237:18: error: 'BUTTON_GROVE_2' undeclared (first use in this function)
237 | case BUTTON_GROVE_2:
| ^~~~~~~~~~~~~~
../examples/my_light_switch/client/src/main.c: In function 'buttons_init':
../examples/my_light_switch/client/src/main.c:285:10: error: 'BUTTON_GROVE_1' undeclared (first use in this function)
285 | {BUTTON_GROVE_1, BUTTONS_GROVE_ACTIVE_STATE, BUTTON_GROVE_PULL, button_event_handler},
| ^~~~~~~~~~~~~~
../examples/my_light_switch/client/src/main.c:285:26: error: 'BUTTONS_GROVE_ACTIVE_STATE' undeclared (first use in this function); did you mean 'BUTTONS_ACTIVE_STATE'?
285 | {BUTTON_GROVE_1, BUTTONS_GROVE_ACTIVE_STATE, BUTTON_GROVE_PULL, button_event_handler},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| BUTTONS_ACTIVE_STATE
../examples/my_light_switch/client/src/main.c:285:54: error: 'BUTTON_GROVE_PULL' undeclared (first use in this function); did you mean 'BUTTON_PULL'?
285 | {BUTTON_GROVE_1, BUTTONS_GROVE_ACTIVE_STATE, BUTTON_GROVE_PULL, button_event_handler},
| ^~~~~~~~~~~~~~~~~
| BUTTON_PULL
../examples/my_light_switch/client/src/main.c:286:10: error: 'BUTTON_GROVE_2' undeclared (first use in this function)
286 | {BUTTON_GROVE_2, BUTTONS_GROVE_ACTIVE_STATE, BUTTON_GROVE_PULL, button_event_handler}
| ^~~~~~~~~~~~~~
[10/132] Building C object external/micro-ecc/CMakeFiles/uECC_nrf52840_xxAA.dir/uECC.c.obj
ninja: build stopped: subcommand failed.

@wangyanjiong163
Copy link
Author

anyone could help on this?

@caizelin
Copy link
Member

anyone could help on this?

Hi there, this example uses a Grove button for testing. You can modify the board config or just follow the tutorial here: https://wiki.makerdiary.com/grove-mesh-kit/bluetooth-mesh/

@wangyanjiong163
Copy link
Author

Hi, I followed 'Building the mesh stack and examples' tutorial in https://wiki.makerdiary.com/nrf52840-mdk/mesh/ site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants