First attempts at building under windows



Hi,

We desperately need documentation on building Maxima under windows. I am
posting my own notes in hopes that they are better than nothing.

I have have been only partially successful in building Maxima under
windows. I am posting my notes here in hopes that they will be corrected
by people who know better. I don't know much about windows (and it
shows.) Also, I am reconstructing these steps from memory, so I may be
leaving out steps.

1) Get a working msys+mingw installation from www.mingw.org.
	a) Follow the links to
<http://sourceforge.net/project/showfiles.php?group_id=2435>;. Get MinGW
2.0.0-3.exe. I installed it in c:\MinGW
	b) From the same page, get msys Snapshot 1.0.8. I installed it in
c:\msys\1.0. The installer should magically find your mingw installation
and add it to your path.

2) Get Tcl/Tk 8.3 from
<http://members1.chello.nl/~j.nijtmans/mingw.html>;. I installed it in
c:\tcltk.

3) Get GCL 2.5.0 snapshot binary from
<http://savannah.gnu.org/projects/gcl/>;. Follow the links to
<ftp://ftp.gnu.org/pub/gnu/gcl/cvs/>;. I installed it in c:\gcl.

4) Edit the paths in the gcl wrapper script (c:\gcl\bin\gcl) to reflect
the installation directory. Pay careful attention to the format of the
path descriptions (g:/gclm vs. /g/gclm). If you change the format of the
paths, you will get strange errors when you try to run gcl.

5) Edit your MSYS startup paths in c:\msys\1.0\etc\profile to put gcl
and tcltk in your PATH. I did so by adding the following line after the
initial setting of PATH:
	export PATH="/c/gcl/bin:/c/tcltk/bin:$PATH"

6) Download the Maxima 5.9.0 RC3 tarball. Using MSYS, extract it in your
home area.

7) In the maxima-5.9.0rc3 directory, type
	./configure --with-wish=wish83 --prefix=/c/msys/1.0/local
	make

8) The build should work. "make check" should work. "./maxima-local"
should work. "make install" should work. "maxima" should work.

"./xmaxima-local" will not work. It will complain about not being able
to execute {{c:\msys\1.0\home\amundson\maxima-5.9.0rc3\maxima-local}}.
"xmaxima" will not work. It will complain about not being able to
execute "wish". That is a small bug we can fix. In the meantime, edit
the installed xmaxima script, changing
	exec wish
to
	exec wish83

It will complain about not being able to able to find its data
directory. I have tried all the permutations of pathnames I can think
of, i.e., c:\msys\1.0\local vs. /c/msys/1.0/local vs. /usr/local, etc.

I am stuck at this point. Please, someone help.

--Jim

-- 
James Amundson <amundson@fnal.gov>