exebook / glxwin Goto Github PK
View Code? Open in Web Editor NEWWindow, mouse, keyboard, OpenGL context - create apps with Node.js
Window, mouse, keyboard, OpenGL context - create apps with Node.js
После установки, как прописано в файле возникает ошибка сборки.
coderaiser@cloudcmd:~/deodar/glxwin$ node-gyp configure build
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | ia32
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/coderaiser/deodar/glxwin/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/coderaiser/.node-gyp/0.10.24/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/coderaiser/.node-gyp/0.10.24',
gyp info spawn args '-Dmodule_root_dir=/home/coderaiser/deodar/glxwin',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn make
gyp infomake: Entering directory `/home/coderaiser/deodar/glxwin/build'
spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/glxwin/glxwin.o
In file included from ../glxwin.cpp:36:0:
../glxwin.h:126:19: error: a brace-enclosed initializer is not allowed here before ‘{’ token
compilation terminated due to -Wfatal-errors.
make: *** [Release/obj.target/glxwin/glxwin.o] Error 1
make: Leaving directory `/home/coderaiser/deodar/glxwin/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.8.0-29-generic
gyp ERR! command "node" "/usr/local/bin/node-gyp" "configure" "build"
gyp ERR! cwd /home/coderaiser/deodar/glxwin
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
Вы могли бы мне помочь? Очень уже хочется посмотреть файловый менеджер :).
Версии:
$ node -v
v0.10.24
$ npm -v
1.3.24
$ node-gyp -v
v0.13.0
Получил в процессе установки вот это:
zvmarx@ubuntu:/deodar/x11clip$ ls/deodar/x11clip$ sudo node-gyp configure build
binding.gyp build package.json README.md x11clip.cpp x11clip.h x11clip.js
zvmarx@ubuntu:
[sudo] password for zvmarx:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info spawn python
gyp info spawn args [ '/usr/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/zvmarx/deodar/x11clip/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/zvmarx/.node-gyp/0.10.26/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/zvmarx/.node-gyp/0.10.26',
gyp info spawn args '-Dmodule_root_dir=/home/zvmarx/deodar/x11clip',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory /home/zvmarx/deodar/x11clip/build' SOLINK_MODULE(target) Release/obj.target/x11clip.node /usr/bin/ld: cannot find -lv8 collect2: ld returned 1 exit status make: *** [Release/obj.target/x11clip.node] Error 1 make: Leaving directory
/home/zvmarx/deodar/x11clip/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.2.0-60-generic
gyp ERR! command "node" "/usr/bin/node-gyp" "configure" "build"
gyp ERR! cwd /home/zvmarx/deodar/x11clip
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
Currently, glxwin is bound to X11. It would be nice to use it as a cross-platform layer.
OS X / Cocoa support should be added.
http://tootallnate.github.io/NodObjC/ might be useful here.
related to exebook/deodar#12
Hello,
When I tried install using your guide https://raw.githubusercontent.com/exebook/deodar/master/%D1%83%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%BA%D0%B0.%D0%B1%D1%83%D0%BA%D0%B2
I got following errors:
[root@CentOS x11clip]# node-gyp configure build
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/usr/src/node-v0.10.4/deodar/x11clip/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.node-gyp/0.10.26/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.node-gyp/0.10.26',
gyp info spawn args '-Dmodule_root_dir=/usr/src/node-v0.10.4/deodar/x11clip',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory /usr/src/node-v0.10.4/deodar/x11clip/build' SOLINK_MODULE(target) Release/obj.target/x11clip.node /usr/bin/ld: cannot find -lv8 collect2: ld returned 1 exit status make: *** [Release/obj.target/x11clip.node] Error 1 make: Leaving directory
/usr/src/node-v0.10.4/deodar/x11clip/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 2.6.32-431.el6.x86_64
gyp ERR! command "node" "/usr/local/bin/node-gyp" "configure" "build"
gyp ERR! cwd /usr/src/node-v0.10.4/deodar/x11clip
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
[root@CentOS glxwin]# node-gyp configure build
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/usr/src/node-v0.10.4/deodar/glxwin/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.node-gyp/0.10.26/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.node-gyp/0.10.26',
gyp info spawn args '-Dmodule_root_dir=/usr/src/node-v0.10.4/deodar/glxwin',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory /usr/src/node-v0.10.4/deodar/glxwin/build' CXX(target) Release/obj.target/glxwin/glxwin.o In file included from ../glxwin.cpp:36: ../glxwin.h:126: error: a brace-enclosed initializer is not allowed here before ‘{’ token compilation terminated due to -Wfatal-errors. make: *** [Release/obj.target/glxwin/glxwin.o] Error 1 make: Leaving directory
/usr/src/node-v0.10.4/deodar/glxwin/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 2.6.32-431.el6.x86_64
gyp ERR! command "node" "/usr/local/bin/node-gyp" "configure" "build"
gyp ERR! cwd /usr/src/node-v0.10.4/deodar/glxwin
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
Please u clarify what I did wrong?
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.