Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build on Windows #55

Open
LuminescentMoon opened this issue Nov 18, 2015 · 5 comments
Open

Can't build on Windows #55

LuminescentMoon opened this issue Nov 18, 2015 · 5 comments

Comments

@LuminescentMoon
Copy link

The first time I've tried to build it, it told me it can't find the includes util.h and util-inl.h included by node_internals.h.
I've then download said 2 includes from nodejs's github repo, plop them into .node-gyp\5.1.0\include\node, and now the build fails with errors related to nan.h, NodeCoreAudio.cpp, and AudioEngine.cpp.

I've looked at nan's CI job for Node 5 Linux and it builds perfectly fine.

Using fresh install of NodeJS

Window 10 x64
NPM 3.3.12
NodeJS 5.1.0
Python 2.7.10
node-gyp 3.0.3
Visual Studio Community 2013

@RickHoving
Copy link

I'm having the same issues

Windows 10 x64
NPM 2.14.7
Node 4.2.2
Python 2.7.10
node-gyp 2.2.0

@davidmurdoch
Copy link

Maybe helpful to someone else: npm install node-core-audio fails for me on Windows 10 (node-gyp issue), but downloading and then building this repo directly worked fine.

Instructions (from cmd line):

git clone https://github.com/ZECTBynmo/node-core-audio.git
cd node-core-audio
node-gyp rebuild

TADA!

My setup, if it helps:

Windows 10
Visual Studio 2015
node 5.4.1
npm 3.5.3
Python 2.7

@doesdev
Copy link

doesdev commented Feb 12, 2016

As @davidmurdoch noted this seems to have been fixed in the master branch. Running npm i ZECTBynmo/node-core-audio or adding "node-core-audio": "ZECTBynmo/node-core-audio" as the package dependency should fix the issue for now.

That being said it would be good to see an updated NPM release is there aren't other outstanding issues that a new release would cause.

@msangel
Copy link

msangel commented Mar 30, 2016

Had the same problem.
Use @davidmurdoch 's receipt. It throw me an error:

module.js:341
    throw err;
    ^

Error: Cannot find module 'nan'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at [eval]:1:1
    at Object.exports.runInThisContext (vm.js:54:17)
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (module.js:413:34)
    at node.js:550:27
    at _combinedTickCallback (node.js:376:9)
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. 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 (C:\Program Files (x86)\Nodist\bin\node_modules\node-gyp\lib\configure.js:305:16)

Solve the problem by running npm i -g nan first. and then node-gyp rebuild again.
Can this be automated?


Windows 10
VS 2015 Community
Python 2.71 x64
Node 5.9.1
Npm 3.8.5

@msangel
Copy link

msangel commented Mar 30, 2016

Instaling from npm fails anyway with such error:

C:\Users\msangel\.node-gyp\5.9.1\include\node\node_internals.h(5): fatal error C1083: Cannot open include file: 'util.h': No such file or directory (compiling source file ..\NodeCoreAudio\AudioEngine.cpp) [C:\Program Files (x86)\Nodist\bin\node_modules\node-core-audio\build\NodeCoreAudio.vcxproj]
C:\Users\msangel\.node-gyp\5.9.1\include\node\node_internals.h(5): fatal error C1083: Cannot open include file: 'util.h': No such file or directory (compiling source file ..\NodeCoreAudio\NodeCoreAudio.cpp) [C:\Program Files (x86)\Nodist\bin\node_modules\node-core-audio\build\NodeCoreAudio.vcxproj]

But this might be because of: nodejs/node-gyp#629


upd: find same problem described here in your repo: #40 (comment) , so this might be common problem for all windows users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants