comp.lang.ada
 help / color / mirror / Atom feed
* Compiling AdaSockets for Windows XP
@ 2002-12-30 14:11 Dr. Michael Paus
  2002-12-30 16:52 ` Martin Dowie
  0 siblings, 1 reply; 9+ messages in thread
From: Dr. Michael Paus @ 2002-12-30 14:11 UTC (permalink / raw)


Hi all,

I am just trying to build the latest version of AdaSockets for
Windows XP. However, it does not seem to be possible to create
various necessary files without having a lot of other tools
installed on the system. Would anybody be so kind and send me
the generated source files for Windows XP? (Just Windows is
probably enough. I don't think they differ from version to
version.) The most important file is sockets-constants.ads.

Many thanks in advance

Michael

PS: Why are these files not part of the distribution?




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compiling AdaSockets for Windows XP
  2002-12-30 14:11 Compiling AdaSockets for Windows XP Dr. Michael Paus
@ 2002-12-30 16:52 ` Martin Dowie
  2002-12-30 18:06   ` Pascal Obry
  2002-12-31  9:16   ` Dr. Michael Paus
  0 siblings, 2 replies; 9+ messages in thread
From: Martin Dowie @ 2002-12-30 16:52 UTC (permalink / raw)


"Dr. Michael Paus" <paus@ib-paus.com> wrote in message
news:aupk75$6io$1@news.online.de...
> I am just trying to build the latest version of AdaSockets for
> Windows XP. However, it does not seem to be possible to create
> various necessary files without having a lot of other tools
> installed on the system. Would anybody be so kind and send me
> the generated source files for Windows XP? (Just Windows is
> probably enough. I don't think they differ from version to
> version.) The most important file is sockets-constants.ads.
>
> Many thanks in advance
>
> Michael
>
> PS: Why are these files not part of the distribution?

From what I can make out...

The constants names are the same for pretty much all OS but the values
associated with the names differ between OS. Part of the distro is a utility
that creates the sockets-constants.ads file by actually building and running
a program that returns the actual values used on that machine.

Have to agree though - I spent so long trying to get this to all work that
I just gave up and went back to v1!





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compiling AdaSockets for Windows XP
  2002-12-30 16:52 ` Martin Dowie
@ 2002-12-30 18:06   ` Pascal Obry
  2002-12-31  9:33     ` Dr. Michael Paus
                       ` (2 more replies)
  2002-12-31  9:16   ` Dr. Michael Paus
  1 sibling, 3 replies; 9+ messages in thread
From: Pascal Obry @ 2002-12-30 18:06 UTC (permalink / raw)



"Martin Dowie" <martin.dowie@no.spam.btopenworld.com> writes:

> Have to agree though - I spent so long trying to get this to all work that
> I just gave up and went back to v1!

There is a Windows distribution available on on Dmitriy Anisimkov's homepage
and on my homepage too.

Note that the tools needed to build it on Windows are either the Cygwin
toolset (pretty easy to install these days) or the MSYS toolset see 
http://www.mingw.org/. Both are free.

You should probably have one installed if you plan to do development based on
GNU softwares on Windows anyway.

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compiling AdaSockets for Windows XP
  2002-12-30 16:52 ` Martin Dowie
  2002-12-30 18:06   ` Pascal Obry
@ 2002-12-31  9:16   ` Dr. Michael Paus
  1 sibling, 0 replies; 9+ messages in thread
From: Dr. Michael Paus @ 2002-12-31  9:16 UTC (permalink / raw)


Martin Dowie wrote:

> "Dr. Michael Paus"  wrote in message
> news:aupk75$6io$1@news.online.de...
>
> >I am just trying to build the latest version of AdaSockets for
> >Windows XP. However, it does not seem to be possible to create
> >various necessary files without having a lot of other tools
> >installed on the system. Would anybody be so kind and send me
> >the generated source files for Windows XP? (Just Windows is
> >probably enough. I don't think they differ from version to
> >version.) The most important file is sockets-constants.ads.
> >
> >Many thanks in advance
> >
> >Michael
> >
> >PS: Why are these files not part of the distribution?
>
>
> From what I can make out...
>
> The constants names are the same for pretty much all OS but the values
> associated with the names differ between OS. Part of the distro is a utility
> that creates the sockets-constants.ads file by actually building and running
> a program that returns the actual values used on that machine.
>
> Have to agree though - I spent so long trying to get this to all work that
> I just gave up and went back to v1!

What you wrote is certainly right, especially for the different versions of
UNIX like systems. But on UNIX you don't have a problem creating the
necessary files because the required tools are already available. I did that
already several times on various systems. However, the situation is different
on Windows. The required tools are not directly available and so you cannot
quickly build the two missing files. I also do not want to install these tools just for
that pupose of getting some Ada program compiled because otherwise I don't need
them. I normally don't do Ada development on Windows. In this particular case
I just needed a piece of Ada software on Windows as a test driver for a piece
of Java software I am currently developing and for Java development I use Eclipse
and have no need for Cygwin or MSYS. The distribution already contains many
OS specific files, so if the maintainers would just put in the two missing
files for Windows nobody would have to go through the pain of installing a
whole toolset for the only purpose to get a piece of Ada software compiled.

