[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Building Squish on Windows
- From: Ross Berteig <Ross@...>
- Date: Thu, 02 Oct 2014 14:51:05 -0700
On 10/2/2014 7:31 AM, mchalkley@mail.com wrote:> ....
> I've tried building Squish on my own, but I keep getting strange
> "Error 2", "The system cannot find the file specified." messages.
Squish works great on Windows, once you get it to build. I recall that I
did have some trouble with the gzip compression feature. It isn't (or
wasn't in 2011) used for building squish itself and wouldn't have saved
anything for my project, so I decided I didn't need it for my immediate
use case and I didn't pursue the issue.
It looks like the only change I made to build it at the time was to edit
the Makefile so that it worked with my Windows box. I have the GunWin32
build of Gnu Make, so those edits just amounted to small tweaks to the
"squish" target:
squish: squish.lua squishy
lua squish.lua $(OPTIONS)
rem chmod +x squish
lua squish -q gzip
lua squish -q debug
lua squish $(OPTIONS) --with-gzip --with-debug
That produced a file named "squish" which I copied into the project
where I was planning to use it, renaming it to "squish.lua" and invoking
it in the target project makefile as "lua squish.lua".
I strongly suspect (but never bothered to try) that with LHF's srlua
built for Windows, that it could be trivially applied to get a
squish.exe that I could drop on my PATH.
The only external dependency is supposed to be gzip for compression with
the --gzip option. I have the GnuWin32 build of gzip, but there was some
issue between that and the deflate compressor provided by squish that I
never did track down. If I were going to attack that today, I would
wonder if the gzip.exe was opening its stdout in text mode instead of
binary mode which is a mistake on Windows that is too easy to make. If
that were the problem, it would be easily fixed by building gzip from
sources with small tweaks.
I haven't kept up with the later releases, but thought I'd describe what
I did then in hopes that it nudges you in the right direction.
--
Ross Berteig Ross@CheshireEng.com
Cheshire Engineering Corp. http://www.CheshireEng.com/