Make a build that works on Windows (+ Mac + Linux) #71

Closed
JamesMGreene opened this Issue Jan 9, 2013 · 11 comments

2 participants

@JamesMGreene
ZeroClipboard member

I can't seem to get the build working on Windows.

I have...

  1. Installed GnuMake and all of its dependencies
  2. Installed the Flex SDK 4.6
  3. Set the "SWF_COMPILER" environment variable: /c/Program\ Files\ (x86)/Adobe/Flex\ SDK\ 4.6/bin/mxmlc -static-link-runtime-shared-libraries=true

... but it still seems to die a horrible death! 💀

Running in the Git Bash shell (yes, the leading unpaired " is accurate):

$ make
"c:\Program: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4227d3)

Running in the Windows cmd prompt (or VS2010 cmd prompt):

>make
process_begin: CreateProcess(NULL, rm -f LICENSE, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [LICENSE] Error 2

@JamesMGreene
ZeroClipboard member

Oh @Haacked, any Windows advice here? ;)

@jonrohan
ZeroClipboard member

Maybe I have a bunch of path stuff specific to linux based stuff ie / that is causing it to fail?

@JamesMGreene
ZeroClipboard member

Everything I'm seeing in the current Makefile should work fine when running in the Git Bash shell AFAIK.

@JamesMGreene
ZeroClipboard member

The error is certainly suggestive that it's mangling the SWF_COMPILER environment variable's value (path).

@jonrohan
ZeroClipboard member

The other thing to look at is https://github.com/jonrohan/ZeroClipboard/blob/master/src/build.js which is used to build some files using package.json as a datasource. replacing mustache variables in the source files and license info with data.

@JamesMGreene
ZeroClipboard member

Looks like standard Node, should be fine.

@jonrohan
ZeroClipboard member

delete this line https://github.com/jonrohan/ZeroClipboard/blob/master/Makefile#L13 and try running make. isolate the problem

@JamesMGreene
ZeroClipboard member

Hmm, nope. I'm thinking it might be an issue with GnuMake because I'm still getting the same result, even for just make clean. make -h does work and display the help docs, though.

@JamesMGreene
ZeroClipboard member

I'm going to implement a parallel version of our build process with Grunt for review. In addition to working cross-platform, Grunt's plugin system and existing plugin library/catalog would also enable us to easily port our nodeunit tests to QUnit + PhantomJS so we can do legit browser testing (e.g. CSS testing, etc.), as well as looking to other advantages like code coverage metrics, etc.

Will submit a PR soon-ish, maybe yet today if I find time since it's pretty trivial to setup.

@JamesMGreene JamesMGreene was assigned Mar 2, 2013
@JamesMGreene
ZeroClipboard member

FYI, this is in progress. The only thing really remaining is to wrap up the SWF compiler as a Grunt task, which I believe I am implementing in an especially slick fashion. 👍

More to come soon....

@JamesMGreene
ZeroClipboard member

The lack of this is becoming a major roadblock for me in development for Milestone 1.2, so I'm going to bring this forward to the front of the queue [again].

@JamesMGreene JamesMGreene added a commit to JamesMGreene/zeroclipboard that referenced this issue Aug 24, 2013
@JamesMGreene JamesMGreene Replacing `make` with `grunt` for builds.
Make does not work on Windows, Grunt works cross-platform.
Fixes #71.
Closes #71.
dddef59
@JamesMGreene JamesMGreene added a commit to JamesMGreene/zeroclipboard that referenced this issue Aug 24, 2013
@JamesMGreene JamesMGreene Replacing `make` with `grunt` for builds.
Make does not work on Windows, Grunt works cross-platform.
Fixes #71.
Closes #71.
90c045a
@JamesMGreene JamesMGreene added a commit to JamesMGreene/zeroclipboard that referenced this issue Aug 24, 2013
@JamesMGreene JamesMGreene Replacing `make` with `grunt` for builds.
Make does not work on Windows, Grunt works cross-platform.
Fixes #71.
Closes #71.
8615fef
@JamesMGreene JamesMGreene added a commit to JamesMGreene/zeroclipboard that referenced this issue Aug 24, 2013
@JamesMGreene JamesMGreene Replacing `make` with `grunt` for builds.
Make does not work on Windows, Grunt works cross-platform.
Fixes #71.
Closes #71.
55b0dd1
@JamesMGreene JamesMGreene added a commit to JamesMGreene/zeroclipboard that referenced this issue Aug 24, 2013
@JamesMGreene JamesMGreene Replacing `make` with `grunt` for builds.
Make does not work on Windows, Grunt works cross-platform.
Fixes #71.
Closes #71.
b7c83f1
@JamesMGreene JamesMGreene added a commit that closed this issue Aug 25, 2013
@JamesMGreene JamesMGreene Replacing `make` with `grunt` for builds.
Make does not work on Windows, Grunt works cross-platform.
Fixes #71.
Closes #71.
067f56b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment