comp.lang.ada
 help / color / mirror / Atom feed
* Re: Can anyone build AWS on Windows?
       [not found] <8ac0299b-1935-46f9-962a-57fb710e8cf7@googlegroups.com>
@ 2014-10-01 18:16 ` Björn Lundin
  2014-10-03  3:12   ` David Botton
  2014-10-03  3:17   ` David Botton
  2014-10-02  6:13 ` Shark8
  2014-10-04 21:17 ` Maciej Sobczak
  2 siblings, 2 replies; 11+ messages in thread
From: Björn Lundin @ 2014-10-01 18:16 UTC (permalink / raw)


On 2014-10-01 18:34, David Botton wrote:
> Since I haven't found a volunteer to try gnoga on windows I setup a Win box and... AWS doesn't compile. Makefile issues. I am using CygWin and GNAT-GPL 2014.
> 
> Has anyone managed to get it to compile and run?
> 
> Thanks
> David Botton
> 

I run mingw

from a cmd-prompt, I start bash

c:\bnl\tmp>bash
I set the prefix in makefile.conf to

prefix	 = /c/bnl/tools/aws/3.1.0w

mkdir -p c:/bnl/tools/aws/3.1.0w

make setup
make
make install


this is with gnat pro 7.1.1


then I - in cmd-prompt

set ADA_PROJECT_PATH=%ADA_PROJECT_PATH%;c:\bnl\tools\aws\3.1.0w
cd to gnoga dir
make


>make
mkdir bin
mkdir obj
mkdir lib
cd src && gprbuild -Pgnoga.gpr
gcc -c -gnatyabcefhiklmnprst -E gnoga.adb
gnoga.adb:86:07: (style) misplaced "then"
gcc -c -gnatyabcefhiklmnprst -E gnoga-types.adb
gnoga-types.adb:111:15: warning: "Index" is only defined in Ada 2005
gnoga-types.ads:41:17: warning: "Ada.Strings.Hash" is an Ada 2005 unit
gnoga-types.ads:42:20: warning: "Ada.Containers.Indefinite_Vectors" is
an Ada 20
05 unit
gnoga-types.ads:43:20: warning: "Ada.Containers.Indefinite_Hashed_Maps"
is an Ad
a 2005 unit
gcc -c -gnatyabcefhiklmnprst -E gnoga-server.ads
gcc -c -gnatyabcefhiklmnprst -E gnoga-server-model.adb
gnoga-server-model.ads:49:20: access-to-constant is an Ada 2005 extension
gnoga-server-model.ads:49:20: unit should be compiled with -gnat05 switch
gnoga-server-model.ads:53:04: overriding indicator is an Ada 2005 extension
gnoga-server-model.ads:53:04: unit must be compiled with -gnat05 switch
gnoga-server-model.ads:121:20: access-to-constant is an Ada 2005 extension
gnoga-server-model.ads:121:20: unit should be compiled with -gnat05 switch
gprbuild: *** compilation phase failed
make: *** [gnoga] Error 4


added "-gnat05" in all .gpr files



>make
cd src && gprbuild -Pgnoga.gpr
cd demo/snake && gprbuild
using project file snake.gpr
gcc -c -E -gnat05 snake-main.adb
gcc -c -E -gnat05 snake.ads
gcc -c -E -gnat05 snake-connection.adb
gprbind snake-main.bexch
gnatbind snake-main.ali
gcc -c b__snake-main.adb
gcc snake-main.o -o snake.exe
cd demo/adablog && gprbuild
using project file adablog.gpr
gcc -c -E -gnat05 adablog-main.adb
gcc -c -E -gnat05 adablog.ads
gcc -c -E -gnat05 adablog-controller.adb
gcc -c -E -gnat05 adablog-migrations.adb
gcc -c -E -gnat05 adablog-model.ads
gcc -c -E -gnat05 adablog-view.adb
gprbind adablog-main.bexch
gnatbind adablog-main.ali
gcc -c b__adablog-main.adb
gcc adablog-main.o -o adablog.exe
c:/bnl/tools/gnat/7.1.1/bin/../libexec/gcc/i686-pc-mingw32/4.7.3/ld.exe:
cannot
find -lsqlite3
collect2.exe: error: ld returned 1 exit status
gprbuild: link of adablog-main.adb failed
make: *** [adablog] Error 4

well, I do not have sql-lite installed

I get snake.exe though.
Running that, it works - but I do have the same issues as Niklas Holsti
described, arrow keys are not working.
Score of 40...


I know that git is the coolest thing ever, but I've seen some projects
where one can choose between git and svn.

It would be nice to access the code via svn too.
I now got a tar.gz snapshot, that won't update easy



-- 
--
Björn


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

* Re: Can anyone build AWS on Windows?
       [not found] <8ac0299b-1935-46f9-962a-57fb710e8cf7@googlegroups.com>
  2014-10-01 18:16 ` Can anyone build AWS on Windows? Björn Lundin
