[AWS] Building AWS 1.4 on Windows XP Pro

Alex Watkins alex_watkins@hotmail.com
Sat, 29 Nov 2003 17:42:44 +0000


Pascal

Thanks very much for the swift reply. Sorry I didn't reply sooner.

I have done what you suggested, and changed the path in MSYS. I *think* I 
have now successfully built AWS, except for the documentation (I will 
explain shortly).

In order to build AWS 1.4, I did the following (which might or might not 
shed light on why building the documentation raises errors):

First, I altered c:/aws-1.4/makefile.conf:
	...
	xmlada = /c/xmlada
	...
	debug = 1
	...
	install = /c/
	...

Running 'make gnat os_lib' and 'make gnatsockets' went ok, but 'make build' 
returned an error:
	...
	Building soap-wsdl
	gnatmake -u -q -u -g -m -gnata -gnatwcfipru -gnaty3abcefhiklmnoprst 
-I../ssl -I../include -I../src -I/c/xmlada/include/xmlada -I/c/xmlada/lib  
soap-wsdl;
	soap-wsdl.adb:40:06: file "dom-readers.ads" not found
	gnatmake: "soap-wsdl.adb" compilation error
	make[1]: *** [soap-wsdl] Error 4
	make[1]: Leaving directory `/c/a_b/soap'
	make: *** [build_soaplib] Error 2
So I checked, and couldn't find a file dom-readers.ads. However, I found a 
file called tree_readers.ads, which contained a method with the same 
signature as required by

make, so I changed c:/aws-1.4/soap/soap-wsdl.adb, replacing each of 3 
instances of 'dom.readers' with 'tree_readers'. This fixes the problem, 
except a warning error is

raised regarding 'bad casing'.

I also found that gnatmake didn't like the '-lz' option used in the makefile 
in aws-1.4/tools, so I deleted it. I tried changing it to '-l', but got 
different errors.

Also, make couldn't find the xmlada files in the directories input_sources, 
sax, unicode and dom, so I copied *.ad? into aws-1.4/xsrc and aws-1.4/soap. 
Also I commented out

references to the folders in aws-1.4/makefile.

Having done all these, I can now run 'make build' and 'make build_soap', but 
'make build_doc' raises errors:
	awatkins@IBM-23Z20LHSBUB /c/A_A_A_A_A_A_A
	$ make build_doc

	=== Build doc
	make[1]: Entering directory `/c/A_A_A_A_A_A_A/docs'

	raised TEMPLATES_PARSER.TEMPLATE_ERROR : In aws.texi.tmplt at line 4785, 
EXCEPTION_STACK_OVERFLOW.
	./gentexifile ../src/aws.ads NOGROUP
	...
	./gentexifile ../soap/soap-types.ads NOGROUP
	/c/msys/1.0/bin/texi2dvi: tex: command not found
	/c/msys/1.0/bin/texi2dvi: tex exited with bad status, quitting.
	/c/msys/1.0/bin/texi2dvi: see aws.log for errors.
	cp: cannot stat `aws.log': No such file or directory
	make[1]: [aws.dvi] Error 1 (ignored)
	make[1]: dvips: Command not found
	make[1]: [aws.ps] Error 127 (ignored)
	make[1]: ps2pdf: Command not found
	make[1]: [aws.pdf] Error 127 (ignored)
	make[1]: *** No rule to make target `style-guide.ps', needed by `sg_docs'.  
Stop.
	make[1]: Leaving directory `/c/A_A_A_A_A_A_A/docs'
	make: *** [build_doc] Error 2

I don't know how to resolve this, or whether my previous 'amendments to 
makefiles etc will have made this happen! I should find out in due course 
whether my build of AWS-1.4 works correctly, but I need to build the docs so 
I can find out how to use all of the features!

Do you have any ideas?

Many thanks
Alex


----Original Message Follows----
From: Pascal Obry <p.obry@wanadoo.fr>
To: watkinam@aston.ac.uk
CC: aws@lists.act-europe.fr
Subject: Re: [AWS] Building AWS 1.4 on Windows XP Pro
Date: Wed, 19 Nov 2003 10:07:43 +0100


watkinam@aston.ac.uk writes:

  > I have a query about building AWS 1.4.
  >
  > I have successfully built AWS 1.3, but am unable to build AWS 1.4.
  >
  > Platform: Windows XP Pro
  > Shell: Cygwin/Msys (I tried both)
  > Compiler: Gnat 3.15p
  >
  > The only change I made to makefile.conf was the install directory:
  > INSTALL = c:
  > This is ok with AWS 1.3
  >
  > When I do 'make gnat_oslib' I get a load of echoed text:
  >
  > $ make gnat_oslib
  > c:/GNAT/bin/make.exe -C src gnat_oslib -s GFLAGS="-q -O2 -gnatn

This is the problem you should use the Cygwin / MSYS make command. Be sure 
to
set the Cygwin or MSYS path before the GNAT's one.

Note that Dmitriy and I are developping AWS on Windows box (Dmitriy uses 
MSYS,
I use Cygwin) so we are always sure that AWS compiles on Windows. Of course
we also check AWS on GNU/Linux often (more than once a week).

Pascal.

--

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595

_______________________________________________
AWS mailing list
AWS@lists.act-europe.fr
http://lists.act-europe.fr/mailman/listinfo/aws

_________________________________________________________________
Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile