@accron wrote:
I’m trying to install the plugin https://github.com/go-u/capacitor-keep-screen-on
When I donpx cap sync android
, as per the instructions, I get the error:In file included from ../src/binding.cc:3: ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: ../node_modules/nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] 2294 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) | ^ In file included from ../src/binding.cc:1: ../src/binding.cc: At global scope: /home/user/.cache/node-gyp/12.16.3/include/node/node.h:608:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type] 608 | (node::addon_register_func) (regfunc), \ | ^ /home/user/.cache/node-gyp/12.16.3/include/node/node.h:642:3: note: in expansion of macro ‘NODE_MODULE_X’ 642 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) | ^~~~~~~~~~~~~ ../src/binding.cc:632:3: note: in expansion of macro ‘NODE_MODULE’ 632 | NODE_MODULE(cap, init);
I have no idea what it’s saying.
Any ideas?
Posts: 1
Participants: 1