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
Build fails on OSX #116
Comments
Does the nan directory exist in the robotjs node_modules directory? |
No, it wouldn't; NPM@3 onward has flat module systems. That could be it. I'm not able to confirm since the build fails, thus robotjs doesn't appear in node_modules to begin with. |
FWIW, I'm also seeing the same issue, so it's not an isolated thing. (node 4.2.1/node-gyp 3.0.3/npm 3.3.9 on El Capitan) |
Alright, I know what needs to be done. I'll submit a PR. |
#117 should resolve this, could you try building RobotJS from the dynamic-nan-include branch? Thanks! |
Using
I saw this error before when I was running npm 2.x but I upgraded to 3.x and it changed to the |
Same thing here.
|
Hmm, must be an El Capitan thing. It builds for Node v4.2.1 for me without issue. I'll have to find a way to test and work on this, it may be a couple of days. Sorry! |
I had the same build error on Windows 10, it is fixed with the dynamic-nan-include branch! |
Awesome! I'll get it pushed out today with #114. |
I'm so curious what has changed here. Is it the compiler? I feel like it has to be. What version of Xcode are y'all running? |
It has to be gcc/g++, here's what I have:
What versions do y'all have? |
El Capitan 10.11.1 & Xcode 7.1 (7B91b) |
@SimulatedGREG Could you check your gcc/g++ version? Thanks a ton! |
This?
|
Yes thanks! And could you run |
Looks the same...
|
Hmm, I thought I was on to something. I'll set up an El Capitan VM now. |
Hmm, first thought is that you shouldn't be relying upon GNU's compilers on OSX, because they're usually symlinked to clang which can have different semantics. Should be looking at That being said:
|
Yeah I'm having a hard time imaging exactly what has changed. I don't want to update my main OS and not be able to work on RobotJS, so I'm trying to get a VM going. |
And why does Node.js v0.12.7 build? Does node-gyp use different build tools here? I'm looking into this now. |
That was my main question, how in the world does v0.12.7 work. Thanks for the fast responses by the way!
|
This is why I suspect it's a Nan issue. |
Since the original issue has been resolved, I created #118 to address the El Capitan issue. Thanks for the help guys! |
v0.3.2 published to npm which fixes this issue. |
same problem is happening on mac os 11.4 node 15.x |
I even tried
npm i nan
on its own to no avail. Running on El Capitan.The text was updated successfully, but these errors were encountered: