-
Notifications
You must be signed in to change notification settings - Fork 132
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
compiling on windows #5
Comments
Not sure what the problem is yet. I'll be spending the next day or two working on cross-platform building. |
Heya Aaron, did you have any luck? |
Sorry, I don't have a Windows machine to develop on. I'll ask one of my colleagues who's recently been doing some Windows development. Sorry for the delay! |
I think this may be caused by using the C++-ism of defining variables wherever you like. If you add |
I might as well ask the obvious: did you remember to pull in the libsass submodule? |
Yes, the submodule is there inside the libsass dir. Is that what the error indicates? I am using cygwin but of course it's Windows and I noticed the paths in Makefile are using a forward slash. Also, the Makefile in libass/Makefile references "usr/local". Do you think this is a problem with the paths or is there some underlying problem with the compiler on Windows. Am I taking the wrong direction with using cygwin? If anyone has the latest compiled binary for sassc on Windows, please contact me. |
Some of my colleagues have used MinGW to compile a number of libraries on Windows (including LibSass, but not SassC). Maybe give that a try? Sorry about not having better Windows support -- I don't have much experience with that platform! |
I tried that too but got more errors - I'll try editing the paths. Still looking for anyone that can send me a compiled binary for Windows. Thanks, Aaron. |
I have sassc successfully compiling on windows under msysGit. I had to download a couple of commands that weren't in msysGit but it works well enough. |
@gregstallings: The |
@SamHasler glad to hear msysgit worked. I'll try that. |
I believe I successfully compiled Note that it is of interest for MinGW: If there is any syntax error in the .scss file, then https://www.dropbox.com/s/93tnih5wy468kit/screen-20130310-001.png This happens both if the This is odd since MsysGit (which works, see below) also uses MinGW, but an older version of it. The minGW distro I'm usin gis based on gcc 4.7.2 while MsysGit is using MinGW based on gcc 4.4.0. Cygwin: The Cygwin binary is less spectacular but not much more helpful. It crashes in the console, not with a pop-up window, but still nothing about the .scss having syntax errors:
Again, it didn't matter if the Cygwin MsysGit. This is the only one that worked fine, provided I removed all
MsysGit also embeds all libraries in the Linux: On Linux,
Hopefully this helps other people .. this was the first thread I got in Google when searching about compiling |
Given that you need to mess with the PATH and you seem to have all three of Mingw, Cygwin, and MsysGit installed, it seems very much like you've compiled against one set of DLLs and ran with a different set. Especially since you say MsysGit links things statically and it works. I would get each of them to compile statically. Or fix up the PATH and such so that only one of them could ever conceivably be used at one time before compiling at all. |
Of course I took care to compile individually with no conflicts -- PATH was cleaned before compiling in each. I was talking about what to do with the executable afterwards (Cygwin and MinGW need the msys and stdC DLLs). What I posted above holds, at least for me, you can try it. I could only get the MsysGit version to run correctly. |
I can confirm that compilation on Windows with msysgit (full 1.9.3) works as simple as fetching the repo and doing "make" |
So sassc itself isn't meant for windows, as it's a unix command line util On Thursday, June 27, 2013, Georgios Diamantopoulos wrote:
|
It compiles ok for this guy: https://github.com/TBAPI-0KA/NSass |
Compiling current libsass with VS2013 Update 3 (express, professional etc.) is possible. This is how node-sass' build system is configured (using node-gyp, which uses VS2013). For sassc, it would require two safe guard header. Perhaps you can find the .vcxproj file useful: https://github.com/darrenkopp/libsass-net/tree/master/libsass. Also, see this discussion: sass/libsass-net@94abbd7#commitcomment-8333599. (this repository can have either nmake or vcxproj file of its own, to make it easy to compile with MSVCR's cl.exe) |
Guys take a look at https://github.com/darrenkopp/sassc-win/. There we have VS2013 solution for sassc and libsass. Also appveyor is configured to run sass-specs tests on Windows via sassc-win: https://ci.appveyor.com/project/darrenkopp/sassc-win/. Comparing with Travis-ci, the results are ditto at the moment. :) |
Compilation on Windows fails for me as well. I tried to use this instead of Ruby+Sass to avoid the need for Ruby. I compiled it in current MinGW (GCC 4.8.1; had to change I've got no more time for experimentation, so I'm installing Ruby. Pity. |
BTW, to build libsass on WindOS, you don't need CYGWIN or MinGW. VS' free community version (for OSS devs) will do the job. Please see this: sass/libsass#648 (comment). |
@am11 If I'm to choose between installing Visual Studio and installing Ruby, I think I'm gonna go with Ruby :) |
Considering libsass has performance edge over Ruby sass, someone might go with different route here. :) |
Closing this since we now have appveyor testing the build via mingw and visual studio 2013 on windows! |
Hey Hampton!
I am hoping to get set up to provide Windows binaries for the node-sass project (for eventual use with the JS build tool gruntjs). There is some discussion about it @ sass/node-sass#10.
I develop on Mac, but I spun up a Windows VM today to give this a shot. I could well be doing something wrong, but here is what I turned up using Visual C++ Express 2010 on an x86 install of Windows 7:
Do you have any advice on how to proceed? Also, thank you so much for all the work on sass, I'm stoked to start using it in JS projects.
The text was updated successfully, but these errors were encountered: