donwojtallo / ev3dev-snake-js Goto Github PK
View Code? Open in Web Editor NEWA snake game for Lego EV3 running ev3dev firmware.
License: MIT License
A snake game for Lego EV3 running ev3dev firmware.
License: MIT License
Well, I am aware that 2 years have passed, I just though I'd use your project to test the ev3dev capabilities, but I could not build it:
robot@ev3dev:~/ev3dev-snake-js$ npm install
\
> [email protected] install /home/robot/ev3dev-snake-js/node_modules/ioctl
> node-gyp rebuild
make: Entering directory '/home/robot/ev3dev-snake-js/node_modules/ioctl/build'
CXX(target) Release/obj.target/ioctl/src/ioctl.o
../src/ioctl.cpp:44:9: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]
return Nan::ThrowError(Nan::ErrnoException(errno, "ioctl", nullptr, nullptr));
^
In file included from ../src/ioctl.cpp:3:0:
../node_modules/nan/nan.h:324:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
^
../src/ioctl.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Ioctl(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/ioctl.cpp:44:68: error: ‘nullptr’ was not declared in this scope
return Nan::ThrowError(Nan::ErrnoException(errno, "ioctl", nullptr, nullptr));
^
../src/ioctl.cpp:44:85: error: return-statement with a value, in function returning 'void' [-fpermissive]
return Nan::ThrowError(Nan::ErrnoException(errno, "ioctl", nullptr, nullptr));
^
ioctl.target.mk:82: recipe for target 'Release/obj.target/ioctl/src/ioctl.o' failed
make: *** [Release/obj.target/ioctl/src/ioctl.o] Error 1
make: Leaving directory '/home/robot/ev3dev-snake-js/node_modules/ioctl/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 4.4.32-17-ev3dev-ev3
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/robot/ev3dev-snake-js/node_modules/ioctl
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the ioctl package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls ioctl
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.4.32-17-ev3dev-ev3
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/robot/ev3dev-snake-js
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/robot/ev3dev-snake-js/npm-debug.log
npm ERR! not ok code 0
I am new to Brickman and all of this so I apologize for my ignorance. I have the files installed but when I select to run the - run-game.sh the screen shows an error stating that fitle is not a directory or an executable.
Any idea on what I am doing wrong?
Title^^
Cannot seem to extract the zip into home folder
Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the ioctl package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls ioctl
npm ERR! There is likely additional logging output above.
When i tried to do git clone https://github.com/donwojtallo/ev3dev-snake-js.git
it said Could not resolve host github.com
. Is there anything I am doing wrong?
it said:
npm WARN package.json Snake@ No repository field.
npm WARN deprecated [email protected]: This package has been renamed to 'ev3dev-lang'. Please update your dependencies.
Hi,
I Can't seem to run Snake via the Brickman Browser. When I try the EV3 Brick locks-up requiring power removal to reset it.
I can run it via console without any issues.
I have followed your instructions to the letter.
That said, it's a great demo.
cheers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.