-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Support for MinGW/Cygwin as an alternative to Visual Studio #194
Comments
I don't believe either MinGW nor Cygwin are supported by gyp at this time. You'll have to take this one up with the gyp guys directly: https://groups.google.com/forum/?fromgroups#!forum/gyp-developer |
The gyp team reports that gyp itself is compiler agnostic. node-gyp should be able to use MinGW/Cygwin just fine instead of Visual Studio. |
Well that's good to hear that it should be possible to use the At the moment, I'm pretty sure node-gyp makes a lot of assumptions that the On Tue, Feb 12, 2013 at 1:54 PM, Andrew Pennebaker <notifications@github.com
|
I've been able to build Node in MinGW+MSYS with a few changes. The trick is to use an MSYS build of Python. See http://opensourcepack.blogspot.co.uk/2013/06/nodejs-with-posix-path-support.html |
Quick note on this, with some modification I was able to get node-gyp to generate make files in msys...this involved several steps:
The above appeared to generate what seem to be appropriate build files in build, however I have not figured out quite how to run them, or if they are complete:
binding.target.mk:87: *** target pattern contains no '%'. Stop. Update: It appears this is an issue in the windows versions of make. Basically a paths problem. Its probably possible to fix this with cygpath and/or using an older version of make (msys2 comes with gnu make 4.2.1 as of this writing) https://stackoverflow.com/questions/601516/cygwin-make-error-target-pattern-contains-no Update2: binding.target.mk had a /C:/ in one of the paths (probably put there in by gyp/node-gyp). That means this tool should probably do some checking for /C:/ and remove the colon -> /c/ That's at least three areas that need patched in node-gyp. |
node-gyp just needs
make
andgcc
, which are provided by MinGW/Cygwin.Is MinGW/Cygwin a viable option for node-gyp users instead of the colossal Visual Studio environment?
The text was updated successfully, but these errors were encountered: