Comments (7)
I think that this must be related to the error I have below
VulkanBaseApp.cpp:31:10: fatal error: GLFW/glfw3.h: No such file or directory
31 | #include <GLFW/glfw3.h>
| ^~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:446: VulkanBaseApp.o] Error 255
I solved it by doing
sudo apt-get install xorg-dev libxcb1-dev libglfw3 libglfw3-dev
I took inspiration from this file for this. I hope it helps someone else.
from node-glfw.
Did u check if pkg-config --cflags glfw works correctly?
-- mike
On Mar 16, 2015 5:34 AM, "RealFreeBrain" [email protected] wrote:
I am getting following error when trying to install node-glfw in my centos
6 machine.
I have already set PKG_CONFIG_PATH to /usr/local/lib/pkgconfig/glfw3.pcFollowing is the error:
npm http GET https://registry.npmjs.org/node-glfw
npm http 304 https://registry.npmjs.org/node-glfw
npm WARN engine [email protected]: wanted: {"node":"0.6.5-0.11.10"}
(current: >{"node":"v0.10.33","npm":"1.3.6"})
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan[email protected] install /home/ingole/node_modules/node-glfw
node-gyp rebuildPackage glfw3 was not found in the pkg-config search path.
Perhaps you should add the directory containing glfw3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glfw3' found
Traceback (most recent call last):
File "/usr/bin/gyp", line 18, in
sys.exit(gyp.main(sys.argv[1:]))
File "/usr/lib/python2.6/site-packages/gyp/init.py", line 462, in main
options.circular_check)
File "/usr/lib/python2.6/site-packages/gyp/init.py", line 100, in Load
depth, generator_input_info, check, circular_check)
File "/usr/lib/python2.6/site-packages/gyp/input.py", line 2255, in Load
depth, check)
File "/usr/lib/python2.6/site-packages/gyp/input.py", line 388, in
LoadTargetBuildFile
build_file_path)
File "/usr/lib/python2.6/site-packages/gyp/input.py", line 1011, in
ProcessVariablesAndConditionsInDict
build_file)
File "/usr/lib/python2.6/site-packages/gyp/input.py", line 1026, in
ProcessVariablesAndConditionsInList
ProcessVariablesAndConditionsInDict(item, is_late, variables, build_file)
File "/usr/lib/python2.6/site-packages/gyp/input.py", line 985, in
ProcessVariablesAndConditionsInDict
ProcessConditionsInDict(the_dict, is_late, variables, build_file)
File "/usr/lib/python2.6/site-packages/gyp/input.py", line 862, in
ProcessConditionsInDict
variables, build_file)
File "/usr/lib/python2.6/site-packages/gyp/input.py", line 1011, in
ProcessVariablesAndConditionsInDict
build_file)
File "/usr/lib/python2.6/site-packages/gyp/input.py", line 1030, in
ProcessVariablesAndConditionsInList
expanded = ExpandVariables(item, is_late, variables, build_file)
File "/usr/lib/python2.6/site-packages/gyp/input.py", line 697, in
ExpandVariables
(contents, p.returncode))
Exception: Call to 'pkg-config --libs glfw3 glew' returned exit status 1.
while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error:gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit
(/usr/lib/node_modules/node-gyp/lib/configure.js:428:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit
(child_process.js:810:12)
gyp ERR! System Linux 2.6.32-431.el6.x86_64
gyp ERR! command "node"
"/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ingole/node_modules/node-glfw
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0—
Reply to this email directly or view it on GitHub
#18.
from node-glfw.
I'm getting same error ...
sudo apt-get install libglfw3-dev
so I do have
/usr/lib/x86_64-linux-gnu/pkgconfig/glfw3.pc
pkg-config --cflags glfw
fails yet glfw3 is found
pkg-config --cflags glfw3
-I/usr/include/libdrm
and
echo $PKG_CONFIG_PATH
/usr/lib/x86_64-linux-gnu/pkgconfig
from node-glfw.
hummm once I find some time, I’ll check the project. It’s possible new versions of glfw screwed up the link (not the first time).
— mike
On Mar 16, 2015, at 9:23 AM, Scott Stensland [email protected] wrote:
I'm getting same error ...
sudo apt-get install libglfw3-dev
so I do have
/usr/lib/x86_64-linux-gnu/pkgconfig/glfw3.pc
pkg-config --cflags glfw
fails yet glfw3 is found
pkg-config --cflags glfw3
-I/usr/include/libdrmand
echo $PKG_CONFIG_PATH
/usr/lib/x86_64-linux-gnu/pkgconfig—
Reply to this email directly or view it on GitHub #18 (comment).
from node-glfw.
PKG_CONFIG_PATH should be like this:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
and NOT
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/glfw3.pc
After this,
npm install node-glfw
is working for me.
pkg-config --cflags glfw still fails.
Thanks all for the help.
from node-glfw.
I see. Thanks!
-- mike
On Mar 16, 2015 11:45 AM, "RealFreeBrain" [email protected] wrote:
PKG_CONFIG_PATH should be like this:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/and NOT
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/glfw3.pcAfter this,
npm install node-glfw
is working for me.
pkg-config --cflags glfw still fails.Thanks all for the help.
—
Reply to this email directly or view it on GitHub
#18 (comment).
from node-glfw.
a note for all -- if you are installing in a non-standard directory, then node-glfw will pick up the PKG_CONFIG_PATH settings nicely, but the path to header files (pkg-config --cflags) is not picked up, as there is no macro for that in the binding.gyp file. not quite sure of best solution yet, just fyi
from node-glfw.
Related Issues (19)
- Installing of node-glfw fails
- Error when installing HOT 2
- Segfault when closing window (OS X) HOT 2
- EGL support
- atb.cc error OSX yosemite HOT 1
- Unable to install. ( 'NewSymbol' : is not a member of 'v8::String')( function does not take 0 a rguments) HOT 1
- Remove dependency on AntTweakBar HOT 4
- Linux vanilla kernel HOT 1
- Installation Issues HOT 3
- Why does this library need to depend on AntTweakBar? HOT 7
- npm install fails on OSX 10.10.1 HOT 5
- Error: The specified module could not be found. HOT 5
- Issue in the test_atb.js HOT 3
- ../src/atb.cc:294:57: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ HOT 2
- Vulkan Support
- Build error on line 205, 262 and 395 HOT 2
- Support for the latest versions of node.js
- Simple documentation or starter application example in README.md
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-glfw.