@ 2014-10-02  6:13 ` Shark8
  2014-10-03 16:27   ` Pascal Obry
  2014-10-04 21:17 ` Maciej Sobczak
  2 siblings, 1 reply; 11+ messages in thread
From: Shark8 @ 2014-10-02  6:13 UTC (permalink / raw)


On 10/1/2014 9:34 AM, David Botton wrote:
> Since I haven't found a volunteer to try gnoga on windows I setup a Win box and...
> AWS doesn't compile. Makefile issues. I am using CygWin and GNAT-GPL 2014.
>
> Has anyone managed to get it to compile and run?
>
> Thanks
> David Botton
>

Compiling AWS is a pain; IMO, it's stupid to make a library that needs a 
non-native build system/environment (Cygwin, in this case) when you have 
such a great language as Ada... one that's *supposed* to be good at 
porting between platforms -- it's also a bit weird that [with AdaCore] 
things like PolyORB come with a nice installer but AWS doesn't.


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

* Re: Can anyone build AWS on Windows?
  2014-10-01 18:16 ` Can anyone build AWS on Windows? Björn Lundin
@ 2014-10-03  3:12   ` David Botton
  2014-10-03  3:17   ` David Botton
  1 sibling, 0 replies; 11+ messages in thread
From: David Botton @ 2014-10-03  3:12 UTC (permalink / raw)



> I run mingw
> 
> 
> 
> from a cmd-prompt, I start bash
> 
> 
> 
> c:\bnl\tmp>bash
> 
> I set the prefix in makefile.conf to
> 
> 
> 
> prefix	 = /c/bnl/tools/aws/3.1.0w
> 
> 
> 
> mkdir -p c:/bnl/tools/aws/3.1.0w
> 
> 
> 
> make setup
> 
> make
> 
> make install

GNAT-GPL 2014 and cygwin for Windows doesn't work. I'll try and get MingW soon.

windres -i aws.rc
gcc -c -O2 infback.c
gcc -c -O2 gzwrite.c
gcc -c -O2 gzread.c
gcc.exe: error: C:cygwin64homeDavidProjectsaws-gpl-3.2.0-srcwin32aws.rc: No such file or directory
gcc.exe: warning: '-x c' after last input file has no effect
gcc.exe: fatal error: no input files
compilation terminated.
/usr/bin/windres: preprocessing failed.

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

* Re: Can anyone build AWS on Windows?
  2014-10-01 18:16 ` Can anyone build AWS on Windows? Björn Lundin
  2014-10-03  3:12   ` David Botton
@ 2014-10-03  3:17   ` David Botton
  2014-10-03  7:39     ` Björn Lundin
  1 sibling, 1 reply; 11+ messages in thread
From: David Botton @ 2014-10-03  3:17 UTC (permalink / raw)


> added "-gnat05" in all .gpr files

Funny I removed that option just recently. I'll add it back then.

> I get snake.exe though.

Great! So basically other than adding -gnat05 looks like not stumbling blocks.

> Running that, it works - but I do have the same issues as Niklas Holsti
> described, arrow keys are not working.

Well it doesn't use arrow keys, uses a,w,s and d. lower case.


> I know that git is the coolest thing ever, but I've seen some projects
> where one can choose between git and svn.

I'll look in to it.

Thank you very much that builds work on windows. I really would rather spend time focusing on finishing up to 1.0.

David Botton

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

* Re: Can anyone build AWS on Windows?
  2014-10-03  3:17   ` David Botton
@ 2014-10-03  7:39     ` Björn Lundin
  0 siblings, 0 replies; 11+ messages in thread
From: Björn Lundin @ 2014-10-03  7:39 UTC (permalink / raw)


On 2014-10-03 05:17, David Botton wrote:
>> added "-gnat05" in all .gpr files
> 
> Funny I removed that option just recently. I'll add it back then.

Good, there might be more compilers that can compile it then,
that is Ada95 by default

>> I get snake.exe though.
> Great! So basically other than adding -gnat05 looks like not stumbling blocks.

correct :-)

>> Running that, it works - but I do have the same issues as Niklas Holsti
>> described, arrow keys are not working.
> 
> Well it doesn't use arrow keys, uses a,w,s and d. lower case.

