[AWS] one more problem: compiling demos from GPS
Vincent Tourvieille
vincent at tourvieille.org
Fri Jul 21 17:58:01 CEST 2006
Hi,
I have built AWS with success a few months ago,
and did run into troubles like you. However at the end it worked,
and it was a delight to use the library, courage !
It made me think that such a first class library
should really go with an installer of the same quality.
It would probably go a long way to help spreading the usage.
I did think of coding one for the MS-windows platform
(for the past 4 years that
I am on this list, I would say that 90% of the postings
are about installation problems !)
but just reading the makefile
and the tons of options, writing an AWS installer seemed like
a significant project on its own.
I have not encountered your particular problem, but
here are the installation notes I took that may help you:
(I installed on PC running Windows XP)
1) first install GNAT using the installer
(I choose C:\Program files\GNAT as the installation directory
isntead of the default proposed.)
Then install AWS:
- Unzip the dowloaded bundle
- Install and downolad cygwin, beware of the installation
warning coming with the GNAT GPL2005 edition:
"Important note: GNAT GPL Edition GDB can crash if cygwin is
installed on the user's system. To workaround this problem, simply copy
cygwin1.dll from your cygwin installation into cyggnat.dll in the bin
subdirectory of your GNAT GPL 2005 installation.
Furthermore, if cygwin is
installed, it should be at least version 1.5.7 for GDB to work."
Need to select the make package within the devel set of options
in the cygwin installer
(make is not selected by default)
2) Install AWS.
Note that AWS makefile is a unix one and must be run through cygwin.
- modify makefile.conf to your liking,
I chose to install AWS in the C:\Program file\GNAT\ subdirectory
so I entered:
# AWS will be installed under $(INSTALL)/AWS.
# Update this variable to point to the install directory.
INSTALL = /cygdrive/c/Program\ Files/GNAT/
- run make setup
- I did:
export ADA_RPJECT_PATH=/cygdrive/c/Documents\ and\ Settings/Vincent/My\
Documents/Downloads/GNAT/gnat_gpl_2005/AWS-gpl-2.1a/.build/projects
- It did not work so I manually modified include/include.gpr to add:
--with "ai302";
with "../.build/projects/ai302";
then src/src.gpr to add:
--with "xmlada";
--with "sockets";
with "../.build/projects/xmlada";
with "../.build/projects/sockets";
same thing for tools/tools.gpr
- Then
make install
- (I do not find set-aws.cmd as indicated in the doc)
When I tried to run one example, it gives me:
"cannot find libeay32.dll"
I find the one located within.
C:\Program Files\GNAT\AWS\lib
I add this path to my "path environment variable":
start -> control panel -> system -> advanced -> environement variables ->
system variables -> path -> edit
Add
;C:\Program Files\GNAT\AWS\lib
(beware: no space between ; and C)
Good luck,
Vincent
> Hello,
>
>
>
> I am trying to use the demos.gpr file to compile and (I hope) run the
> demos :
>
> I've spend 3 days on compiling AWS:-(
>
> To use the demos.gpr, I had to change <install-aws_src>/shared.gpr to
> set the debug and windows flag.
>
> Now when I try to do a make all : I have the following errors.
>
> demos.gpr:66:17: source file "hello_demo.ads" cannot be found
>
> demos.gpr:66:17: source file "hello_demo.ads" cannot be found
>
> demos.gpr:66:35: source file "hello_demo-client.adb" cannot be found
>
> demos.gpr:66:35: source file "hello_demo-client.adb" cannot be found
>
> demos.gpr:67:17: source file "hello_demo-server.adb" cannot be found
>
> demos.gpr:67:17: source file "hello_demo-server.adb" cannot be found
>
> demos.gpr:67:42: source file "hello_demo-types.ads" cannot be found
>
> demos.gpr:67:42: source file "hello_demo-types.ads" cannot be found
>
> demos.gpr:68:44: source file "interoplab.ads" cannot be found
>
> demos.gpr:68:44: source file "interoplab.ads" cannot be found
>
> demos.gpr:69:17: source file "interoplab-client.adb" cannot be found
>
> demos.gpr:69:17: source file "interoplab-client.adb" cannot be found
>
> demos.gpr:69:42: source file "interoplab-types.ads" cannot be found
>
> demos.gpr:69:42: source file "interoplab-types.ads" cannot be found
>
> demos.gpr:72:17: source file
> "soapinterop-org-xsd-arrayoffloat_type_pkg.ads" cannot be found
>
> demos.gpr:72:17: source file
> "soapinterop-org-xsd-arrayoffloat_type_pkg.ads" cannot be found
>
> demos.gpr:73:17: source file
> "soapinterop-org-xsd-arrayofint_type_pkg.ads" cannot be found
>
> demos.gpr:73:17: source file
> "soapinterop-org-xsd-arrayofint_type_pkg.ads" cannot be found
>
> demos.gpr:74:17: source file
> "soapinterop-org-xsd-arrayofsoapstruct_type_pkg.ads" cannot be found
>
> demos.gpr:74:17: source file
> "soapinterop-org-xsd-arrayofsoapstruct_type_pkg.ads" cannot be found
>
> demos.gpr:75:17: source file
> "soapinterop-org-xsd-arrayofstring_type_pkg.ads" cannot be found
>
> demos.gpr:75:17: source file
> "soapinterop-org-xsd-arrayofstring_type_pkg.ads" cannot be found
>
> demos.gpr:76:17: source file
> "soapinterop-org-xsd-soapstruct_type_pkg.adb" cannot be found
>
> demos.gpr:76:17: source file
> "soapinterop-org-xsd-soapstruct_type_pkg.adb" cannot be found
>
> demos.gpr:77:17: source file
> "soapinterop-org-xsd-soapstruct_type_pkg.ads" cannot be found
>
> demos.gpr:77:17: source file
> "soapinterop-org-xsd-soapstruct_type_pkg.ads" cannot be found
>
> demos.gpr:78:17: source file "soapinterop-org-xsd.ads" cannot be found
>
> demos.gpr:78:17: source file "soapinterop-org-xsd.ads" cannot be found
>
> demos.gpr:79:17: source file "soapinterop-org.ads" cannot be found
>
> demos.gpr:79:17: source file "soapinterop-org.ads" cannot be found
>
> demos.gpr:79:40: source file "soapinterop.ads" cannot be found
>
> demos.gpr:79:40: source file "soapinterop.ads" cannot be found
>
> crypto_lib.gpr:37:23: library directory
> "C:\tools\gnat\2006\x86-windows\tools\aws\AWS-gpl-2.2.0\ssl\../../../lib
> " does not exist
>
> ssl_lib.gpr:37:23: library directory
> "C:\tools\gnat\2006\x86-windows\tools\aws\AWS-gpl-2.2.0\ssl\../../../lib
> " does not exist
>
> ssl_error_lib.gpr:37:23: library directory
> "C:\tools\gnat\2006\x86-windows\tools\aws\AWS-gpl-2.2.0\ssl\../../../lib
> " does not exist
>
> gnatmake:
> "C:\tools\gnat\2006\x86-windows\tools\aws\AWS-gpl-2.2.0\demos\demos.gpr"
> processing failed
>
> process exited with status 4
>
>
>
> Can you help me.
>
> I hope this mailing list is alive since I post many messages without
> help in return.
>
> Dominique
>
>
More information about the AWS
mailing list