1Euro7Cent / Mrballou-drawbot

This is a drawbot that can draw in almost every drawing programm (skribbl.io, gartic phone ect)
GNU General Public License v3.0
95 stars 11 forks source link

Is this accessible to run on linux, or should I be using wine or smth? #38

Open SPLATPLAYS opened 3 months ago

SPLATPLAYS commented 3 months ago

Tried build with a jszip error, I'll try wine with it, no reason this shouldn't run right?

1Euro7Cent commented 3 months ago

It is not designed for Linux. But it is already in the making to run on Linux (compiled versions). But I don't see why you shouldn't be able to run it directly from source. No compiling needed. You can follow the steps to build and just do python3 gui.py and node index.js

SPLATPLAYS commented 3 months ago

I continue to get a build error every time I try to npm i,

npm error path /home/splatplays/Code/Cloned Projects/drawbot/Mrballou-drawbot-3.20.0/node_modules/robotjs
npm error command failed
npm error command sh -c prebuild-install || node-gyp rebuild
npm error make: Entering directory '/home/splatplays/Code/Cloned Projects/drawbot/Mrballou-drawbot-3.20.0/node_modules/robotjs/build'
npm error   CXX(target) Release/obj.target/robotjs/src/robotjs.o
npm error make: Leaving directory '/home/splatplays/Code/Cloned Projects/drawbot/Mrballou-drawbot-3.20.0/node_modules/robotjs/build'
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@10.1.0
npm error gyp info using node@21.7.1 | linux | x64
npm error gyp info find Python using Python version 3.10.12 found at "/usr/bin/python3"
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/usr/local/node-v21.7.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/home/splatplays/Code/Cloned Projects/drawbot/Mrballou-drawbot-3.20.0/node_modules/robotjs/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/local/node-v21.7.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/home/splatplays/.cache/node-gyp/21.7.1/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/home/splatplays/.cache/node-gyp/21.7.1',
npm error gyp info spawn args '-Dnode_gyp_dir=/usr/local/node-v21.7.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/home/splatplays/.cache/node-gyp/21.7.1/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/home/splatplays/Code/Cloned Projects/drawbot/Mrballou-drawbot-3.20.0/node_modules/robotjs',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error cc1plus: warning: command-line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
npm error In file included from ../../nan/nan.h:180,
npm error                  from ../src/robotjs.cc:2:
npm error ../../nan/nan_callbacks.h:55:23: error: ‘AccessorSignature’ is not a member of ‘v8’
npm error    55 | typedef v8::Local<v8::AccessorSignature> Sig;
npm error       |                       ^~~~~~~~~~~~~~~~~
npm error ../../nan/nan_callbacks.h:55:40: error: template argument 1 is invalid
npm error    55 | typedef v8::Local<v8::AccessorSignature> Sig;
npm error       |                                        ^
npm error In file included from ../src/robotjs.cc:1:
npm error /home/splatplays/.cache/node-gyp/21.7.1/include/node/node.h:1202:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
npm error  1202 |       (node::addon_register_func) (regfunc),                          \
npm error       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /home/splatplays/.cache/node-gyp/21.7.1/include/node/node.h:1236:3: note: in expansion of macro ‘NODE_MODULE_X’
npm error  1236 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
npm error       |   ^~~~~~~~~~~~~
npm error ../src/robotjs.cc:907:1: note: in expansion of macro ‘NODE_MODULE’
npm error   907 | NODE_MODULE(robotjs, InitAll)
npm error       | ^~~~~~~~~~~
npm error In file included from /home/splatplays/.cache/node-gyp/21.7.1/include/node/v8-array-buffer.h:12,
npm error                  from /home/splatplays/.cache/node-gyp/21.7.1/include/node/v8.h:24,
npm error                  from /home/splatplays/.cache/node-gyp/21.7.1/include/node/node.h:73,
npm error                  from ../src/robotjs.cc:1:
npm error /home/splatplays/.cache/node-gyp/21.7.1/include/node/v8-local-handle.h: In instantiation of ‘v8::Local<T>::Local(v8::Local<S>) [with S = v8::Data; T = v8::Value]’:
npm error ../../nan/nan_callbacks_12_inl.h:175:53:   required from here
npm error /home/splatplays/.cache/node-gyp/21.7.1/include/node/v8-local-handle.h:253:42: error: static assertion failed: type check
npm error   253 |     static_assert(std::is_base_of<T, S>::value, "type check");
npm error       |                                          ^~~~~
npm error /home/splatplays/.cache/node-gyp/21.7.1/include/node/v8-local-handle.h:253:42: note: ‘std::integral_constant<bool, false>::value’ evaluates to false
npm error make: *** [robotjs.target.mk:130: Release/obj.target/robotjs/src/robotjs.o] Error 1
npm error gyp ERR! build error 
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/node-v21.7.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! System Linux 5.15.0-92-generic
npm error gyp ERR! command "/usr/local/node-v21.7.1-linux-x64/bin/node" "/usr/local/node-v21.7.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /home/splatplays/Code/Cloned Projects/drawbot/Mrballou-drawbot-3.20.0/node_modules/robotjs
npm error gyp ERR! node -v v21.7.1
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /home/splatplays/.npm/_logs/2024-07-22T01_53_45_011Z-debug-0.log
1Euro7Cent commented 3 months ago

I didn't mean to run the build command. I ment to set everything up until build and then run it directly using python3 gui.py and node index.js

SPLATPLAYS commented 3 weeks ago

That wasn't the build command that was the command to download the packages in order to run the project, the source of the problem is that robotjs is no longer supported or maintained with the latest versions of nodejs as displayed in #43 Is upgrading an option?