Windows Support
Flusspferd compiling and running on windows under MinGW
From the mailing list:
So, Aristid and myself have both been poking at this problem every so
often, trying to use MSVC. We didn't actually manage to get anything
running successfully.
So today I decided to try MinGW.
And after a lot of trial and error, I got it to run!
C:\>c:\flusspferd\bin\flusspferd.exe
> sys = require('system')
[object Object]
> sys.stdout
[object NativeObject]
> sys.env
[object sys.Environment]
> sys.env.PATH
C:\spidermonkey\lib;C:\MinGW\bin;C:\Program Files\CMake 2.6\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
> require('os').system('dir')
Volume in drive C has no label.
Volume Serial Number is 5469-9BA6
Directory of C:\
01/05/2009 15:15 6,148 .DS_Store
22/02/2009 02:28 0 AUTOEXEC.BAT
22/02/2009 02:28 0 CONFIG.SYS
22/02/2009 02:33 <DIR> Documents and Settings
01/08/2009 19:50 <DIR> flusspferd
01/08/2009 17:09 <DIR> MinGW
22/07/2009 21:04 <DIR> mozilla-build
01/08/2009 17:01 <DIR> Program Files
30/04/2009 23:20 <DIR> Python26
22/02/2009 03:08 573 RHDSetup.log
01/08/2009 14:42 <DIR> spidermonkey
01/05/2009 04:44 <DIR> strawberry
27/07/2009 22:25 <DIR> WINDOWS
4 File(s) 6,721 bytes
9 Dir(s) 20,993,699,840 bytes free
0
> ^Z
C:\>
The steps are a little bit convoluted to build manually, but if anyone wants to duplicate my efforts, I've documented them on the wiki.
And of course, a zipfile so you can play yourselves! http://flusspferd.org/downloads/flusspferd-win32-0.6.1.129.g2699d.zip
Currently it needs to live in C:\flusspferd (so unpack the zip into c:\ root, it contains the flusspferd folder.) Hopefully I've put all the needed dlls in there, if I've missed it'll have to wait until next week some time - I'm traveling to a conference tomorrow morning and not sure when I'll be online.
Comments