But the page says is does ...
"Use the arrow keys to move Sparky to pick up batteries."

>> I know that git is the coolest thing ever, but I've seen some projects
>> where one can choose between git and svn.
> 
> I'll look in to it.

Thanks.

And keep up the good work.

--
Björn

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

* Re: Can anyone build AWS on Windows?
  2014-10-02  6:13 ` Shark8
@ 2014-10-03 16:27   ` Pascal Obry
  2014-10-03 18:27     ` Shark8
  2014-10-04  2:04     ` Jeremiah
  0 siblings, 2 replies; 11+ messages in thread
From: Pascal Obry @ 2014-10-03 16:27 UTC (permalink / raw)


Le mercredi 01 octobre 2014 à 23:13 -0700, Shark8 a écrit : 
> Compiling AWS is a pain; IMO, it's stupid to make a library that needs a 
> non-native build system/environment (Cygwin, in this case) when you have 
> such a great language as Ada... one that's *supposed* to be good at 
> porting between platforms --

That's easy to say, but please look at AWS code! The needs for a
MingW/Cygwin environment is to launch the command, compile the static
and dynamic libraries and install the stuff. And installing requires
some different tools on UNIX and Windows. Plus the whole stupidity of \
vs / for directory separator and not counting the ; vs : path separator.

That being said with the introduction of gprinstall I do plan at some
point to provide a simple Windows script to build and install AWS.

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://v2p.fr.eu.org
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B


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

* Re: Can anyone build AWS on Windows?
  2014-10-03 16:27   ` Pascal Obry
@ 2014-10-03 18:27     ` Shark8
  2014-10-09 22:24       ` Randy Brukardt
  2014-10-04  2:04     ` Jeremiah
  1 sibling, 1 reply; 11+ messages in thread
From: Shark8 @ 2014-10-03 18:27 UTC (permalink / raw)


On 10/3/2014 9:27 AM, Pascal Obry wrote:
> Le mercredi 01 octobre 2014 à 23:13 -0700, Shark8 a écrit :
>> Compiling AWS is a pain; IMO, it's stupid to make a library that needs a
>> non-native build system/environment (Cygwin, in this case) when you have
>> such a great language as Ada... one that's *supposed* to be good at
>> porting between platforms --
>
> That's easy to say, but please look at AWS code! The needs for a
> MingW/Cygwin environment is to launch the command, compile the static
> and dynamic libraries and install the stuff.

I understand this -- but that we're basically forced to devolve down to 
such crap as make is my gripe. Ada's had pretty good ideas about 
integrating w/ systems even in `83 [the library system, for example] 
that it's astounding to me that there's little to nothing for installation.

> And installing requires  some different tools on UNIX and Windows.
> Plus the whole stupidity of \ vs / for directory separator and not
> counting the ; vs : path separator.

Windows allows you to use /, it has since before Vista [IIRC].

> That being said with the introduction of gprinstall I do plan at some
> point to provide a simple Windows script to build and install AWS.

That sounds very, very good to me.
Thank you for your work, and AWS really is a great product.
(I just find it discouraging that it's so hobbled by something that, 
IMO, should be a non-issue at this point.)


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

* Re: Can anyone build AWS on Windows?
  2014-10-03 16:27   ` Pascal Obry
  2014-10-03 18:27     ` Shark8
@ 2014-10-04  2:04     ` Jeremiah
  2014-10-05  1:53       ` David Botton
  1 sibling, 1 reply; 11+ messages in thread
From: Jeremiah @ 2014-10-04  2:04 UTC (permalink / raw)


On Friday, October 3, 2014 12:27:18 PM UTC-4, Pascal Obry wrote:
> 
> That being said with the introduction of gprinstall I do plan at some
> 
> point to provide a simple Windows script to build and install AWS.
> 

I definitely look forward to this.  After about 10 "after work nights" of trying to get AWS to build with Cygwin, I gave up.  I originally didn't know what MSYS was, so I did some research and tried out minGW, which worked once I reinstalled GPS to a new location.  Granted that is mostly all my fault for not knowing anything about operating inside of Cygwin.  The install process isn't very newbie friendly in that respect  (I haven't even seen a makefile in 8ish years), but I understand.  I am glad yall are working towards a simpler install.

All that said, I really do appreciate the work you put in for AWS.  It is a great tool that I have been having fun with trying out different things.  I apologize if the above paragraph sounds too much like complaining.

For David:
I put some feedback in your Gnoga on Windows thread before I saw you had started this one as well.

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

* Re: Can anyone build AWS on Windows?
       [not found] <8ac0299b-1935-46f9-962a-57fb710e8cf7@googlegroups.com>
  2014-10-01 18:16 ` Can anyone build AWS on Windows? Björn Lundin
  2014-10-02  6:13 ` Shark8
@ 2014-10-04 21:17 ` Maciej Sobczak
  2 siblings, 0 replies; 11+ messages in thread
