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

error building using flipc.org #3

Open
bmyhny opened this issue Apr 17, 2023 · 1 comment
Open

error building using flipc.org #3

bmyhny opened this issue Apr 17, 2023 · 1 comment

Comments

@bmyhny
Copy link

bmyhny commented Apr 17, 2023

applications_user/is_it_christmas/is_it_christmas.c: In function 'render_callback': applications_user/is_it_christmas/is_it_christmas.c:14:39: error: implicit declaration of function 'acquire_mutex' [-Werror=implicit-function-declaration] 14 | const PluginState* plugin_state = acquire_mutex((ValueMutex*)ctx, 25); | ^~~~~~~~~~~~~ applications_user/is_it_christmas/is_it_christmas.c:14:54: error: 'ValueMutex' undeclared (first use in this function) 14 | const PluginState* plugin_state = acquire_mutex((ValueMutex*)ctx, 25); | ^~~~~~~~~~ applications_user/is_it_christmas/is_it_christmas.c:14:54: note: each undeclared identifier is reported only once for each function it appears in applications_user/is_it_christmas/is_it_christmas.c:14:65: error: expected expression before ')' token 14 | const PluginState* plugin_state = acquire_mutex((ValueMutex*)ctx, 25); | ^ applications_user/is_it_christmas/is_it_christmas.c:33:5: error: implicit declaration of function 'release_mutex' [-Werror=implicit-function-declaration] 33 | release_mutex((ValueMutex*)ctx, plugin_state); | ^~~~~~~~~~~~~ applications_user/is_it_christmas/is_it_christmas.c:33:31: error: expected expression before ')' token 33 | release_mutex((ValueMutex*)ctx, plugin_state); | ^ applications_user/is_it_christmas/is_it_christmas.c:13:57: error: unused parameter 'ctx' [-Werror=unused-parameter] 13 | static void render_callback(Canvas* const canvas, void* ctx) { | ~~~~~~^~~ applications_user/is_it_christmas/is_it_christmas.c: In function 'is_it_christmas_app': applications_user/is_it_christmas/is_it_christmas.c:60:5: error: unknown type name 'ValueMutex' 60 | ValueMutex state_mutex; | ^~~~~~~~~~ applications_user/is_it_christmas/is_it_christmas.c:61:9: error: implicit declaration of function 'init_mutex' [-Werror=implicit-function-declaration] 61 | if(!init_mutex(&state_mutex, plugin_state, sizeof(PluginState))) { | ^~~~~~~~~~ applications_user/is_it_christmas/is_it_christmas.c:80:51: error: implicit declaration of function 'acquire_mutex_block' [-Werror=implicit-function-declaration] 80 | PluginState* plugin_state = (PluginState*)acquire_mutex_block(&state_mutex); | ^~~~~~~~~~~~~~~~~~~ applications_user/is_it_christmas/is_it_christmas.c:104:5: error: implicit declaration of function 'delete_mutex' [-Werror=implicit-function-declaration] 104 | delete_mutex(&state_mutex); | ^~~~~~~~~~~~ cc1: all warnings being treated as errors scons: *** [build/f7-firmware-D/.extapps/is_it_christmas/is_it_christmas.o] Error 1

@bmyhny
Copy link
Author

bmyhny commented Apr 17, 2023

sorry im newish to github, tried compiling/building using flipc and got that error, just thought this is a neat little app and would like to have it on my flipper <3

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

1 participant