On Fri, Mar 25, 2011 at 11:52 PM, Gustavo Gutierrez
<[email protected]> wrote:
> Yes we are interested. I think cygwin is no longer a good idea and mingw is
> the way to go. Can you please let us know when the changes are available?.
>

I've put a first cut at the move to MinGW support in the 'win32_build'
branch of my github clone. It's not ready for pulling but interested
parties can try it out here:

<https://github.com/doublec/mozart/tree/win32_build>

I haven't finished my changes yet but this will build a working Mozart
system on Windows using MingW. Unfortunately the threaded bytecode
generation needs to be configured off otherwise it hangs while
compiling .oz files. I've yet to look into this. This is what I did to
build (some steps could be skipped, or use prebuilt packages like
ActiveTcl):

1) Download and install 'mingw-get-inst'. Install the 'C++ compiler'
and 'MSYS Basic System'. See http://www.mingw.org/wiki/Getting_Started
for details.
2) Install the following using mingw-get:
    mingw-get install mingw32-libgmp
    mingw-get install mingw32-gmp
    mingw-get install mingw32-libz
    mingw-get install msys-libgdbm
    mingw-get install msys-libregex
    mingw-get install mingw-autoconf2.1
    mingw-get install mingw32-autoconf
    mingw-get install msys-flex
    mingw-get install msys-bison
    mingw-get install mingw32-gcc-g++

3) I made a /packages directory to store the compilation results in
4) Download and build tcl/tk 8.5 from source, configured to install in /packages
5) Dowload and build emacs from source, configured to install in /packages
6) Clone my git repository and change to a win32_build based branch
    git clone git://github.com/doublec/mozart.git
    cd ~mozart
    git checkout -b win32_branch origin/win32_branch
 7) Configure/build
     mkdir ~/build
     cd build
     windlldir=/packages/bin ~/mozart/configure --prefix=/packages
--with-inc-dir=/packages/include --with-lib-dir=/packages/lib
--with-tcl=/packages --with-tk=/packages --disable-contrib-compat
--disable-contrib --enable-modules-status --disable-doc --disable-chm
--disable-threaded
     make
     make install

Running:

1) export PATH=$PATH:/packages/bin
2) OZEMACS=/packages/bin/emacs.exe oz

This should bring up the Mozart environment in emacs.

There's still a bunch of things to be done but it's a start.

Chris.
-- 
http://www.bluishcoder.co.nz
_________________________________________________________________________________
mozart-hackers mailing list                           
[email protected]      
http://www.mozart-oz.org/mailman/listinfo/mozart-hackers

Reply via email to