From: Maciej Sobczak @ 2014-10-04 21:17 UTC (permalink / raw)



> Has anyone managed to get it to compile and run?

I did it, but it was not a seamless process.

Which brings another question - considering that:

a) compiling AWS on Windows seems to be an obstacle for every newcomer, and

b) every newcomer wants to use it with the same compiler (GNAT GPL) anyway,

why not distribute AWS as a binary package?

The compiler is distributed as a binary with a separate source, so the concept is already known and widely accepted (hint: open source does not mean that you can get only source).

Then it would not matter how messy is the build process, as nobody except experts would touch it anyway. So?

AWS is one of the most attractive ways to get newcomers to Ada. If you say that Ada can be used to write flight control systems, then it sounds impressive, but not convincing, as it does not relate to the daily experience of a typical programmer. Building a website is something that a typical programmer can identify with, so having an easy to install Ada web development kit would be a strong selling point for Ada.

-- 
Maciej Sobczak * http://www.msobczak.com * http://www.inspirel.com


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

* Re: Can anyone build AWS on Windows?
  2014-10-04  2:04     ` Jeremiah
@ 2014-10-05  1:53       ` David Botton
  0 siblings, 0 replies; 11+ messages in thread
From: David Botton @ 2014-10-05  1:53 UTC (permalink / raw)


I am by no means a newcomer to Ada or Ada on Windows (I was the principal author of Ada's modern binding to Windows and COM / .NET technologies...) So don't feel bad.

It would have been trivial to have just tar balled the already built AWS and use a simple batch script to copy the prebuilt AWS for the Win32 platform.

I plan on focusing the next few weeks still on getting Gnoga to 1.0 status, so I can't spend time on binary builds yet. I mainly wanted to make sure that the Gnoga had no path issues, etc. once compiled and clearly it works well on Windows (with the exception of Jeremiah's build but not sure why yet).

So, Given the difficulties and since Gnoga is the "killer app" Ada needs to gain traction among application developers (the overwhelming majority of programmers that Ada has failed to even scratch at on their radars), I'll see about doing a Gnoga for Windows binary install with a single package of Gnat, AWS, Sqlite3 and MySQL client libs.

I'll start another thread on the "killer app" tonight. If you haven't "gotten" why Gnoga is the killer App for Ada, I hope that thread will help you "get it" :)

David Botton

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

* Re: Can anyone build AWS on Windows?
  2014-10-03 18:27     ` Shark8
@ 2014-10-09 22:24       ` Randy Brukardt
  0 siblings, 0 replies; 11+ messages in thread
From: Randy Brukardt @ 2014-10-09 22:24 UTC (permalink / raw)


"Shark8" <OneWingedShark@gmail.com> wrote in message 
news:C_AXv.397465$UR.6257@fx04.iad...
...
>> And installing requires  some different tools on UNIX and Windows.
>> Plus the whole stupidity of \ vs / for directory separator and not
>> counting the ; vs : path separator.
>
> Windows allows you to use /, it has since before Vista [IIRC].

Off topic, but Windows always has allowed one to use '/'. In fact, so did 
MS-DOS. I think it always did since paths were introduced. The issue is that 
'/' is typically the command line option character, so using '/' as a path 
separator often doesn't work in command line tools (depends on the tool). 
But it's always worked in the underlying OS, so programs can use it.

                             Randy.




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

end of thread, other threads:[~2014-10-09 22:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <8ac0299b-1935-46f9-962a-57fb710e8cf7@googlegroups.com>
2014-10-01 18:16 ` Can anyone build AWS on Windows? Björn Lundin
2014-10-03  3:12   ` David Botton
2014-10-03  3:17   ` David Botton
2014-10-03  7:39     ` Björn Lundin
2014-10-02  6:13 ` Shark8
2014-10-03 16:27   ` Pascal Obry
2014-10-03 18:27     ` Shark8
2014-10-09 22:24       ` Randy Brukardt
2014-10-04  2:04     ` Jeremiah
2014-10-05  1:53       ` David Botton
2014-10-04 21:17 ` Maciej Sobczak

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