GithubHelp home page GithubHelp logo

Issue when running example script about wits HOT 3 OPEN

dashersw avatar dashersw commented on June 14, 2024
Issue when running example script

from wits.

Comments (3)

gokseltokur avatar gokseltokur commented on June 14, 2024

I even tried on Ubuntu 18.04. I got this error on it,

[email protected] preinstall /home/goksel/Codes/wits-master/node_modules/wits
if [ ! -d lib/emokit-c ] ; then git clone https://github.com/dashersw/emokit-c.git lib/emokit-c; fi

Cloning into 'lib/emokit-c'...
remote: remote: Enumerating objects: 713, done.
remote: Total 713 (delta 0), reused 0 (delta 0), pack-reused 713
Receiving objects: 100% (713/713), 721.72 KiB | 8.29 MiB/s, done.
Resolving deltas: 100% (281/281), done.

[email protected] install /home/goksel/Codes/wits-master/node_modules/wits
node-gyp rebuild

make: Entering directory '/home/goksel/Codes/wits-master/node_modules/wits/build'
SOLINK_MODULE(target) Release/obj.target/../node-addon-api/src/nothing.node
COPY Release/nothing.node
CC(target) Release/obj.target/emotiv/lib/fprintf_override.o
CXX(target) Release/obj.target/emotiv/lib/bindings.o
CC(target) Release/obj.target/emotiv/lib/emokit-c/src/emokit.o
In file included from ../lib/emokit-c/src/emokit.c:20:0:
../lib/emokit-c/include/emokit/emokit.h:33:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
const static uint32_t EMOKIT_VID = 0x1234;
^~~~~
../lib/emokit-c/include/emokit/emokit.h:35:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
const static uint32_t EMOKIT_PID = 0xed02;
^~~~~
../lib/emokit-c/include/emokit/emokit.h:44:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
const static uint32_t EMOKIT_OUT_ENDPT = 0x02;
^~~~~
../lib/emokit-c/include/emokit/emokit.h:46:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
const static uint32_t EMOKIT_IN_ENDPT = 0x82;
^~~~~
../lib/emokit-c/src/emokit.c:21:10: fatal error: hidapi/hidapi.h: No such file or directory
#include "hidapi/hidapi.h"
^~~~~~~~~~~~~~~~~
compilation terminated.
emotiv.target.mk:121: recipe for target 'Release/obj.target/emotiv/lib/emokit-c/src/emokit.o' failed
make: *** [Release/obj.target/emotiv/lib/emokit-c/src/emokit.o] Error 1
make: Leaving directory '/home/goksel/Codes/wits-master/node_modules/wits/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/goksel/.nvm/versions/node/v12.9.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack at ChildProcess.emit (events.js:209:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 5.0.0-23-generic
gyp ERR! command "/home/goksel/.nvm/versions/node/v12.9.0/bin/node" "/home/goksel/.nvm/versions/node/v12.9.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/goksel/Codes/wits-master/node_modules/wits
gyp ERR! node -v v12.9.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
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 probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/goksel/.npm/_logs/2019-08-22T16_38_25_128Z-debug.log

from wits.

dashersw avatar dashersw commented on June 14, 2024

Hello! Wits doesn't run on Windows yet, but on Linux after installing hidapi and mcrypt, it should work. Please have a look at the Dockerfile here, it might help: https://github.com/dashersw/brain-monitor/pull/1/files#diff-3254677a7917c6c01f55212f86c57fbf

from wits.

dashersw avatar dashersw commented on June 14, 2024
apt-get update && apt-get upgrade -y && apt-get autoremove && apt-get autoclean
apt-get install -y \
	        libhidapi-dev \
	        libblas-dev \
	        liblapack-dev \
	        libmcrypt-dev 

from wits.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.