From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,23ad7d39f64f65c7 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.202.168 with SMTP id kj8mr7752672pbc.1.1333992265938; Mon, 09 Apr 2012 10:24:25 -0700 (PDT) Path: r9ni37253pbh.0!nntp.google.com!news2.google.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Aws demos on debian Date: Mon, 09 Apr 2012 19:24:24 +0200 Organization: A noiseless patient Spider Message-ID: <87vcl8rf7b.fsf@ludovic-brenta.org> References: <10568325.1989.1333972101735.JavaMail.geo-discussion-forums@vbvd13> <877gxproja.fsf@ludovic-brenta.org> <27234443.269.1333987017784.JavaMail.geo-discussion-forums@vbvd13> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="E5HAPeocp3N76gDTda2TQg"; logging-data="6885"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/euabJ1UUncjJwkXH1OSDN" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:r70JRpQ5mVWu15Hr5wIur/gM5wQ= sha1:iozUOk6O0XfWxrdLlkkN9bRoKL0= Content-Type: text/plain; charset=us-ascii Date: 2012-04-09T19:24:24+02:00 List-Id: tonyg writes on comp.lang.ada: > What I do is I load the demos.gpr into gnat-gps. On this version all > the examples are in one directory which I notice is different to the > source down load from core. The version I am using is libaws 2.7 > (2.7.4 on synaptic) on debian squeeze. I am copying the examples from > the /usr/share/doc/libaws-doc directory. The comand and error is > > tony@comms:~/tryout/examples$ gnatmake -P demos.gpr > demos.gpr:22:30: "../.build/common/demos" is not a valid directory > demos.gpr:45:15: source file "rdemo.ads" cannot be found > demos.gpr:45:28: source file "rdemo.adb" cannot be found > demos.gpr:51:15: source file "rdemo-adains_png.ads" cannot be found > demos.gpr:51:39: source file "rdemo-page3_html.ads" cannot be found > gnatmake: "demos.gpr" processing failed > > I am wondering if I need to process some files using AWSres but I > don't know what files. OK, now I see the problem. I am the author of this demos.gpr but I wrote it for AWS 2.2, long before any demos used awsres :/ First, you need to replace demos.gpr with this: with "aws.gpr"; with "xmlada.gpr"; project Demos is for Source_Dirs use ("."); for Object_Dir use "obj"; for Exec_Dir use "."; Mains := ("hello_world.adb", "com_1.adb", "com_2.adb", "main.adb", "hotplug.adb", "dispatch.adb", "wps.adb", "ws.adb", "auth.adb", "text_input.adb", "vh_demo.adb", "res_demo.adb", "zdemo.adb", "split.adb", "web_mail.adb", "web_elements.adb", "test_mail.adb", "multiple_sessions.adb", "agent.adb", "runme.adb"); Mains_XMLAda := ("soap_client.adb", "soap_server.adb", "soap_svs.adb", "soap_cvs.adb", "wsdl_demo_client.adb", "wsdl_demo_server.adb", "interoplab_main.adb", "soap_server_disp.adb", "jabber_demo.adb"); for Main use Mains & Mains_XMLADa; package Compiler is for Default_Switches ("Ada") use ("-g", "-gnatafnoy", "-gnatVa", "-gnatwa"); end Compiler; end Demos; Second, issue the following commands: awsres -r rdemo adains.png page3.html wsdl2aws -f -doc hello.wsdl wsdl2aws -f -doc interoplab_main.wsdl gnatmake -p -Pdemos (Note that awsres and wsdl2aws are both part of the package libaws-bin, which you need to have installed). HTH PS. The above is not valid for libaws-dev > 2.10, which is in Debian unstable. -- Ludovic Brenta.