Michael




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compiling AdaSockets for Windows XP
  2002-12-30 18:06   ` Pascal Obry
@ 2002-12-31  9:33     ` Dr. Michael Paus
  2002-12-31  9:55       ` Pascal Obry
  2003-01-03 11:51     ` Martin Dowie
  2003-01-03 15:54     ` Martin Dowie
  2 siblings, 1 reply; 9+ messages in thread
From: Dr. Michael Paus @ 2002-12-31  9:33 UTC (permalink / raw)


Pascal Obry wrote:

> "Martin Dowie"  writes:
>
>
> >Have to agree though - I spent so long trying to get this to all work that
> >I just gave up and went back to v1!
>
>
> There is a Windows distribution available on on Dmitriy Anisimkov's homepage
> and on my homepage too.

Thanks for the link. That's what I am using now. Why don't you include that
in your own distribution? That would have saved me a lot of trouble.

Is anybody planning to update the Windows version to 1.4.1? From what I saw
there may be a problem with some constants which don't seem to exist in
the Windows header files.

> Note that the tools needed to build it on Windows are either the Cygwin
> toolset (pretty easy to install these days) or the MSYS toolset see
> http://www.mingw.org/. Both are free.
>
> You should probably have one installed if you plan to do development based on
> GNU softwares on Windows anyway.

With a good IDE there is no need for that. I only do Java development on Windows
and haven't been missing these tools so far. In this case I just wanted to
compile an existing piece of Ada software as a test driver for some Java software
and this would have been easier with a ready to compile socket binding (and if
GNAT 3.15p would not have crashed two times on this software which compiles
fine on several other systems with GNAT 3.14p).

Michael




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compiling AdaSockets for Windows XP
  2002-12-31  9:33     ` Dr. Michael Paus
@ 2002-12-31  9:55       ` Pascal Obry
  0 siblings, 0 replies; 9+ messages in thread
From: Pascal Obry @ 2002-12-31  9:55 UTC (permalink / raw)



"Dr. Michael Paus" <paus@ib-paus.com> writes:

> With a good IDE there is no need for that. I only do Java development on
> Windows and haven't been missing these tools so far. In this case I just

Ok.

> wanted to compile an existing piece of Ada software as a test driver for
> some Java software and this would have been easier with a ready to compile
> socket binding (and if GNAT 3.15p would not have crashed two times on this

Ready to compile for Windows, FreeBSD, Solaris, GNU/Linux, MacOSX... ? Easier
for you but not the developers. It is better to have a common distribution and
have the package configured on the right target. This help porting software on
new targets too.

> software which compiles fine on several other systems with GNAT 3.14p).

As I said, with GNU softwares it is easier to install a GNU tooset. Most of
them are using Makefile and sed/grep/awk are really nice tools to have anyway.

Just my 2 cents,
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



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compiling AdaSockets for Windows XP
  2002-12-30 18:06   ` Pascal Obry
  2002-12-31  9:33     ` Dr. Michael Paus
@ 2003-01-03 11:51     ` Martin Dowie
  2003-01-03 15:54     ` Martin Dowie
  2 siblings, 0 replies; 9+ messages in thread
From: Martin Dowie @ 2003-01-03 11:51 UTC (permalink / raw)


"Pascal Obry" <p.obry@wanadoo.fr> wrote in message
news:uptrjs7nv.fsf@wanadoo.fr...
> There is a Windows distribution available on on Dmitriy Anisimkov's
homepage
> and on my homepage too.

Thanks - I'll have a look at that.

> Note that the tools needed to build it on Windows are either the Cygwin
> toolset (pretty easy to install these days) or the MSYS toolset see
> http://www.mingw.org/. Both are free.

Cygwin is easy to install but sadly causes confusion with Wind River's
VxWorks toolset (which also uses its own version of cygwin.dll) :-(





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compiling AdaSockets for Windows XP
  2002-12-30 18:06   ` Pascal Obry
  2002-12-31  9:33     ` Dr. Michael Paus
  2003-01-03 11:51     ` Martin Dowie
@ 2003-01-03 15:54     ` Martin Dowie
  2003-01-03 17:30       ` Pascal Obry
  2 siblings, 1 reply; 9+ messages in thread
From: Martin Dowie @ 2003-01-03 15:54 UTC (permalink / raw)


"Pascal Obry" <p.obry@wanadoo.fr> wrote in message
news:uptrjs7nv.fsf@wanadoo.fr...
> There is a Windows distribution available on on Dmitriy Anisimkov's
homepage
> and on my homepage too.

This isn't v1.4 is it? The OP did mention he was after the latest version.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Compiling AdaSockets for Windows XP
  2003-01-03 15:54     ` Martin Dowie
@ 2003-01-03 17:30       ` Pascal Obry
  0 siblings, 0 replies; 9+ messages in thread
From: Pascal Obry @ 2003-01-03 17:30 UTC (permalink / raw)



"Martin Dowie" <martin.dowie@no.spam.btopenworld.com> writes:

> "Pascal Obry" <p.obry@wanadoo.fr> wrote in message
> news:uptrjs7nv.fsf@wanadoo.fr...
> > There is a Windows distribution available on on Dmitriy Anisimkov's
> homepage
> > and on my homepage too.
> 
> This isn't v1.4 is it? The OP did mention he was after the latest version.

It isn't indeed.

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-01-03 17:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-30 14:11 Compiling AdaSockets for Windows XP Dr. Michael Paus
2002-12-30 16:52 ` Martin Dowie
2002-12-30 18:06   ` Pascal Obry
2002-12-31  9:33     ` Dr. Michael Paus
2002-12-31  9:55       ` Pascal Obry
2003-01-03 11:51     ` Martin Dowie
2003-01-03 15:54     ` Martin Dowie
2003-01-03 17:30       ` Pascal Obry
2002-12-31  9:16   ` Dr. Michael Paus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox